开关
16lz
2021-12-04
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ToggleButton android:id="@+id/tbDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ToggleButton android:id="@+id/tbCustom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:textOff="灯灭:关闭状态" android:textOn="灯亮:开启状态"
/>
</LinearLayout>
更多相关文章
- 有关XML的点击状态背景图的设置
- Android调用打电话(Call Phone)
- 关于Android的selector小用法
- android最佳实践(五)
- android button 正常状态,按下状态
- android 去掉顶部状态栏
- android selector 背景选择器的使用, button (未点击,点击,选中保持
- android button 正常状态,按下状态
- android:网路检测