Android布局控制項

來源:互聯網
上載者:User

標籤:

 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2     android:layout_width="match_parent" 3     android:layout_height="match_parent" 4     android:orientation="vertical"  5     android:gravity="center_vertical" 6     > 7  8     <ImageView 9         android:id="@+id/imageView1"10         android:layout_width="match_parent"11         android:layout_height="wrap_content"12         android:src="@drawable/qq_image" />13 14     <CheckBox15         android:id="@+id/checkBox1"16         android:layout_width="wrap_content"17         android:layout_height="wrap_content"18         android:text="CheckBox" />19 20     <EditText21         android:id="@+id/editText1"22         android:layout_width="match_parent"23         android:layout_height="wrap_content"24         android:hint="EditText"25         android:ems="10" >26     27         <requestFocus />28     </EditText>29 30     <AutoCompleteTextView31         android:id="@+id/autoCompleteTextView1"32         android:layout_width="match_parent"33         android:layout_height="wrap_content"34         android:completionThreshold="2"35         android:hint="@string/editText1_name" >36     </AutoCompleteTextView>37 38     <MultiAutoCompleteTextView39         android:id="@+id/multiAutoCompleteTextView1"40         android:layout_width="match_parent"41         android:layout_height="wrap_content"42         android:completionThreshold="2"43         android:hint="@string/editText2_name" >44     </MultiAutoCompleteTextView>45 46     <Button47         android:id="@+id/button1"48         android:layout_width="match_parent"49         android:layout_height="50dp"50         android:background="#C0D9D9"51         android:text="Button" />52 53     <com.example.anroiddome.MyTextView54         android:id="@+id/textView1"55         android:layout_width="match_parent"56         android:layout_height="wrap_content"57         android:ellipsize="marquee"58         android:focusable="true"59         android:focusableInTouchMode="true"60         android:singleLine="true"61         android:text="@string/view_name" />62 63     <ToggleButton64         android:id="@+id/toggleButton"65         android:layout_width="match_parent"66         android:layout_height="wrap_content"67         android:checked="false"68         android:textOff="關(toggleButton)"69         android:textOn="開(toggleButton)" />70 71     <RadioGroup72         android:id="@+id/radioGroup1"73         android:layout_width="wrap_content"74         android:layout_height="wrap_content" 75         android:orientation="horizontal"76         >77 78         <RadioButton79             android:id="@+id/radio0"80             android:layout_width="match_parent"81             android:layout_height="wrap_content"82             android:text="男" />83 84         <RadioButton85             android:id="@+id/radio1"86             android:layout_width="match_parent"87             android:layout_height="wrap_content"88             android:checked="true"89             android:text="女" />90     </RadioGroup>91 92 </LinearLayout>

 

整理於http://naotu.baidu.com/file/e5880b84b1a906838116f7a45f58de78

Android布局控制項

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.