android - 如何在android studio中创建这样的微调器?
解决方案
您可以为微调器创建一个自定义适配器,但有一个简单的方法是这样的
<Relativelayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background=your color>
<Spinner android:id="@+id/fragment_filter_sp_users"
android:layout_width="match_parent"
android:background="@color/colorTransparent"
android:layout_toLeftOf="@+id/image"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/image"
android:layout_alignParentRight="true"
android:layout_marginBottom="@dimen/_5sdp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_arrow_bottom"
/>
</Relativelayout>
推荐阅读
- bixby - 如何训练 bixby 胶囊对数百万、数十亿等数量或价值进行语音识别?
- linux - 如何使用我的 bitbucket git repo 自动更新我的测试网络应用程序?
- c# - C# 使用包含俄语字母的 LuaInterface 读取 LuaTable
- excel - 使用VBA在excel公式中增加包含单元格引用的变量
- javascript - 有没有办法增加自定义 HTML 属性?
- java - 为什么我的程序两次打印同一行“Student #”?
- c# - 在 C# 的 ifelse 循环中增加 foreach 的值
- c# - Delphi COM 对象未出现在 .NET 中
- c# - C# 中的“超出数组范围”错误
- spring - 无法@Autowire 实现类,代理混淆