您的位置:首页 > 移动开发 > Android开发

android图片位于文字上方只需要一个Button就能搞定

2012-03-06 16:18 417 查看
查了很多资料,网上说了重写LinearLayout,那些过于麻烦,查看API发现有个简单的方法,特发出来供大家参考

<Button

android:id="@+id/list_popWindow_setting"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentRight="true"

android:background="@color/white"

android:drawableTop="@drawable/image_setting"

android:padding="5dp"

android:text="@string/list_popWindow_setting" />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: