我试图在我的活动中实现ProgressBar
,但进度条很大(cf截图)。 编辑我的布局中的宽度或高度属性不会改变事情。FrameLayout中的ProgressBar方式太大
这是我目前使用的代码。
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:padding="10dp"
android:layout_height="match_parent" />
<ProgressBar
android:id="@+id/main_progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ListView
android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#111"
android:choiceMode="singleChoice"
android:dividerHeight="0dp" />
</android.support.v4.widget.DrawerLayout>
您有任何提示吗?
在此先感谢。
看到我的编辑.... –
工作就像一个魅力,非常感谢! – Vico
这就是RelativeLayout的秘密;) –