Advertisement
rifki_cs29

DetailPengajuan

Jan 5th, 2021
1,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:id="@+id/nestedDetail"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:clipToPadding="false"
  9.    android:paddingBottom="16dp"
  10.    android:background="@color/colorPrimary">
  11.  
  12.     <androidx.constraintlayout.widget.ConstraintLayout
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content">
  15.  
  16.         <FrameLayout
  17.            android:id="@+id/frame_backdrop"
  18.            android:layout_width="0dp"
  19.            android:layout_height="wrap_content"
  20.            android:foreground="@drawable/shape_gradient"
  21.            app:layout_constraintEnd_toEndOf="parent"
  22.            app:layout_constraintStart_toStartOf="parent"
  23.            app:layout_constraintTop_toTopOf="parent">
  24.  
  25.             <androidx.appcompat.widget.AppCompatImageView
  26.                android:id="@+id/image_backdrop"
  27.                android:layout_width="match_parent"
  28.                android:layout_height="250dp"
  29.                android:src="@drawable/pupukkaltim"
  30.                android:scaleType="centerCrop" />
  31.  
  32.         </FrameLayout>
  33.  
  34.         <androidx.cardview.widget.CardView
  35.            android:id="@+id/cardView_detail"
  36.            android:layout_width="match_parent"
  37.            android:layout_height="wrap_content"
  38.            android:layout_marginStart="16dp"
  39.            android:layout_marginEnd="16dp"
  40.            app:cardBackgroundColor="@color/colorPrimary"
  41.            app:cardCornerRadius="10dp"
  42.            app:cardElevation="8dp"
  43.            app:layout_constraintBottom_toBottomOf="@+id/frame_backdrop"
  44.            app:layout_constraintStart_toStartOf="parent"
  45.            app:layout_constraintTop_toBottomOf="@+id/frame_backdrop">
  46.  
  47.             <androidx.constraintlayout.widget.ConstraintLayout
  48.                android:id="@+id/item_container"
  49.                android:layout_width="match_parent"
  50.                android:layout_height="wrap_content"
  51.                android:padding="12dp">
  52.  
  53.                 <TableLayout
  54.                    android:id="@+id/table_layout"
  55.                    android:layout_width="match_parent"
  56.                    android:layout_height="wrap_content"
  57.                    android:layout_marginTop="8dp"
  58.                    app:layout_constraintEnd_toEndOf="parent"
  59.                    app:layout_constraintStart_toStartOf="parent"
  60.                    app:layout_constraintTop_toTopOf="parent">
  61.                     <TableRow
  62.                        android:layout_width="match_parent"
  63.                        android:layout_height="wrap_content"
  64.                        android:layout_marginBottom="4dp">
  65.                         <TextView
  66.                            style="@style/TextSpec.Field"
  67.                            android:text="@string/nama_karyawan"/>
  68.                         <TextView
  69.                            android:id="@+id/tv_name_karyawan"
  70.                            style="@style/TextSpec.Value"
  71.                            android:text="@string/nama_karyawan"/>
  72.                     </TableRow>
  73.                     <TableRow
  74.                        android:layout_width="match_parent"
  75.                        android:layout_height="wrap_content"
  76.                        android:layout_marginBottom="4dp">
  77.                         <TextView
  78.                            style="@style/TextSpec.Field"
  79.                            android:text="@string/unitkerja"/>
  80.                         <TextView
  81.                            android:id="@+id/tv_unit_kerja"
  82.                            style="@style/TextSpec.Value"
  83.                            android:text="@string/unitkerja"/>
  84.                     </TableRow>
  85.                     <TableRow
  86.                        android:layout_width="match_parent"
  87.                        android:layout_height="wrap_content"
  88.                        android:layout_marginBottom="4dp">
  89.                         <TextView
  90.                            style="@style/TextSpec.Field"
  91.                            android:text="@string/grade"/>
  92.                         <TextView
  93.                            android:id="@+id/tv_grade"
  94.                            style="@style/TextSpec.Value"
  95.                            android:text="@string/grade"/>
  96.                     </TableRow>
  97.                     <TableRow
  98.                        android:layout_width="match_parent"
  99.                        android:layout_height="wrap_content"
  100.                        android:layout_marginBottom="4dp">
  101.                         <TextView
  102.                            style="@style/TextSpec.Field"
  103.                            android:text="@string/lokasi_kerja"/>
  104.                         <TextView
  105.                            android:id="@+id/tv_lokasi_kerja"
  106.                            style="@style/TextSpec.Value"
  107.                            android:text="@string/lokasi_kerja"/>
  108.                     </TableRow>
  109.                     <TableRow
  110.                        android:layout_width="match_parent"
  111.                        android:layout_height="wrap_content"
  112.                        android:layout_marginBottom="4dp">
  113.                         <TextView
  114.                            style="@style/TextSpec.Field"
  115.                            android:text="@string/jabatan"/>
  116.                         <TextView
  117.                            android:id="@+id/tv_jabatan"
  118.                            style="@style/TextSpec.Value"
  119.                            android:text="@string/jabatan"/>
  120.                     </TableRow>
  121.                     <TableRow
  122.                        android:layout_width="match_parent"
  123.                        android:layout_height="wrap_content"
  124.                        android:layout_marginBottom="4dp">
  125.                         <TextView
  126.                            style="@style/TextSpec.Field"
  127.                            android:text="@string/mdg"/>
  128.                         <TextView
  129.                            android:id="@+id/tv_mdg"
  130.                            style="@style/TextSpec.Value"
  131.                            android:text="@string/mdg"/>
  132.                     </TableRow>
  133.                     <TableRow
  134.                        android:layout_width="match_parent"
  135.                        android:layout_height="wrap_content"
  136.                        android:layout_marginBottom="4dp">
  137.                         <TextView
  138.                            style="@style/TextSpec.Field"
  139.                            android:text="@string/mdj"/>
  140.                         <TextView
  141.                            android:id="@+id/tv_mdj"
  142.                            style="@style/TextSpec.Value"
  143.                            android:text="@string/mdj"/>
  144.                     </TableRow>
  145.                     <TableRow
  146.                        android:layout_width="match_parent"
  147.                        android:layout_height="wrap_content"
  148.                        android:layout_marginBottom="4dp">
  149.                         <TextView
  150.                            style="@style/TextSpec.Field"
  151.                            android:text="@string/tanggal_pbp"/>
  152.                         <TextView
  153.                            android:id="@+id/tv_tanggal_pbp"
  154.                            style="@style/TextSpec.Value"
  155.                            android:text="@string/tanggal_pbp"/>
  156.                     </TableRow>
  157.                     <TableRow
  158.                        android:layout_width="match_parent"
  159.                        android:layout_height="wrap_content"
  160.                        android:layout_marginBottom="4dp">
  161.                         <TextView
  162.                            style="@style/TextSpec.Field"
  163.                            android:text="@string/tanggal_pensiun"/>
  164.                         <TextView
  165.                            android:id="@+id/tv_pensiun"
  166.                            style="@style/TextSpec.Value"
  167.                            android:text="@string/tanggal_pensiun"/>
  168.                     </TableRow>
  169.                     <TableRow
  170.                        android:layout_width="match_parent"
  171.                        android:layout_height="wrap_content"
  172.                        android:layout_marginBottom="4dp">
  173.                         <TextView
  174.                            style="@style/TextSpec.Field"
  175.                            android:text="@string/rp"/>
  176.                         <TextView
  177.                            android:id="@+id/tv_rp"
  178.                            style="@style/TextSpec.Value"
  179.                            android:text="@string/rp"/>
  180.                     </TableRow>
  181.                 </TableLayout>
  182.             </androidx.constraintlayout.widget.ConstraintLayout>
  183.         </androidx.cardview.widget.CardView>
  184.  
  185.     <androidx.cardview.widget.CardView
  186.        android:id="@+id/cardView_detail_usulan"
  187.        android:layout_width="match_parent"
  188.        android:layout_height="wrap_content"
  189.        android:layout_marginStart="16dp"
  190.        android:layout_marginEnd="16dp"
  191.        android:layout_marginTop="16dp"
  192.        app:cardBackgroundColor="@color/colorPrimary"
  193.        app:cardCornerRadius="10dp"
  194.        app:cardElevation="8dp"
  195.        app:layout_constraintStart_toStartOf="parent"
  196.        app:layout_constraintTop_toBottomOf="@+id/cardView_detail">
  197.  
  198.         <androidx.constraintlayout.widget.ConstraintLayout
  199.            android:id="@+id/item_container_usulan"
  200.            android:layout_width="match_parent"
  201.            android:layout_height="wrap_content"
  202.            android:padding="12dp">
  203.  
  204.             <TableLayout
  205.                android:id="@+id/table_layout_usulan"
  206.                android:layout_width="match_parent"
  207.                android:layout_height="wrap_content"
  208.                android:layout_marginTop="8dp"
  209.                app:layout_constraintEnd_toEndOf="parent"
  210.                app:layout_constraintStart_toStartOf="parent"
  211.                app:layout_constraintTop_toTopOf="parent">
  212.                 <TableRow
  213.                    android:layout_width="match_parent"
  214.                    android:layout_height="wrap_content"
  215.                    android:layout_marginBottom="4dp">
  216.                     <TextView
  217.                        style="@style/TextSpec.Field"
  218.                        android:text="@string/usulan_RMP"/>
  219.                     <TextView
  220.                        android:id="@+id/tv_jenis_usulan"
  221.                        style="@style/TextSpec.Value"
  222.                        android:text="@string/jenis_usulan"/>
  223.                 </TableRow>
  224.                 <TableRow
  225.                    android:layout_width="match_parent"
  226.                    android:layout_height="wrap_content"
  227.                    android:layout_marginBottom="4dp">
  228.                     <TextView
  229.                        style="@style/TextSpec.Field"
  230.                        android:text="@string/unitkerja"/>
  231.                     <TextView
  232.                        android:id="@+id/tv_unit_kerja_usulan"
  233.                        style="@style/TextSpec.Value"
  234.                        android:text="@string/unitkerja"/>
  235.                 </TableRow>
  236.                 <TableRow
  237.                    android:layout_width="match_parent"
  238.                    android:layout_height="wrap_content"
  239.                    android:layout_marginBottom="4dp">
  240.                     <TextView
  241.                        style="@style/TextSpec.Field"
  242.                        android:text="@string/grade"/>
  243.                     <TextView
  244.                        android:id="@+id/tv_grade_usulan"
  245.                        style="@style/TextSpec.Value"
  246.                        android:text="@string/grade"/>
  247.                 </TableRow>
  248.                 <TableRow
  249.                    android:layout_width="match_parent"
  250.                    android:layout_height="wrap_content"
  251.                    android:layout_marginBottom="4dp">
  252.                     <TextView
  253.                        style="@style/TextSpec.Field"
  254.                        android:text="@string/lokasi_kerja"/>
  255.                     <TextView
  256.                        android:id="@+id/tv_lokasi_kerja_usulan"
  257.                        style="@style/TextSpec.Value"
  258.                        android:text="@string/lokasi_kerja"/>
  259.                 </TableRow>
  260.                 <TableRow
  261.                    android:layout_width="match_parent"
  262.                    android:layout_height="wrap_content"
  263.                    android:layout_marginBottom="4dp">
  264.                     <TextView
  265.                        style="@style/TextSpec.Field"
  266.                        android:text="@string/jabatan"/>
  267.                     <TextView
  268.                        android:id="@+id/tv_jabatan_usulan"
  269.                        style="@style/TextSpec.Value"
  270.                        android:text="@string/jabatan_usulan"/>
  271.                 </TableRow>
  272.                 <TableRow
  273.                    android:id="@+id/row_keterangan"
  274.                    android:layout_width="match_parent"
  275.                    android:layout_height="wrap_content"
  276.                    android:layout_marginBottom="4dp">
  277.                     <TextView
  278.                        style="@style/TextSpec.Field"
  279.                        android:text="@string/keterangan"/>
  280.                     <TextView
  281.                        android:id="@+id/tv_keterangan_usulan"
  282.                        style="@style/TextSpec.Value"
  283.                        android:text="@string/keterangan"/>
  284.                 </TableRow>
  285.             </TableLayout>
  286.         </androidx.constraintlayout.widget.ConstraintLayout>
  287.     </androidx.cardview.widget.CardView>
  288.  
  289.         <com.google.android.material.textfield.TextInputLayout
  290.            android:id="@+id/textInputKeterangan"
  291.            style="@style/parent"
  292.            android:layout_marginTop="16dp"
  293.            android:layout_marginStart="16dp"
  294.            android:layout_marginEnd="16dp"
  295.            app:layout_constraintStart_toStartOf="parent"
  296.            app:layout_constraintTop_toBottomOf="@id/cardView_detail_usulan"
  297.            app:layout_constraintEnd_toEndOf="parent">
  298.             <EditText
  299.                android:id="@+id/editTextKeterangan"
  300.                style="@style/modifiedEditText"
  301.                android:inputType="textMultiLine|textCapSentences"
  302.                android:maxLines="3"
  303.                android:textSize="14sp"
  304.                android:fontFamily="@font/montserrat_medium"
  305.                android:hint="@string/keterangan"
  306.                android:autofillHints="@string/keterangan" />
  307.         </com.google.android.material.textfield.TextInputLayout>
  308.  
  309.         <Button
  310.            android:id="@+id/button_reject"
  311.            style="@style/Button.RedButton"
  312.            android:text="@string/reject"
  313.            android:fontFamily="@font/montserrat_medium"
  314.            android:layout_marginTop="16dp"
  315.            android:layout_marginStart="16dp"
  316.            app:layout_constraintStart_toStartOf="parent"
  317.            app:layout_constraintTop_toBottomOf="@id/textInputKeterangan"
  318.            android:drawableStart="@drawable/ic_baseline_close_24"
  319.            app:layout_constraintBottom_toBottomOf="parent" />
  320.  
  321.         <Button
  322.            android:id="@+id/button_approve"
  323.            style="@style/Button.GreenButton"
  324.            android:text="@string/approve"
  325.            android:fontFamily="@font/montserrat_medium"
  326.            android:layout_marginTop="16dp"
  327.            android:layout_marginEnd="16dp"
  328.            app:layout_constraintTop_toBottomOf="@id/textInputKeterangan"
  329.            android:drawableStart="@drawable/ic_baseline_check_24"
  330.            app:layout_constraintEnd_toEndOf="parent"
  331.            app:layout_constraintBottom_toBottomOf="parent" />
  332.  
  333.         <ProgressBar
  334.            android:id="@+id/progress_bar"
  335.            android:layout_width="wrap_content"
  336.            android:layout_height="wrap_content"
  337.            android:visibility="visible"
  338.            app:layout_constraintBottom_toBottomOf="parent"
  339.            app:layout_constraintEnd_toEndOf="parent"
  340.            app:layout_constraintHorizontal_bias="0.5"
  341.            app:layout_constraintStart_toStartOf="parent"
  342.            app:layout_constraintTop_toTopOf="parent"
  343.            app:layout_constraintVertical_bias="1" />
  344.     </androidx.constraintlayout.widget.ConstraintLayout>
  345.  
  346. </androidx.core.widget.NestedScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement