62 lines
1.8 KiB
XML
62 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/background_color"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/temp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/pb"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/error"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="网络错误"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="20sp"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/bt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_below="@+id/hint"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginTop="16dp"
|
|
android:background="@drawable/selector_green_bt"
|
|
android:text="刷新"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="16sp"
|
|
/>
|
|
</RelativeLayout>
|
|
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |