![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓控件
qiemo0709
这个作者很懒,什么都没留下…
展开
-
控件内边距、外边距
dp.sp.一般情况下:字体设置一般为sp,方便随系统大小。控件高度、宽度 大小一般为dp.外边距:layout_margin (上:layout_marginTop 下:layout_marginBottom 左:layout_marginLeft 右:layout_marginRight)内边距:padding (上:pad原创 2015-10-17 17:02:27 · 1085 阅读 · 0 评论 -
View控件的学习
View控件的学习一:View 是所有控件的父类—->文本textview 按钮button 多选 checkBox单选 RadioButton 布局 layout .二:View 的使用方法 1.获取代表控件的对象 textView.setBackgroundColor(Color.GRAY); button=(Button)findViewById(R.id.button); 2.原创 2015-10-17 16:05:42 · 253 阅读 · 0 评论 -
CheckBox 多选按钮的使用方法
创建布局文件*声明一组多选按钮,设置各个按钮id .*<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:原创 2015-10-18 21:28:24 · 1115 阅读 · 0 评论