随笔分类 -  Android 布局,样式

摘要:1.官方文档 https://developer.android.com/reference/androidx/constraintlayout/classes android系统中定义了一系列类,辅助ConstraintLayout 完成较复杂功能,如定边界线、分组、分层、排列等等。它们大多数都是 阅读全文
posted @ 2021-02-23 10:11 f9q 阅读(8047) 评论(0) 推荐(0) 编辑
摘要:1.官方文档 https://developer.android.com/topic/libraries/data-binding/observability 2.observable 属性 适合对象只有少量属性,每个属性用 ObservableField<xxx> 、ObservableInt、O 阅读全文
posted @ 2019-10-06 23:03 f9q 阅读(1540) 评论(1) 推荐(0) 编辑
摘要:1.官方文档 https://developer.android.com/topic/libraries/data-binding/expressions.html 2.绑定表达式的约束 2.1 允许的运算符 符号运算符 + - 括号运算符 () 成员访问运算符 obj.成员 array[indx] 阅读全文
posted @ 2019-10-05 14:54 f9q 阅读(998) 评论(0) 推荐(0) 编辑
摘要:1.简介 官方文档: https://developer.android.com/topic/libraries/data-binding 官方示例: https://github.com/android/databinding-samples 作 用: 把layout 与 数据对象关联,将layo 阅读全文
posted @ 2019-10-03 23:08 f9q 阅读(1205) 评论(0) 推荐(0) 编辑
摘要:1.注意 不能在RelativeLayout容器本身和他的子元素之间产生循环依赖,比如说,不能将RelativeLayout的高设置成为WRAP_CONTENT的时候将子元素的高设置成为 ALIGN_PARENT_BOTTOM。 如果parent是wrap_content的话,alignParent 阅读全文
posted @ 2016-08-25 17:46 f9q 阅读(751) 评论(0) 推荐(0) 编辑
摘要:RelativeLayout 参数规则 一个控件的位置由横,纵两个方向上的距离决定 控件默认的位置在左上角。 单独使用以下属性都只是改变一个方向的相对位置。 如:只使用了android:layout_alignLeft="xx",那么会改变横向的相对位置,而纵向设有改变,所以在父窗口最上边,并与xx 阅读全文
posted @ 2016-06-18 13:40 f9q 阅读(5069) 评论(0) 推荐(0) 编辑
摘要:Ice Cream Sandwich (ICS) sports two new widgets that have been designed to support the richer user interfaces made possible by larger displays:Space... 阅读全文
posted @ 2016-01-04 14:39 f9q 阅读(292) 评论(0) 推荐(0) 编辑
摘要:Style ResourceSee also Styles and Themes A style resource defines the format and look for a UI. A style can be applied to an individualView(from wit... 阅读全文
posted @ 2015-09-22 17:52 f9q 阅读(374) 评论(0) 推荐(0) 编辑
摘要:A list of the standard attributes that you can use in themes can be found atR.styleable.Theme.ConstantsAbsListView_cacheColorHintIndicates that this l... 阅读全文
posted @ 2015-07-05 17:39 f9q 阅读(416) 评论(0) 推荐(0) 编辑
摘要:The Android platform provides a large collection of styles and themes that you can use in your applications. You can find a reference of all availab... 阅读全文
posted @ 2015-07-05 17:34 f9q 阅读(333) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示