Advertisement
sphinx2001

main_activity_content_provider

May 17th, 2024
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    tools:context=".MainActivity">
  9.  
  10.     <TextView
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:layout_alignParentEnd="true"
  14.        android:layout_alignParentStart="true"
  15.        android:textAlignment="center"
  16.        android:textSize="30sp"
  17.        android:text="@string/title_text" />
  18.  
  19.     <LinearLayout
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"
  22.        android:layout_alignParentEnd="true"
  23.        android:layout_alignParentRight="true"
  24.        android:layout_alignParentBottom="true"
  25.        android:layout_margin="10dp"
  26.        android:orientation="vertical"
  27.        android:padding="10dp">
  28.  
  29.  
  30.         <!--on below line we are creating a add fab-->
  31.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  32.            android:id="@+id/idFABHome"
  33.            android:layout_width="wrap_content"
  34.            android:layout_height="wrap_content"
  35.            android:layout_margin="8dp"
  36.            android:layout_marginBottom="16dp"
  37.            android:background="@color/purple_200"
  38.            android:contentDescription="@string/app_name"
  39.            android:padding="4dp"
  40.            android:src="@drawable/ic_home"
  41.            android:visibility="gone"
  42.            app:backgroundTint="@color/purple_200"
  43.            app:tint="@color/white" />
  44.  
  45.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  46.            android:id="@+id/idFABContacts"
  47.            android:layout_width="wrap_content"
  48.            android:layout_height="wrap_content"
  49.            android:layout_margin="8dp"
  50.            android:layout_marginBottom="16dp"
  51.            android:background="@color/purple_200"
  52.            android:contentDescription="@string/app_name"
  53.            android:padding="4dp"
  54.            android:src="@drawable/ic_phone"
  55.            android:visibility="gone"
  56.            app:backgroundTint="@color/purple_200"
  57.            app:tint="@color/white" />
  58.  
  59.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  60.            android:id="@+id/idFABWriteContacts"
  61.            android:layout_width="wrap_content"
  62.            android:layout_height="wrap_content"
  63.            android:layout_margin="8dp"
  64.            android:layout_marginBottom="16dp"
  65.            android:background="@color/purple_200"
  66.            android:contentDescription="@string/app_name"
  67.            android:padding="4dp"
  68.            android:src="@drawable/ic_add_contacts"
  69.            android:visibility="gone"
  70.            app:backgroundTint="@color/purple_200"
  71.            app:tint="@color/white" />
  72.  
  73.         <!--on below line we are creating a settings fab
  74.            and setting its visibility to gone-->
  75.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  76.            android:id="@+id/idFABAdd"
  77.            android:layout_width="wrap_content"
  78.            android:layout_height="wrap_content"
  79.            android:layout_margin="8dp"
  80.            android:layout_marginBottom="16dp"
  81.            android:background="@color/purple_200"
  82.            android:contentDescription="@string/app_name"
  83.            android:padding="4dp"
  84.            android:src="@drawable/ic_more"
  85.            app:backgroundTint="@color/purple_200"
  86.            app:tint="@color/white" />
  87.  
  88.     </LinearLayout>
  89.  
  90. </RelativeLayout>
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement