View之Button

来源:互联网 发布:16易建联隐藏数据 编辑:程序博客网 时间:2024/05/09 20:19

Button

1.布局

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent">    <LinearLayout        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:orientation="vertical">        <!-- Regular sized buttons -->        <Button android:id="@+id/button_normal"            android:text="buttons_1_normal"            android:layout_width="wrap_content"            android:layout_height="wrap_content" />        <!-- Small buttons -->        <Button android:id="@+id/button_small"            style="?android:attr/buttonStyleSmall"            android:text="buttons_1_small"            android:layout_width="wrap_content"            android:layout_height="wrap_content" />        <ToggleButton android:id="@+id/button_toggle"            android:text="buttons_1_toggle"            android:layout_width="wrap_content"            android:layout_height="wrap_content" />    </LinearLayout></ScrollView>

2. 效果

这里写图片描述

0 0
原创粉丝点击