Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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/colorPrimaryDark"
- tools:context=".view.fragment.HomeFragment">
- <View
- android:layout_width="match_parent"
- android:layout_height="230dp"
- android:id="@+id/bg_top_header"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:background="@drawable/ic_bg_topheader"/>
- <ImageView
- android:id="@+id/user_photo"
- android:layout_width="71dp"
- android:layout_height="71dp"
- android:layout_marginStart="26dp"
- android:layout_marginTop="24dp"
- android:src="@drawable/ic_baseline_account_circle_24"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:contentDescription="@string/login_username_hint" />
- <TextView
- android:id="@+id/user_name"
- android:textSize="20sp"
- android:text="@string/nama_karyawan"
- android:textColor="#ffffff"
- android:fontFamily="@font/montserrat_bold"
- android:layout_marginTop="32dp"
- android:layout_marginStart="18dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:layout_constraintStart_toEndOf="@id/user_photo"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:textSize="16sp"
- android:text="@string/npk"
- android:id="@+id/user_id"
- android:fontFamily="@font/montserrat_light"
- android:textColor="#ffffff"
- android:layout_marginTop="32dp"
- android:layout_marginStart="18dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:layout_constraintStart_toEndOf="@id/user_photo"
- app:layout_constraintTop_toTopOf="@id/user_name"/>
- <GridLayout
- android:layout_width="match_parent"
- android:layout_height="300dp"
- android:layout_marginTop="140dp"
- android:layout_marginBottom="60dp"
- android:alignmentMode="alignMargins"
- android:columnCount="1"
- android:columnOrderPreserved="false"
- android:padding="14dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="@id/bg_top_header"
- app:layout_constraintVertical_bias="0.0"
- app:layout_editor_absoluteX="0dp">
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="10dp"
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:layout_marginBottom="16dp"
- android:background="@color/cardColor"
- app:cardCornerRadius="8dp"
- app:cardElevation="6dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal|center_vertical"
- android:layout_margin="16dp"
- android:gravity="center"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/ic_baseline_people_blue"
- android:contentDescription="@string/nama_karyawan" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/bawahan_title"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/montserrat_medium"
- android:textColor="@color/colorPrimary"
- android:textSize="12sp"
- android:textStyle="bold"/>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="10dp"
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:layout_marginBottom="16dp"
- android:background="@color/cardColor"
- app:cardCornerRadius="8dp"
- app:cardElevation="6dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal|center_vertical"
- android:layout_margin="16dp"
- android:gravity="center"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/ic_baseline_library_books_blue"
- android:contentDescription="@string/pengajuan_title" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/pengajuan_title"
- android:layout_marginTop="8dp"
- android:fontFamily="@font/montserrat_medium"
- android:textColor="@color/colorPrimary"
- android:textSize="12sp"
- android:textStyle="bold"/>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- </GridLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
Add Comment
Please, Sign In to add comment