Advertisement
Guest User

tester

a guest
Jan 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.29 KB | None | 0 0
  1. <LinearLayout
  2.                android:layout_width="match_parent"
  3.                android:layout_height="wrap_content"
  4.                android:layout_weight="2"
  5.                android:layout_below="@id/slider"
  6.                android:orientation="vertical">
  7.  
  8.                 <GridLayout
  9.                    android:id="@+id/GridLayoutHome"
  10.                    android:layout_width="match_parent"
  11.                    android:layout_height="match_parent"
  12.                    android:columnCount="2"
  13.                    android:rowCount="2">
  14.  
  15.                     <Space />
  16.  
  17.                     <android.support.v7.widget.CardView
  18.                        android:id="@+id/cardHomeFJB"
  19.                        android:layout_width="170dp"
  20.                        android:layout_height="170dp"
  21.                        android:layout_column="0"
  22.                        android:layout_margin="5dp"
  23.                        android:layout_row="0"
  24.                        android:foreground="?attr/selectableItemBackground"
  25.                        android:stateListAnimator="@anim/card_animation"
  26.                        app:cardCornerRadius="20dp"
  27.                        app:cardElevation="5dp">
  28.  
  29.                         <LinearLayout
  30.                            android:layout_width="wrap_content"
  31.                            android:layout_height="wrap_content"
  32.                            android:layout_gravity="center"
  33.                            android:orientation="vertical">
  34.  
  35.                             <ImageView
  36.                                android:id="@+id/imageHome1"
  37.                                android:layout_width="100dp"
  38.                                android:layout_height="100dp"
  39.                                android:layout_gravity="center"
  40.                                android:src="@drawable/shop" />
  41.  
  42.                             <TextView
  43.                                android:layout_width="wrap_content"
  44.                                android:layout_height="wrap_content"
  45.                                android:layout_gravity="center"
  46.                                android:text="FORUM JUAL BELI"
  47.                                android:textSize="15dp" />
  48.  
  49.                         </LinearLayout>
  50.  
  51.                     </android.support.v7.widget.CardView>
  52.  
  53.                     <!--event-->
  54.                     <android.support.v7.widget.CardView
  55.                        android:id="@+id/cardHomeEvent"
  56.                        android:layout_width="170dp"
  57.                        android:layout_height="170dp"
  58.                        android:layout_column="1"
  59.                        android:layout_margin="5dp"
  60.                        android:layout_row="0"
  61.                        android:foreground="?attr/selectableItemBackground"
  62.                        android:stateListAnimator="@anim/card_animation"
  63.                        app:cardCornerRadius="20dp"
  64.                        app:cardElevation="5dp">
  65.  
  66.                         <LinearLayout
  67.                            android:layout_width="wrap_content"
  68.                            android:layout_height="wrap_content"
  69.                            android:layout_gravity="center"
  70.                            android:orientation="vertical">
  71.  
  72.                             <ImageView
  73.                                android:id="@+id/imageHome2"
  74.                                android:layout_width="100dp"
  75.                                android:layout_height="100dp"
  76.                                android:src="@drawable/event" />
  77.  
  78.                             <TextView
  79.                                android:layout_width="wrap_content"
  80.                                android:layout_height="wrap_content"
  81.                                android:layout_gravity="center"
  82.                                android:text="EVENT"
  83.                                android:textSize="15dp" />
  84.  
  85.                         </LinearLayout>
  86.  
  87.                     </android.support.v7.widget.CardView>
  88.  
  89.                     <android.support.v7.widget.CardView
  90.                        android:id="@+id/cardHomeDokter"
  91.                        android:layout_width="170dp"
  92.                        android:layout_height="170dp"
  93.                        android:layout_column="0"
  94.                        android:layout_margin="5dp"
  95.                        android:layout_row="1"
  96.                        android:foreground="?attr/selectableItemBackground"
  97.                        android:stateListAnimator="@anim/card_animation"
  98.                        app:cardCornerRadius="20dp"
  99.                        app:cardElevation="5dp">
  100.  
  101.                         <LinearLayout
  102.                            android:layout_width="wrap_content"
  103.                            android:layout_height="wrap_content"
  104.                            android:layout_gravity="center"
  105.                            android:orientation="vertical">
  106.  
  107.                             <ImageView
  108.                                android:id="@+id/imageHome3"
  109.                                android:layout_width="100dp"
  110.                                android:layout_height="100dp"
  111.                                android:src="@drawable/house" />
  112.  
  113.                             <TextView
  114.                                android:layout_width="wrap_content"
  115.                                android:layout_height="wrap_content"
  116.                                android:layout_gravity="center"
  117.                                android:text="PET SHOP"
  118.                                android:textSize="15dp" />
  119.  
  120.                         </LinearLayout>
  121.  
  122.                     </android.support.v7.widget.CardView>
  123.  
  124.                     <android.support.v7.widget.CardView
  125.                        android:id="@+id/cardHomeAbout"
  126.                        android:layout_width="170dp"
  127.                        android:layout_height="170dp"
  128.                        android:layout_column="1"
  129.                        android:layout_margin="5dp"
  130.                        android:layout_row="1"
  131.                        android:foreground="?attr/selectableItemBackground"
  132.                        android:stateListAnimator="@anim/card_animation"
  133.                        app:cardCornerRadius="20dp"
  134.                        app:cardElevation="5dp">
  135.  
  136.                         <LinearLayout
  137.                            android:layout_width="wrap_content"
  138.                            android:layout_height="wrap_content"
  139.                            android:layout_gravity="center"
  140.                            android:orientation="vertical">
  141.  
  142.                             <ImageView
  143.                                android:id="@+id/imageHome4"
  144.                                android:layout_width="100dp"
  145.                                android:layout_height="100dp"
  146.                                android:src="@drawable/about" />
  147.  
  148.                             <TextView
  149.                                android:layout_width="wrap_content"
  150.                                android:layout_height="wrap_content"
  151.                                android:layout_gravity="center"
  152.                                android:text="TENTANG"
  153.                                android:textSize="15dp" />
  154.  
  155.                         </LinearLayout>
  156.  
  157.                     </android.support.v7.widget.CardView>
  158.  
  159.                 </GridLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement