●V(View)=>ImageView
1.一定要英文名字

muchone 發表在 痞客邦 留言(0) 人氣()

I was keen to quit recently because I was fed up with working here.
There is nothing makes me feel happy at work because we had a overly critical boss.

muchone 發表在 痞客邦 留言(0) 人氣()


(一)商品和加購金額的計算頁面
1.可以輸入尺和筆的數量,還有勾選紙/圓規/筆記本,計算總共金額(尺:29元,筆31元,紙加購3份60元,圓規3支60元,筆記本3本60元),先做版面設計

muchone 發表在 痞客邦 留言(0) 人氣()


●android的功能如果要運算或是有要寫必較複雜的函式,可以把class用java寫好在import進來,因為打開很慢測試也不方便
=>m(model):開發jar=>jar/doc

muchone 發表在 痞客邦 留言(0) 人氣()

Sometimes I really want to know why kids can never focus on doing their homework.
Every time I have to take a lot of time to persuade my son to focus.

muchone 發表在 痞客邦 留言(0) 人氣()

We had a long and boring meeting this morning.
When the meeting come to an end , it was almost 1:00 pm. 

muchone 發表在 痞客邦 留言(0) 人氣()



MainActitvity.java

public class MainActivity extends AppCompatActivity {


    Button m1,m2;

    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

        m1=(Button) findViewById(R.id.m1);

        m2=(Button) findViewById(R.id.m2);

    }

    public void ex3(View v){

        Intent in=new Intent();

        in.setClass(MainActivity.this,Ex3.class);

        startActivity(in);


    }

 

Ex3.java

public class Ex3 extends AppCompatActivity {


    Button home2;

    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_ex3);

        home2=(Button)findViewById(R.id.home2);

    }

    public void home2(View v){

        Intent in=new Intent();

        in.setClass(Ex3.this,MainActivity.class);

        startActivity(in);

    }

}


 
●再新增一頁Ex3_1,可以回上一頁(Ex3),Ex3新增一按鈕可以跳到Ex3_1
Ex3.java

public class Ex3 extends AppCompatActivity {


    Button home2,ex3_1;

    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_ex3);

        home2=(Button)findViewById(R.id.home2);

        ex3_1=(Button)findViewById(R.id.ex3_1);

    }

    public void ex3_1(View v){

        Intent in=new Intent();

        in.setClass(Ex3.this,Ex3_1.class);

        startActivity(in);


    }

Ex3_1.java


public class Ex3_1 extends AppCompatActivity {

Button ex3;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_ex3_1);

ex3=(Button)findViewById(R.id.ex3);

}

public void ex3(View v){

Intent in=new Intent();

in.setClass(Ex3_1.this,Ex3.class);

startActivity(in);

}

}


muchone 發表在 痞客邦 留言(0) 人氣()

●(一)新增一個按鈕,點擊可以直接連到goolge網址
**(Action_view,uri)

muchone 發表在 痞客邦 留言(0) 人氣()


 
●實作:做兩個頁面切換,第一頁是MainActivity,有一個按鈕(id=m1),可以切換到第二頁有主題內容+一個button(id=home1)可以切回首頁

muchone 發表在 痞客邦 留言(0) 人氣()

I took a lot of time to prepare the Chinese question paper for my son yesterday.
Finally, my husband find a software that could produce all kinds of question paper and that really helped me saved my time.

muchone 發表在 痞客邦 留言(0) 人氣()

dscn2538-e1555214317685.jpg
其實我 有一個小小的夢想,就是希望有一天可以和兒子手牽手,
一起去圖書館看書,兩個人各拿一本書,

muchone 發表在 痞客邦 留言(0) 人氣()

After my son's taekwondo class, we went to Costco to buy the book  "The Secret World of  Arrietty" and we'd like to eat lunch at Costco.
However, we could not only not find the book but also waited for a long time for eating our lunch because there were a lot of people wanting to eat lunch at Costco.

muchone 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。