Advertisement
ahsai001

rc-android-workshop-myquran-layout-splash

May 26th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3.    android:id="@+id/activity_login"
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:fitsSystemWindows="true"
  9.    tools:context=".SplashScreenActivity">
  10.  
  11.     <RelativeLayout
  12.        android:layout_width="match_parent"
  13.        android:layout_height="match_parent">
  14.  
  15.         <ImageView
  16.            android:layout_width="match_parent"
  17.            android:layout_height="match_parent"
  18.            android:layout_centerInParent="true"
  19.            android:scaleType="centerCrop"
  20.            android:src="@drawable/splash_screen"/>
  21.  
  22.         <TextView
  23.            android:id="@+id/textView"
  24.            android:layout_width="wrap_content"
  25.            android:layout_height="wrap_content"
  26.            android:text="Downloading data ..."
  27.            android:textColor="#fff"
  28.            android:visibility="gone"
  29.            android:layout_marginBottom="8dp"
  30.            android:layout_centerHorizontal="true"
  31.            android:layout_alignParentBottom="true"/>
  32.  
  33.         <ProgressBar
  34.            style="?android:attr/progressBarStyle"
  35.            android:layout_width="wrap_content"
  36.            android:layout_height="wrap_content"
  37.            android:layout_above="@id/textView"
  38.            android:layout_centerHorizontal="true"
  39.            android:visibility="gone"
  40.            android:layout_marginBottom="8dp"
  41.            android:id="@+id/progressBar" />
  42.  
  43.     </RelativeLayout>
  44.  
  45. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement