【发布时间】:2015-11-19 19:08:27
【问题描述】:
我有一个带单选按钮和进度条的 RelativeLayout。单选按钮应定义相对布局的高度,因此 ProgressBar 应与单选按钮具有相同的高度。但事实并非如此。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:progressDrawable="@drawable/progress" />
<RadioButton
android:id="@+id/radioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
【问题讨论】:
-
我也有同样的问题。你解决了吗?
标签: android height android-progressbar