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="wrap_content"
- tools:context=".MainActivity"
- android:padding="@dimen/layout_16"
- android:id="@+id/root_layout"
- android:gravity="center"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/instruction"
- android:textAppearance="@style/TextAppearance.AppCompat.Small" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_marginTop="@dimen/layout_10">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/s"
- android:layout_weight="2"
- android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
- <EditText
- android:id="@+id/variable_semesta"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:inputType="number"
- android:maxLength="5"
- android:selectAllOnFocus="true"
- android:text="0"
- android:textAlignment="textEnd"
- android:textAppearance="@style/TextAppearance.AppCompat.Large" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/semesta"
- android:textSize="12dp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_marginTop="@dimen/layout_10">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/a"
- android:layout_weight="2"
- android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
- <EditText
- android:id="@+id/variable_1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:inputType="number"
- android:maxLength="5"
- android:selectAllOnFocus="true"
- android:text="0"
- android:textAlignment="textEnd"
- android:textAppearance="@style/TextAppearance.AppCompat.Large" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/himpunan_1"
- android:textSize="12dp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginTop="@dimen/layout_10">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/b"
- android:layout_weight="2"
- android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
- <EditText
- android:id="@+id/variable_2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:inputType="number"
- android:maxLength="5"
- android:selectAllOnFocus="true"
- android:text="0"
- android:textAlignment="textEnd"
- android:textAppearance="@style/TextAppearance.AppCompat.Large" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/himpunan_2"
- android:textSize="12dp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginTop="@dimen/layout_10">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tv_complementer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.AppCompat.Large"
- android:layout_weight="2"/>
- <EditText
- android:id="@+id/variable_3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:inputType="number"
- android:maxLength="5"
- android:selectAllOnFocus="true"
- android:text="0"
- android:textAlignment="textEnd"
- android:textAppearance="@style/TextAppearance.AppCompat.Large" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/komplementer"
- android:textSize="12dp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:id="@+id/ll_param_4">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_marginTop="@dimen/layout_10">
- <TextView
- android:id="@+id/tv_irisan"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
- <EditText
- android:id="@+id/variable_4"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:inputType="number"
- android:maxLength="5"
- android:selectAllOnFocus="true"
- android:text="0"
- android:textAlignment="textEnd"
- android:textAppearance="@style/TextAppearance.AppCompat.Large" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/irisan"
- android:textSize="12dp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginTop="@dimen/layout_16">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:layout_margin="@dimen/layout_5"
- android:text="@string/hasil"/>
- <Spinner
- android:id="@+id/sp_value"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:entries="@array/g_value"
- android:spinnerMode="dialog"
- android:textSize="24sp" />
- </LinearLayout>
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:layout_margin="@dimen/layout_5"
- android:text="@string/diagram_venn"/>
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="300dp"
- android:layout_height="wrap_content"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <ImageView
- android:id="@+id/iv_gambar"
- android:layout_width="match_parent"
- android:layout_height="170dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.0"
- app:srcCompat="@drawable/unattach"
- tools:srcCompat="@drawable/unattach" />
- <TextView
- android:id="@+id/tv_i_semesta"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0"
- android:textAlignment="textStart"
- android:textSize="16sp"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/tv_i_komplementer"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0"
- android:textAlignment="textEnd"
- android:textSize="16sp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent" />
- <TextView
- android:id="@+id/tv_i_irisan"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0"
- android:textAlignment="center"
- android:textSize="16sp"
- app:layout_constraintBottom_toBottomOf="@+id/iv_gambar"
- app:layout_constraintEnd_toEndOf="@+id/iv_gambar"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/tv_i_a"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="60dp"
- android:text="0"
- android:textAlignment="center"
- android:textSize="16sp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="@+id/iv_gambar"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/tv_i_b"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="60dp"
- android:text="0"
- android:textAlignment="center"
- android:textSize="16sp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="@+id/iv_gambar"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </LinearLayout>
- </ScrollView>
- -------------------------- LAYOUT BOTTOM SHEET (SEBAGAI TESTING) ------------------------------
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.cardview.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="2dp">
- <!--image view for displaying course image-->
- <ImageView
- android:id="@+id/idIVCourse"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:layout_margin="10dp" />
- <!--text view for displaying course name-->
- <TextView
- android:id="@+id/idTVCourseName"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_toEndOf="@id/idIVCourse"
- android:layout_toRightOf="@id/idIVCourse"
- android:text="DSA Self Paced Course"
- android:textColor="@color/black"
- android:textSize="18sp"
- android:textStyle="bold" />
- <!--text view for displaying course tracks-->
- <TextView
- android:id="@+id/idTVCourseTracks"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/idTVCourseName"
- android:layout_marginTop="10dp"
- android:layout_toEndOf="@id/idIVCourse"
- android:layout_toRightOf="@id/idIVCourse"
- android:text="Course Tracks : 30"
- android:textColor="@color/black"
- android:textSize="15sp" />
- <!--text view for displaying course duration-->
- <TextView
- android:id="@+id/idTVCourseDuration"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/idTVCourseTracks"
- android:layout_marginTop="10dp"
- android:layout_toEndOf="@id/idIVCourse"
- android:layout_toRightOf="@id/idIVCourse"
- android:text="Course Duration : 4 Months"
- android:textColor="@color/black"
- android:textSize="15sp" />
- <!--button for dismissing our dialog-->
- <Button
- android:id="@+id/bt_tutup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/idIVCourse"
- android:layout_margin="10dp"
- android:text="Tutup"
- android:textAllCaps="true" />
- </RelativeLayout>
- </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement