Material Design控件Button,CheckBox的使用
2017-06-07 09:53
591 查看
按钮的最终效果为,点击有水波纹,有阴影
在style文件中:
CheckBox有选中和未选择两种状态:
引用方式相同:
参考链接:http://www.open-open.com/lib/view/open1475906602871.html
<Button android:id="@+id/login_submit_login" android:layout_width="match_parent" android:layout_height="42dp" android:theme="@style/BlueButton" android:text="@string/login_submit" android:textColor="@android:color/white" android:textSize="17sp" />
在style文件中:
<style name="BlueButton"> <item name="colorButtonNormal">#63aeff</item> </style>
CheckBox有选中和未选择两种状态:
<style name="WhiteBox"> <item name="colorControlNormal">@color/bgColorClicked</item> <item name="colorControlActivated">@color/bgColorClicked</item> </style>
引用方式相同:
<CheckBox android:id="@+id/checkBox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="40dp" android:layout_marginTop="15dp" android:text="@string/reg_remeber_psw" android:theme="@style/WhiteBox" android:textColor="@color/bgColorClicked" />
参考链接:http://www.open-open.com/lib/view/open1475906602871.html
相关文章推荐
- (转)android常用控件(二) RadioGroup RadioButton CheckBox Toast的使用
- Android控件之Button,RadioButton,CheckBox,DatePicker,DatePickerDialog的使用
- 使用 IntraWeb (17) - 基本控件之 TIWRadioButton、TIWRadioGroup、TIWCheckBox
- checkboxlist控件的使用
- ASP.NET Atlas简单控件介绍——InputControl,TextBox,Button和CheckBox
- 使用 CheckBox 控件
- 使用masterpage的情况下如何使用js实现repeater控件里的checkbox全选
- 稳扎稳打Silverlight(3) - 2.0控件之Border, Button, Calendar, Canvas, CheckBox, ComboBox
- 稳扎稳打Silverlight(3) - 2.0控件之Border, Button, Calendar, Canvas, CheckBox, ComboBox
- 使用Button时跳过客户端校验控件的检验
- checkboxlist控件的使用
- 稳扎稳打Silverlight(3) - 2.0控件之Border, Button, Calendar, Canvas, CheckBox, ComboBox
- 学习使用TreeView 控件的TreeNode 对象来获取选中了CheckBox的节点!
- listctrl控件中使用checkbox
- 控件使用--CSpinButtonCtrl
- 动态生成服务器控件(Button)并使用其click事件
- 使用VBScript操作Html复选框(CheckBox)控件
- 如何循环并通过使用 ASP.NET 和 VisualC # .NET 检查 DataGrid 列中 CheckBox 控件值
- 在Repeater控件中使用CheckBox控件.
- Asp.net服务器端控件CheckBoxList的使用心得