0
我使用的搜索查看和它显示像,如何在android中的SearchView中删除SearchIcon和文本之间的空间?
,我想这样的,
我不使用操作栏。那么如何在SearchView中删除SearchIcon和文本之间的空格?如何可能?请指导我。
And My XML file is,
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<SearchView
android:id="@+id/svSearch"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/five_dp" >
</SearchView>
<ListView
android:id="@+id/lstSearch"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/svSearch" >
</ListView>
</RelativeLayout>
应用填充权的EditText。 – Piyush 2014-11-08 07:18:39
<?xml version =“1.0”encoding =“utf-8”?> <搜索查看 机器人:ID = ”@ + ID/svSearch“ 机器人:layout_width =” FILL_PARENT “ 机器人:layout_height =” WRAP_CONTENT” 机器人:layout_centerHorizontal = “真” 机器人:layout_marginTop = “@扪/ five_dp”> RelativeLayout的>我使用搜索查看不EditText上。 –
Android
2014-11-08 07:20:28
那么你是否应用了填充权? – Piyush 2014-11-08 07:23:15