【发布时间】:2013-07-02 19:51:36
【问题描述】:
我有以下布局:
<LinearLayout
android:id="@+id/main_ui_container"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/red"
android:orientation="vertical" >
<com.facebook.widget.LoginButton
android:id="@+id/login_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
facebook:confirm_logout="false"
facebook:fetch_user_info="true" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.26"
android:src="@drawable/logo" />
</LinearLayout>
我想在 ImageView 的前面(或顶部,取决于你如何看待它)放置一个 ProgresBar。
请问我该如何实现?
这是想要的结果:
【问题讨论】:
-
使用RelativeLayout而不是LinearLayout...
-
@Frohnzie 请问我该怎么做?
标签: android android-layout android-progressbar