mirror of
https://github.com/pendragonnn/PalmGuard-App-Thesis.git
synced 2025-08-12 18:32:21 +00:00
227 lines
10 KiB
XML
227 lines
10 KiB
XML
<?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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.diagnose.DiagnoseDetailActivity">
|
|
|
|
<!-- <LinearLayout-->
|
|
<!-- android:id="@+id/ll_ds"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:layout_marginHorizontal="30dp"-->
|
|
<!-- android:orientation="vertical"-->
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
<!-- app:layout_constraintTop_toTopOf="parent">-->
|
|
|
|
<!-- <ImageView-->
|
|
<!-- android:id="@+id/dgs_back"-->
|
|
<!-- android:layout_width="32dp"-->
|
|
<!-- android:layout_height="32dp"-->
|
|
<!-- android:layout_marginTop="35dp"-->
|
|
<!-- android:layout_marginBottom="15dp"-->
|
|
<!-- android:src="@drawable/ds_back_arrow_img" />-->
|
|
|
|
<!-- <LinearLayout-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:orientation="horizontal">-->
|
|
<!-- <TextView-->
|
|
<!-- android:id="@+id/tv_title"-->
|
|
<!-- style="@style/ActivityDiagnoseDiseaseName"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- tools:text="Algal Leaf" />-->
|
|
|
|
<!-- <TextView-->
|
|
<!-- android:id="@+id/tv_confidence"-->
|
|
<!-- style="@style/ActivityDiagnoseDiseaseName"-->
|
|
<!-- android:layout_marginStart="10dp"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:text="80%" />-->
|
|
<!-- </LinearLayout>-->
|
|
|
|
<!-- <com.google.android.material.card.MaterialCardView-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content">-->
|
|
|
|
<!-- <ImageView-->
|
|
<!-- android:id="@+id/iv_img_tea"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="200dp"-->
|
|
<!-- android:scaleType="fitXY"-->
|
|
<!-- tools:src="@drawable/dgs_wereng_img" />-->
|
|
<!-- </com.google.android.material.card.MaterialCardView>-->
|
|
|
|
<!-- <com.google.android.material.tabs.TabLayout-->
|
|
<!-- android:id="@+id/tab_layout"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:layout_marginVertical="8dp"-->
|
|
<!-- app:tabSelectedTextColor="@color/primaryGreen"-->
|
|
<!-- app:tabIndicatorColor="@color/primaryGreen"-->
|
|
<!-- android:background="@color/grayBackground"-->
|
|
<!-- app:layout_constraintTop_toBottomOf="@+id/img">-->
|
|
|
|
<!-- <com.google.android.material.tabs.TabItem-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content" />-->
|
|
|
|
<!-- <com.google.android.material.tabs.TabItem-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content" />-->
|
|
<!-- </com.google.android.material.tabs.TabLayout>-->
|
|
|
|
<!-- <androidx.viewpager2.widget.ViewPager2-->
|
|
<!-- android:id="@+id/view_pager"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
<!-- app:layout_constraintHorizontal_bias="0.0"-->
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
<!-- app:layout_constraintTop_toBottomOf="@id/tab_layout"-->
|
|
<!-- app:layout_constraintVertical_bias="1.0" />-->
|
|
<!-- </LinearLayout>-->
|
|
|
|
<ImageView
|
|
android:id="@+id/dgs_back"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginTop="@dimen/margin_screen"
|
|
android:layout_marginStart="@dimen/margin_screen"
|
|
android:src="@drawable/back_button"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/ds_mci"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_component"
|
|
app:cardCornerRadius="0dp"
|
|
app:cardPreventCornerOverlap="false"
|
|
app:cardUseCompatPadding="false"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/dgs_back">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_img_tea"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:scaleType="fitXY"
|
|
tools:src="@drawable/dgs_wereng_img" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/ds_cont_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_component"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
android:background="@color/primaryGreen"
|
|
android:paddingHorizontal="5dp"
|
|
android:paddingVertical="10dp"
|
|
app:layout_constraintTop_toBottomOf="@id/ds_mci">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Brown Spots" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_confidence_desc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_component"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
android:text="Confidence: "
|
|
android:textColor="@color/primaryGreen"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/ds_cont_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_confidence"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="80%"
|
|
android:textColor="@color/primaryGreen"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="@id/tv_confidence_desc"
|
|
app:layout_constraintStart_toEndOf="@+id/tv_confidence_desc"
|
|
app:layout_constraintTop_toTopOf="@id/tv_confidence_desc" />
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_component"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
android:background="@color/white"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_confidence_desc"
|
|
app:tabIndicatorColor="@color/primaryGreen"
|
|
app:tabSelectedTextColor="@color/primaryGreen">
|
|
|
|
<com.google.android.material.tabs.TabItem
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.google.android.material.tabs.TabItem
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</com.google.android.material.tabs.TabLayout>
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/view_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tab_layout"
|
|
app:layout_constraintVertical_bias="1.0" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_hs_gallery"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/button_no_radius"
|
|
android:fontFamily="@font/poppins_medium"
|
|
android:gravity="center"
|
|
android:layout_marginHorizontal="@dimen/margin_screen"
|
|
android:layout_marginBottom="@dimen/margin_screen"
|
|
android:paddingVertical="14dp"
|
|
android:text="Informasi Selengkapnya"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:icon="@drawable/diagnose_information_ic"
|
|
app:iconGravity="textStart"
|
|
app:iconTint="@color/white"
|
|
app:iconSize="25dp"
|
|
app:iconPadding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |