Skip to content

Instantly share code, notes, and snippets.

@ronnieotieno
Created August 26, 2020 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronnieotieno/7f2000e52b1bdac6b3f3e84bfd5ad9ab to your computer and use it in GitHub Desktop.
Save ronnieotieno/7f2000e52b1bdac6b3f3e84bfd5ad9ab to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:padding="8dp">
<TextView
android:id="@+id/error_msg_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:textAlignment="center"
android:textColor="?android:textColorPrimary"
tools:text="Timeout" />
<ProgressBar
android:id="@+id/progress_bar_item"
style="?android:attr/progressBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/error_msg_item"
android:layout_gravity="center" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment