- Jun 23 Tue 2015 13:36
[Android] Android基本功-文字顏色大小設定
- Jun 23 Tue 2015 11:25
[Android] Android基本功-鍵盤事件的監聽
- Jun 23 Tue 2015 11:03
[Android] Android基本功-螢幕觸摸的監聽
- Jun 23 Tue 2015 10:52
[Android] Android基本功-按下及放開按鈕的事件監聽
- Jun 23 Tue 2015 10:30
[Android] Android基本功-按下按鈕的事件監聽
- Jun 22 Mon 2015 14:35
[Android] Android基本功-使用table來控制顯示
- Jun 22 Mon 2015 14:24
[Android] Android基本功-使用for建立多個按鈕
- Jun 22 Mon 2015 13:52
[Android] Android基本功-建立按鈕
- Jun 22 Mon 2015 13:10
[JAVA] JAVA的專業用語
類別 匯整後的事物相關資料與功能
欄位 代表事物的相關資料
- Jun 22 Mon 2015 13:04
[Android] Android基本功 建立多行文字顯示
package com.example.addmultitext; import android.app.*; import android.os.*; import android.widget.*; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll = new LinearLayout(this); ll.setOrientation(LinearLayout.VERTICAL); setContentView(ll); TextView tv1 = new TextView(this); tv1.setText("歡迎使用Android!"); TextView tv2 = new TextView(this); tv2.setText("再次感謝使用Android!"); ll.addView(tv1); ll.addView(tv2); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }