Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView 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"
- tools:context=".dashboard.DashboardActivity">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/colorWhite">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_header"
- android:layout_width="match_parent"
- android:layout_height="250dp"
- android:scaleType="centerCrop"
- app:srcCompat="@drawable/bg_header_dashboard_morning"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_welcome"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/bg_rounded_text_view"
- android:fontFamily="@font/poppins_medium"
- android:text="@string/text_welcome"
- android:textColor="@color/colorText"
- app:layout_constraintLeft_toLeftOf="@id/iv_header"
- app:layout_constraintRight_toRightOf="@id/iv_header"
- app:layout_constraintBottom_toBottomOf="@id/iv_header"
- app:layout_constraintTop_toTopOf="@id/iv_header"/>
- <HorizontalScrollView
- android:id="@+id/list_menu"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="16dp"
- android:background="@drawable/bg_rounded_menu"
- android:padding="16dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@id/iv_header">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_icon_menu_doa"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_menu_doa"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_menu_doa"
- android:textColor="@color/colorWhite"
- android:textSize="14sp"
- android:layout_marginTop="8dp"
- app:layout_constraintLeft_toLeftOf="@id/iv_icon_menu_doa"
- app:layout_constraintRight_toRightOf="@id/iv_icon_menu_doa"
- app:layout_constraintTop_toBottomOf="@id/iv_icon_menu_doa"/>
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_icon_menu_dzikir"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="24dp"
- android:src="@drawable/ic_menu_dzikir"
- app:layout_constraintStart_toEndOf="@id/iv_icon_menu_doa"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_menu_dzikir"
- android:textColor="@color/colorWhite"
- app:layout_constraintLeft_toLeftOf="@id/iv_icon_menu_dzikir"
- app:layout_constraintRight_toRightOf="@id/iv_icon_menu_dzikir"
- app:layout_constraintTop_toBottomOf="@id/iv_icon_menu_dzikir" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_icon_menu_zakat"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="24dp"
- android:src="@drawable/ic_menu_zakat"
- app:layout_constraintStart_toEndOf="@id/iv_icon_menu_dzikir"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_menu_zakat"
- android:textColor="@color/colorWhite"
- android:textSize="14sp"
- app:layout_constraintLeft_toLeftOf="@id/iv_icon_menu_zakat"
- app:layout_constraintRight_toRightOf="@id/iv_icon_menu_zakat"
- app:layout_constraintTop_toBottomOf="@id/iv_icon_menu_zakat" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_icon_menu_jadwal_sholat"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="24dp"
- android:src="@drawable/ic_menu_jadwal_sholat"
- app:layout_constraintStart_toEndOf="@id/iv_icon_menu_zakat"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_menu_jadwal_sholat"
- android:textColor="@color/colorWhite"
- android:textSize="14sp"
- app:layout_constraintLeft_toLeftOf="@id/iv_icon_menu_jadwal_sholat"
- app:layout_constraintRight_toRightOf="@id/iv_icon_menu_jadwal_sholat"
- app:layout_constraintTop_toBottomOf="@id/iv_icon_menu_jadwal_sholat" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_icon_menu_video_kajian"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="24dp"
- android:src="@drawable/ic_menu_video_kajian"
- app:layout_constraintStart_toEndOf="@id/iv_icon_menu_jadwal_sholat"
- app:layout_constraintTop_toTopOf="parent"/>
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_menu_video_kajian"
- android:textColor="@color/colorWhite"
- android:textSize="14sp"
- app:layout_constraintLeft_toLeftOf="@id/iv_icon_menu_video_kajian"
- app:layout_constraintRight_toRightOf="@id/iv_icon_menu_video_kajian"
- app:layout_constraintTop_toBottomOf="@id/iv_icon_menu_video_kajian" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </HorizontalScrollView>
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_inspiration"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:fontFamily="@font/poppins_semi_bold"
- android:text="@string/text_inspirasi"
- android:textColor="@color/colorText"
- android:textSize="20sp"
- app:layout_constraintStart_toStartOf="@id/list_menu"
- app:layout_constraintTop_toBottomOf="@id/list_menu" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_inspiration"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="16dp"
- android:layout_marginTop="8dp"
- android:nestedScrollingEnabled="false"
- app:layout_constraintTop_toBottomOf="@id/tv_inspiration"
- tools:listitem="@layout/item_row_inspiration"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement