Spaces:
Sleeping
Sleeping
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:background="@android:color/white"> | |
| <!-- WebView principal --> | |
| <WebView | |
| android:id="@+id/webview" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:visibility="visible"/> | |
| <!-- Barra de progreso de carga --> | |
| <ProgressBar | |
| android:id="@+id/progressBar" | |
| style="?android:attr/progressBarStyleHorizontal" | |
| android:layout_width="match_parent" | |
| android:layout_height="4dp" | |
| android:layout_alignParentTop="true" | |
| android:max="100" | |
| android:progressTint="@color/colorPrimary" | |
| android:visibility="gone"/> | |
| <!-- Pantalla de error de conexión --> | |
| <LinearLayout | |
| android:id="@+id/errorLayout" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:gravity="center" | |
| android:orientation="vertical" | |
| android:padding="32dp" | |
| android:visibility="gone"> | |
| <ImageView | |
| android:layout_width="80dp" | |
| android:layout_height="80dp" | |
| android:src="@android:drawable/ic_menu_close_clear_cancel" | |
| android:tint="@color/colorPrimary" | |
| android:layout_marginBottom="16dp"/> | |
| <TextView | |
| android:id="@+id/errorTitle" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:text="@string/error_title" | |
| android:textSize="20sp" | |
| android:textStyle="bold" | |
| android:textColor="@android:color/black" | |
| android:layout_marginBottom="8dp"/> | |
| <TextView | |
| android:id="@+id/errorMessage" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:text="@string/error_message" | |
| android:textSize="16sp" | |
| android:textColor="#666666" | |
| android:gravity="center" | |
| android:layout_marginBottom="24dp"/> | |
| <Button | |
| android:id="@+id/retryButton" | |
| android:layout_width="wrap_content" | |
| android:layout_height="48dp" | |
| android:text="@string/retry" | |
| android:backgroundTint="@color/colorPrimary" | |
| android:textColor="@android:color/white" | |
| android:paddingLeft="32dp" | |
| android:paddingRight="32dp" | |
| android:textAllCaps="false" | |
| android:textSize="16sp"/> | |
| </LinearLayout> | |
| </RelativeLayout> | |