我创建了一个包含水平进度的XML文件,但它显示为如下图所示:水平进度条不显示正确
这里是我的XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<ProgressBar
android:id="@+id/progress"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:max="100"
android:progress="50" />
</LinearLayout>
发生了什么?我该如何解决它?
你得到你的进度现在的工作?看看我的回答 –
@K_Anas [这里是你的修复结果](http://no6.upanh.com/b5.s28.d3/d92f828109ac5018216887c3680f635a_46596036.capture.png ) – user1465351
尝试添加'android:maxHeight =“12dip”和android: minHeight =“12dip”'进度条。 – Chandra