Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:layout_below="@id/slider"
- android:orientation="vertical">
- <GridLayout
- android:id="@+id/GridLayoutHome"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:columnCount="2"
- android:rowCount="2">
- <Space />
- <android.support.v7.widget.CardView
- android:id="@+id/cardHomeFJB"
- android:layout_width="170dp"
- android:layout_height="170dp"
- android:layout_column="0"
- android:layout_margin="5dp"
- android:layout_row="0"
- android:foreground="?attr/selectableItemBackground"
- android:stateListAnimator="@anim/card_animation"
- app:cardCornerRadius="20dp"
- app:cardElevation="5dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageHome1"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:layout_gravity="center"
- android:src="@drawable/shop" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="FORUM JUAL BELI"
- android:textSize="15dp" />
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <!--event-->
- <android.support.v7.widget.CardView
- android:id="@+id/cardHomeEvent"
- android:layout_width="170dp"
- android:layout_height="170dp"
- android:layout_column="1"
- android:layout_margin="5dp"
- android:layout_row="0"
- android:foreground="?attr/selectableItemBackground"
- android:stateListAnimator="@anim/card_animation"
- app:cardCornerRadius="20dp"
- app:cardElevation="5dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageHome2"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:src="@drawable/event" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="EVENT"
- android:textSize="15dp" />
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <android.support.v7.widget.CardView
- android:id="@+id/cardHomeDokter"
- android:layout_width="170dp"
- android:layout_height="170dp"
- android:layout_column="0"
- android:layout_margin="5dp"
- android:layout_row="1"
- android:foreground="?attr/selectableItemBackground"
- android:stateListAnimator="@anim/card_animation"
- app:cardCornerRadius="20dp"
- app:cardElevation="5dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageHome3"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:src="@drawable/house" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="PET SHOP"
- android:textSize="15dp" />
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <android.support.v7.widget.CardView
- android:id="@+id/cardHomeAbout"
- android:layout_width="170dp"
- android:layout_height="170dp"
- android:layout_column="1"
- android:layout_margin="5dp"
- android:layout_row="1"
- android:foreground="?attr/selectableItemBackground"
- android:stateListAnimator="@anim/card_animation"
- app:cardCornerRadius="20dp"
- app:cardElevation="5dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageHome4"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:src="@drawable/about" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="TENTANG"
- android:textSize="15dp" />
- </LinearLayout>
- </android.support.v7.widget.CardView>
- </GridLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement