Android 默认seekbar显示怪异;拇指漂浮在seekbar上方
我已尝试更改活动中每个项目的边距设置,但此问题仍然存在: 显然,我没有必要的代表发布图像,因此这里的屏幕截图: seekbar的拇指部分浮动在进度部分的上方。以下是XML:Android 默认seekbar显示怪异;拇指漂浮在seekbar上方,android,Android,我已尝试更改活动中每个项目的边距设置,但此问题仍然存在: 显然,我没有必要的代表发布图像,因此这里的屏幕截图: seekbar的拇指部分浮动在进度部分的上方。以下是XML: <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="85dp"
android:layout_marginTop="15dp"
android:orientation="vertical" >
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="25dp"
android:layout_weight="1" />
<TextView
android:id="@+id/kessilBrightText"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:text="Brightness"
android:textSize="@dimen/LargeText" />
<SeekBar
android:id="@+id/kessilBrightSeek"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_below="@+id/kessilBrightText"
android:layout_weight="1" />
<TextView
android:id="@+id/kessilColorText"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:text="Color"
android:textSize="@dimen/LargeText" />
<SeekBar
android:id="@+id/kessilColorSeek"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<Button
android:id="@+id/showSettings"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/btn_blue_outline"
android:onClick="showSettings"
android:text="Settings" />
<Button
android:id="@+id/playButton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_weight="3"
android:background="@drawable/btn_blue_outline"
android:onClick="playorstopScene"
android:text="Play Scene" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:src="@drawable/logo_bg" />
<com.pheelicks.visualizer.VisualizerView
android:id="@+id/visualizerView"
android:layout_width="100dp"
android:layout_height="75dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />
有人能提供解决方案吗?我曾多次尝试在Eclipse中清理和重建项目。谢谢您的搜索栏布局高度应大于零。使用wrap_内容,似乎没有理由需要为这种标准布局设置权重。重新考虑一下您的总体布局结构。您是否尝试过在不使用布局权重的情况下对搜索栏进行布局,而只使用布局高度属性的换行内容?这就解决了问题……谢谢!我以前试过,但我肯定还有wieght属性。奇怪的效果。。。