In this blog, we have to create all fragment layouts and also implement all possible custom icon designs in the calendar app. So, we have to follow some steps to make it easy and reduce your time when we are starting design.

- Fragment 01 Layout Design named Home.
- Fragment 02 Layout Design named Subh Mhurat 2023.
- Fragment 03 Layout Design named Aarti 2023.
- Fragment 04 Layout Design named RashiPhal 2023.
Fragment 01 Layout Design named Home.
In this fragment, we have to create and design HomeLayout for a calendar app in XML code layout. but before we have to download some icon which is used in this layout and also further layout.
Now, open our project and do copy paste system.
we have to create a drawable Resource File named “item_bg“.
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1.5dp" android:color="@color/blue" /> <corners android:radius="12dp" /> <solid android:color="@color/teal_200" /> </shape>
After that, you have to paste all code in fragments at one time.
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/purple_200" android:fitsSystemWindows="true" tools:context=".fragments.OneFragment"> <androidx.core.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn01" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/calender" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:id="@+id/textViewBtn" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/calendar" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn02" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/compas" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/desa_sool" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn03" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/sun" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/suryagrahan" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn04" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/chadragrahan" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/chandragrahan" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn05" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/astrology" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/grihgochar" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn06" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/hawan" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/pujapath" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn07" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/panchak" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/panchak" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn08" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/blackmoon" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/amawasya" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout>

Fragment 02 Layout Design named Subh Muhurat 2023.
In this fragment, we have to create and design Subh Muhurat 2023 for a calendar app in XML code layout.
we have to create a drawable Resource File named “item_bg01“.
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1.5dp" android:color="@color/blue" /> <solid android:color="@color/teal_200" /> <corners android:bottomLeftRadius="12dp" android:bottomRightRadius="12dp" android:topLeftRadius="100dp" android:topRightRadius="100dp" /> </shape>
After that, you have to paste all code in fragments at one time.
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/purple_200" android:fitsSystemWindows="true" tools:context=".fragments.TwoFragment"> <androidx.core.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn01" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/vivah" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/vivah_muhurat" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn02" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/grih" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/grih_prawes" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn03" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/mundan" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/mundan" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn04" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/bhoomipojan" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/bhoomi_pujan" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn05" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/upnayan" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/upnayan" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn06" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/naamaran" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/naamkaran" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn07" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/property" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/property_muhurat" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn08" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/vahan" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/vahan_muhurat" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="12dp" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="2"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn09" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/shiv" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/mahashivratri_vrat" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <LinearLayout android:id="@+id/btn10" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="4dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:background="@drawable/item_bg01" android:gravity="center" android:orientation="vertical" app:cardElevation="2dp"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/ganesh" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/chathurti_vrat" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </RelativeLayout> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout>

Fragment 03 Layout Design named Aarti 2023.
In this fragment, we have to create and design Aarti 2023 for a calendar app in XML code layout.
we have to create a drawable Resource File named “itembg“.
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:bottomLeftRadius="80dp" android:bottomRightRadius="12dp" android:topLeftRadius="80dp" android:topRightRadius="12dp" /> <solid android:color="@color/teal_200" /> <stroke android:width="1.5dp" android:color="@color/blue" /> </shape>
After that, you have to paste all code in fragments at one time.
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/purple_200" android:fitsSystemWindows="true" tools:context=".fragments.ThreeFragment"> <androidx.core.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="12dp" android:layout_marginTop="12dp" android:layout_marginEnd="12dp" android:orientation="vertical"> <LinearLayout android:id="@+id/linearBtn01" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="12dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/ganesh" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/ganesh" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn02" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/shiv" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/shiv" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn03" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/ambe" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/durga" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn04" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/hanuman" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/hanuman" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn05" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/ambe" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/ambe" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn06" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/lakshmi" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/lakshmi" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn07" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/saraswati" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/saraswati" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn08" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/vishnu" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/jagdish" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn09" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/satanarayan" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/satyanarayan" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> <LinearLayout android:id="@+id/linearBtn10" android:layout_width="match_parent" android:layout_height="90dp" android:layout_marginTop="16dp" android:layout_marginBottom="12dp" android:background="@drawable/itembg" android:orientation="horizontal"> <de.hdodenhof.circleimageview.CircleImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:padding="4dp" android:src="@drawable/vishnu" app:civ_border_color="@color/blue" app:civ_border_width="1.5dp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:text="@string/vaishnau" android:textColor="@color/ghost_white" android:textSize="22sp" /> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout>

Fragment 04 Layout Design named RashiPhal 2023.
In this fragment, we have to create and design RashiPhal 2023 for a calendar app in XML code layout.
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/purple_200" android:fitsSystemWindows="true" tools:context=".fragments.OneFragment"> <androidx.core.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="3"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn01" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/mesh" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/mesh_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn02" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/vrisabh" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/vrisabh_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn03" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/mithun" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/mithun_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="3"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn04" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/kark" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/kark_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn05" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/singh" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/sinh_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn06" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/kanya" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/kanya_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="3"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn07" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/tula" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/tula_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn08" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/vrishchik" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/vrishik_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn09" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/dhanu" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/dhanu_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:baselineAligned="false" android:orientation="horizontal" android:weightSum="3"> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="12dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn10" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/makar" tools:ignore="TooDeepLayout" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/makar_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="6dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn11" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/kumbh" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/kumbh_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="6dp" android:layout_marginEnd="12dp" android:layout_weight="1"> <androidx.cardview.widget.CardView android:id="@+id/btn12" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginStart="4dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="4dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" app:cardBackgroundColor="@color/teal_200" app:cardCornerRadius="12dp" app:cardElevation="2dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item_bg" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="70dp" android:layout_height="70dp" android:contentDescription="@string/app_name" android:src="@drawable/meen" /> <View android:layout_width="match_parent" android:layout_height="1.5dp" android:layout_marginTop="8dp" android:background="@color/blue" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:gravity="center_horizontal" android:text="@string/meen_rashi" android:textColor="@color/white" android:textSize="18sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </RelativeLayout> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> </androidx.constraintlayout.widget.ConstraintLayout>
