<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 角度 -->
<corners android:radius="10dp"/>
<!-- 填充色 -->
<solid android:color="#669999"/>
<!-- 描边 设置线宽及颜色 -->
<stroke android:color="#667788"
android:width="1dp"/>
</shape>
 
<android.support.v7.widget.SearchView
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:imeOptions="actionSearch"
//这里设置样式
        android:background="@drawable/searchview"
        android:id="@+id/searchView">
        </android.support.v7.widget.SearchView>

给SearchView设置样式

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-01-05
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案