android 自定义下拉按钮,[转载][android] 自定义spinner的下拉弹出窗口样式

这篇博客探讨了Android应用程序中的UI设计,重点关注了使用XML定义的布局,如LinearLayout和垂直布局。内容中提到了如何设置背景图片、内边距以及按钮的样式和功能,包括打开、保存、关于我们和关闭等操作。此外,还讨论了不同按钮的背景颜色、文字大小和间距等视觉元素。

version="1.0"

encoding="utf-8"?>

android:id="@+id/lin_main"

xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_height="wrap_content"

android:layout_width="wrap_content"

android:paddingRight="120dip">

android:background="@drawable/popup_search"

android:orientation="vertical"

android:layout_height="wrap_content"

android:layout_width="wrap_content">

android:layout_width="fill_parent"

android:background="@drawable/goods_bg"

android:id="@+id/btn_popup_information"

android:layout_height="wrap_content"

android:textColor="#000000"

android:textSize="16sp"

android:text="打开"

android:layout_weight="1"

/>

android:id="@+id/btn_popup_quote"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="保存"

android:background="@drawable/goods_bg"

android:layout_weight="1"

android:textColor="#000000"

android:textSize="16sp"

android:layout_marginTop="5dip"

/>

android:id="@+id/btn_popup_product"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="关于我们"

android:background="@drawable/goods_bg"

android:layout_weight="1"

android:textColor="#000000"

android:textSize="16sp"

android:layout_marginTop="5dip"

/>

android:id="@+id/btn_popup_buy"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="关闭"

android:background="@drawable/shop_bg"

android:layout_weight="1"

android:textColor="#000000"

android:textSize="16sp"

android:layout_marginTop="5dip"

/>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值