【063】◀▶ Android (I) – 控制項和布局【068】 Android ListView & ExpandableListView

來源:互聯網
上載者:User
●·● 目錄:

package: android.widget

  Android UI controls  

A½ ………… View 類
A1 ………… TextView 類
A2 ………… Button 類
A3 ………… EditText 類
A4 ………… RadioGroup 類
A5 ………… RadioButton 類
A6 ………… CheckBox 類
A7 ………… ProgressBar 類
A8 ………… ListView 類
        ExpandableListView 類
A9 ………… Spinner 類
Aa ………… SeekBar 類
Ab ………… RatingBar 類
Ac ………… ImageView 類
Ad ………… Toast 類
Ae ………… WebView 類
Af  ………… ToggleButton 類
Ag ………… AutoCompleteTextView 類
Ah ………… TimePicker 類

  Android layout controls  

D1 ………… FrameLayout 類
D1¼ ………… ScrollView 類
D1½ ………… HorizontalScrollView 類
D2 ………… LinearLayout 類
D3 ………… RelativeLayout 類
D4 ………… GridView 類
D6 ………… TableLayout 類
D7 ………… TableRow 類

---------------------------------------------------------------------------------------------------------

            ╔═════════╗
╠════╣     第A½個    ╠══════════════════════════════════════════════════╣
            ╚═════════╝

●·● View 類:

1. 其它控制項的基類,此類具有的方法屬性,繼承自它的類就都有。

2. View XML Attributes:

  • android:focusable:控制項在預設情況下是是不能擷取焦點的, 只有設定為 true 後才可以. 例如 EditText 是預設可以擷取焦點的, 若是不想運行程式後立刻被 EditView 擷取焦點, 則可以對 LinearLayout 或是 RelativeLayout 設定此屬性為 true.
  • android:focusableInTouchMode:可以通過touch來獲得focus(true).

  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.