![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
xcb_android
android
展开
-
布局笔记
LinearLayout线性布局: 主要属性: android:orientation:vertical (垂直方向) 、horizontal(水平方向) android:gravity———— 表示所有包含在当前布局中的所有控件采用某种方式对齐(默认左对齐) center (垂直且水平居中) center_horizontal (水平居中) bottom (底部对齐) cent原创 2017-09-06 15:10:43 · 236 阅读 · 0 评论 -
笔记
Fragment仿微信的一些代码MainActivity fg = getFragmentManager(); transaction = fg.beginTransaction(); transaction.replace(R.id.root,new F1(),”1”); transaction.commit();原创 2017-09-22 21:37:13 · 196 阅读 · 0 评论 -
关于shape
我们经常用shape定义各种图形来满足需求,先说一下shape的属性: corners—-圆角 android:radius为角的弧度,值越大角越圆。 我们还可以把四个角设定成不同的角度, 同时设置五个属性,则Radius属性无效android:Radius=”20dp” 设置四个角的半径android:topLeftRadius=”20原创 2017-09-24 15:47:36 · 177 阅读 · 0 评论 -
初识百分比布局
两种布局供大家使用: PercentRelativeLayout、PercentFrameLayout,通过名字就可以看出,这是继承自FrameLayout和RelativeLayout两个容器类;支持的属性有:layout_widthPercent、layout_heightPercent、 layout_marginPercent、layout_marginLeftPercent、原创 2017-10-17 19:54:00 · 147 阅读 · 0 评论