随笔分类 - Android 布局,样式
摘要:1.官方文档 https://developer.android.com/reference/androidx/constraintlayout/classes android系统中定义了一系列类,辅助ConstraintLayout 完成较复杂功能,如定边界线、分组、分层、排列等等。它们大多数都是
阅读全文
摘要:1.官方文档 https://developer.android.com/topic/libraries/data-binding/observability 2.observable 属性 适合对象只有少量属性,每个属性用 ObservableField<xxx> 、ObservableInt、O
阅读全文
摘要:1.官方文档 https://developer.android.com/topic/libraries/data-binding/expressions.html 2.绑定表达式的约束 2.1 允许的运算符 符号运算符 + - 括号运算符 () 成员访问运算符 obj.成员 array[indx]
阅读全文
摘要:1.简介 官方文档: https://developer.android.com/topic/libraries/data-binding 官方示例: https://github.com/android/databinding-samples 作 用: 把layout 与 数据对象关联,将layo
阅读全文
摘要:1.注意 不能在RelativeLayout容器本身和他的子元素之间产生循环依赖,比如说,不能将RelativeLayout的高设置成为WRAP_CONTENT的时候将子元素的高设置成为 ALIGN_PARENT_BOTTOM。 如果parent是wrap_content的话,alignParent
阅读全文
摘要:RelativeLayout 参数规则 一个控件的位置由横,纵两个方向上的距离决定 控件默认的位置在左上角。 单独使用以下属性都只是改变一个方向的相对位置。 如:只使用了android:layout_alignLeft="xx",那么会改变横向的相对位置,而纵向设有改变,所以在父窗口最上边,并与xx
阅读全文
摘要:Ice Cream Sandwich (ICS) sports two new widgets that have been designed to support the richer user interfaces made possible by larger displays:Space...
阅读全文
摘要: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...
阅读全文
摘要:A list of the standard attributes that you can use in themes can be found atR.styleable.Theme.ConstantsAbsListView_cacheColorHintIndicates that this l...
阅读全文
摘要: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...
阅读全文