<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:gravity="center" android:padding="20dp" android:layout_height="wrap_content"> <ProgressBar style="@android:style/Widget.ProgressBar.Small" android:id="@+id/pb" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:id="@+id/text_con" android:layout_marginLeft="10dp" android:text="正在加载..." android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>