gpt4 book ai didi

android - 如何删除搜索栏拇指填充?

转载 作者:行者123 更新时间:2023-11-29 00:08:55 25 4
gpt4 key购买 nike

我正在尝试将搜索栏添加到我的应用程序,但是当我这样做时,我在搜索栏拇指中看到了一些填充(见下图)。我怎样才能删除这个填充?

enter image description here

搜索栏的xml代码是

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<SeekBar
android:id="@+id/seekBar1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="132dp"
android:max="10000"
android:paddingLeft="-10dp"
android:paddingRight="-10dp"
android:progress="0"
android:thumbOffset="-10dp" />

</RelativeLayout>

谁能帮我解决这个问题?

最佳答案

这是工作代码。

我这边没有填充。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<SeekBar
android:id="@+id/seekBar1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="132dp"
android:max="10000"
android:progress="0" />

</RelativeLayout>

关于android - 如何删除搜索栏拇指填充?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31692850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com