HarshBarash

profile

Apr 20th, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.42 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView
  3.     xmlns:android="http://schemas.android.com/apk/res/android"
  4.     xmlns:app="http://schemas.android.com/apk/res-auto"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     android:fillViewport="true"
  8.     android:background="#99ECA0"
  9.     android:orientation="vertical">
  10.  
  11.  
  12.     <LinearLayout
  13.         android:layout_width="match_parent"
  14.         android:layout_height="wrap_content"
  15.         android:orientation="vertical">
  16.  
  17.  
  18.         <TextView
  19.             android:id="@+id/change"
  20.             android:layout_width="200dp"
  21.             android:layout_height="50dp"
  22.             android:layout_gravity="center"
  23.             android:layout_marginTop="30dp"
  24.             android:layout_marginBottom="10dp"
  25.             android:background="@drawable/btnradius"
  26.             android:gravity="center"
  27.             android:text="CardView profile"
  28.             android:textColor="@color/black"
  29.             android:textSize="17sp"/>
  30.  
  31.         <LinearLayout
  32.             android:layout_width="match_parent"
  33.             android:layout_height="wrap_content"
  34.             android:orientation="vertical">
  35.  
  36.             <GridLayout
  37.                 android:layout_width="match_parent"
  38.                 android:layout_height="wrap_content"
  39.                 android:layout_gravity="center_horizontal"
  40.                 android:layout_marginLeft="15dp"
  41.                 android:layout_marginTop="50dp"
  42.                 android:layout_marginRight="15dp"
  43.                 android:columnCount="1"
  44.                 android:columnOrderPreserved="false"
  45.                 android:rowCount="1">
  46.  
  47.                 <androidx.cardview.widget.CardView
  48.                     android:layout_width="match_parent"
  49.                     android:layout_height="wrap_content"
  50.                     android:layout_margin="10dp"
  51.                     android:layout_marginLeft="15dp"
  52.                     android:layout_marginRight="15dp"
  53.                     app:cardCornerRadius="25dp"
  54.                     app:cardElevation="5dp">
  55.  
  56.                     <LinearLayout
  57.                         android:layout_width="match_parent"
  58.                         android:layout_height="match_parent"
  59.                         android:layout_gravity="center"
  60.                         android:orientation="vertical">
  61.  
  62.                         <ImageButton
  63.                             android:id="@+id/picture"
  64.                             android:layout_width="200dp"
  65.                             android:layout_height="200dp"
  66.                             android:layout_gravity="center"
  67.                             android:background="@drawable/gg">
  68.  
  69.                         </ImageButton>
  70.  
  71.                         <TextView
  72.                             android:id="@+id/name"
  73.                             android:layout_width="208dp"
  74.                             android:layout_height="18dp"
  75.                             android:layout_marginStart="100dp"
  76.                             android:layout_marginTop="30dp"
  77.                             android:text="Name"
  78.                             android:textColor="@color/black"
  79.                             android:textSize="17sp">
  80.  
  81.                         </TextView>
  82.  
  83.                         <TextView
  84.                             android:id="@+id/phone"
  85.                             android:layout_width="216dp"
  86.                             android:layout_height="18dp"
  87.                             android:layout_marginStart="100dp"
  88.                             android:layout_marginTop="20dp"
  89.                             android:text="Phone"
  90.                             android:textColor="@color/black"
  91.                             android:textSize="17sp">
  92.  
  93.                         </TextView>
  94.  
  95.                         <TextView
  96.                             android:id="@+id/email"
  97.                             android:layout_width="226dp"
  98.                             android:layout_height="33dp"
  99.                             android:layout_marginStart="100dp"
  100.                             android:layout_marginTop="20dp"
  101.                             android:text="email"
  102.                             android:textColor="@color/black"
  103.                             android:textSize="17sp">
  104.  
  105.                         </TextView>
  106.  
  107.                     </LinearLayout>
  108.                 </androidx.cardview.widget.CardView>
  109.  
  110.             </GridLayout>
  111.         </LinearLayout>
  112.     </LinearLayout>
  113. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment