控件的简单属性有时候可以解决不小麻烦 layout_alignRight
来源:互联网 发布:尹成c语言网盘 2016 编辑:程序博客网 时间:2024/05/18 03:40
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="115dp" tools:context=".community.TopicDetailActivity"> <RelativeLayout android:id="@+id/layout" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent"> <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginTop="15dp" android:layout_marginRight="15dp" android:scaleType="fitXY" android:src="@drawable/post_add_more_pic_bg" /> </RelativeLayout> <ImageButton android:id="@+id/btn_remove" android:layout_width="30dp" android:layout_height="30dp" android:background="@color/common_transparent" android:layout_alignRight="@+id/layout" android:src="@drawable/common_icon_remove" /></RelativeLayout>
下面这种布局,如果如果不用layout_alignRight,很容易产生兼容问题,2.3系统和高版本不兼容(图片高度一定,宽度动态变化)
0 0
- 控件的简单属性有时候可以解决不小麻烦 layout_alignRight
- TextView属性总结,简单的控件也可以很复杂
- 遇到麻烦问题的解决~
- 看似简单的小麻烦
- 自定义日期输入控件-解决需要用户输入日期的麻烦控制
- 解决麻烦
- 用二分可以简单解决的题~~
- Toast有时候不显示问题的解决
- MFC 树控件,也挺麻烦的
- Flex变态的时间控件超级麻烦
- 改写控件之《组合拳解决表单搭建麻烦问题》
- 简单的自定义组合控件 自定义属性
- ajax完美解决的一个麻烦问题
- ajax完美解决的一个麻烦问题
- ajax完美解决的一个麻烦问题
- ajax完美解决的一个麻烦问题
- 为了解决一些麻烦的事情
- 坚持有时候可以胜利
- 1.5.3 GROUP BY子句
- iOS-非父子控制器跳转(如:从某一导航控制器的子页面跳转到另一个tabbar控制的页面)
- 1.5.4 HAVING子句
- 感知神经网络--教学
- 推荐!国外程序员整理的 C++ 资源大全
- 控件的简单属性有时候可以解决不小麻烦 layout_alignRight
- QT中的TCP方法
- 1.6 INSERT语句
- 深入MNIST code测试
- ubuntu14.04和windows7双系统启动顺序修改
- machine-learning第六周 上机作业
- Map
- 采用MQTT协议实现Android消息推送
- (01)odoo8.0_Ubuntu14.04源码安装