在Android平板电脑中看起来很奇怪

时间:2014-03-06 05:39:02

标签: android seekbar android-seekbar

我正在开发支持手机和平板电脑的APP。 手机工作正常,但当我在7英寸平板电脑上运行时,搜索栏看起来很奇怪......

任何人都可以帮助我

enter image description here

这是我用来显示搜索栏的自定义xml

    <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

    <item
        android:id="@android:id/background"
        android:drawable="@drawable/progress_unselected">

    </item>
    <item
        android:id="@android:id/secondaryProgress"
        android:drawable="@drawable/secondary_progress">
    </item>
    <item
        android:id="@android:id/progress"
        android:drawable="@drawable/progress_selected">
    </item>

</layer-list>

我的搜索栏位于RelativeLayout android:layout_alignParentBottom="true"

<SeekBar
    android:id="@+id/SeekBarTestPlay"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/adView"
    android:layout_alignParentBottom="true"
    android:layout_marginLeft="5.0dip"
    android:layout_marginRight="10.0dip"
    android:max="99"
    android:paddingBottom="10.0dip"
    android:progressDrawable="@drawable/progressbar"
    android:thumb="@drawable/progress_indicator"
    android:thumbOffset="0.0dip" />

0 个答案:

没有答案