Advertisement
ramanaputra

Detail Candidate

Nov 22nd, 2019
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 19.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".ui.page.detail.DetailActivity">
  8.  
  9.     <include
  10.        android:id="@+id/toolbar"
  11.        layout="@layout/custom_toolbar"
  12.        app:layout_constraintEnd_toEndOf="parent"
  13.        app:layout_constraintStart_toStartOf="parent"
  14.        app:layout_constraintTop_toTopOf="parent" />
  15.  
  16.     <androidx.core.widget.NestedScrollView
  17.        android:layout_width="0dp"
  18.        android:layout_height="0dp"
  19.        app:layout_constraintBottom_toBottomOf="parent"
  20.        app:layout_constraintEnd_toEndOf="parent"
  21.        app:layout_constraintStart_toStartOf="parent"
  22.        app:layout_constraintTop_toBottomOf="@id/toolbar">
  23.  
  24.         <androidx.constraintlayout.widget.ConstraintLayout
  25.            android:layout_width="match_parent"
  26.            android:layout_height="match_parent">
  27.  
  28.             <androidx.constraintlayout.widget.ConstraintLayout
  29.                android:id="@+id/layout_photo"
  30.                android:layout_width="match_parent"
  31.                android:layout_height="120dp"
  32.                android:background="#FF353434"
  33.                app:layout_constraintTop_toTopOf="parent">
  34.  
  35.                 <ImageView
  36.                    android:id="@+id/image_user"
  37.                    android:layout_width="105dp"
  38.                    android:layout_height="105dp"
  39.                    app:layout_constraintBottom_toBottomOf="parent"
  40.                    app:layout_constraintEnd_toEndOf="parent"
  41.                    app:layout_constraintStart_toStartOf="parent"
  42.                    app:layout_constraintTop_toTopOf="parent" />
  43.  
  44.             </androidx.constraintlayout.widget.ConstraintLayout>
  45.  
  46.             <androidx.constraintlayout.widget.ConstraintLayout
  47.                android:layout_width="match_parent"
  48.                android:layout_height="wrap_content"
  49.                android:layout_marginStart="16dp"
  50.                android:layout_marginLeft="16dp"
  51.                android:layout_marginEnd="16dp"
  52.                android:layout_marginRight="16dp"
  53.                android:layout_marginBottom="30dp"
  54.                app:layout_constraintBottom_toBottomOf="parent"
  55.                app:layout_constraintEnd_toEndOf="parent"
  56.                app:layout_constraintStart_toStartOf="parent"
  57.                app:layout_constraintTop_toBottomOf="@id/layout_photo">
  58.  
  59.                 <com.google.android.material.textfield.TextInputLayout
  60.                    android:id="@+id/layout_name"
  61.                    android:layout_width="match_parent"
  62.                    android:layout_height="70dp"
  63.                    android:layout_marginTop="26dp"
  64.                    app:layout_constraintEnd_toEndOf="parent"
  65.                    app:layout_constraintStart_toStartOf="parent"
  66.                    app:layout_constraintTop_toTopOf="parent">
  67.  
  68.                     <com.google.android.material.textfield.TextInputEditText
  69.                        android:id="@+id/etName"
  70.                        style="@style/DetailTextInfo"
  71.                        android:layout_width="match_parent"
  72.                        android:layout_height="match_parent"
  73.                        android:hint="Nama Lengkap"
  74.                        android:text="Kamaludin Akbar" />
  75.  
  76.                 </com.google.android.material.textfield.TextInputLayout>
  77.  
  78.                 <com.google.android.material.textfield.TextInputLayout
  79.                    android:id="@+id/layout_nik"
  80.                    android:layout_width="match_parent"
  81.                    android:layout_height="70dp"
  82.                    android:layout_marginTop="10dp"
  83.                    app:layout_constraintEnd_toEndOf="parent"
  84.                    app:layout_constraintStart_toStartOf="parent"
  85.                    app:layout_constraintTop_toBottomOf="@id/layout_name">
  86.  
  87.                     <com.google.android.material.textfield.TextInputEditText
  88.                        android:id="@+id/etNik"
  89.                        style="@style/DetailTextInfo"
  90.                        android:layout_width="match_parent"
  91.                        android:layout_height="match_parent"
  92.                        android:hint="NIK (Nomor Induk Kependudukan)"
  93.                        android:text="323432423423432" />
  94.  
  95.                 </com.google.android.material.textfield.TextInputLayout>
  96.  
  97.                 <com.google.android.material.textfield.TextInputLayout
  98.                    android:id="@+id/layout_gender"
  99.                    android:layout_width="match_parent"
  100.                    android:layout_height="70dp"
  101.                    android:layout_marginTop="10dp"
  102.                    app:layout_constraintEnd_toEndOf="parent"
  103.                    app:layout_constraintStart_toStartOf="parent"
  104.                    app:layout_constraintTop_toBottomOf="@id/layout_nik">
  105.  
  106.                     <com.google.android.material.textfield.TextInputEditText
  107.                        android:id="@+id/etGender"
  108.                        style="@style/DetailTextInfo"
  109.                        android:layout_width="match_parent"
  110.                        android:layout_height="match_parent"
  111.                        android:hint="Jenis Kelamin"
  112.                        android:text="LAKI-LAKI" />
  113.  
  114.                 </com.google.android.material.textfield.TextInputLayout>
  115.  
  116.                 <com.google.android.material.textfield.TextInputLayout
  117.                    android:id="@+id/layout_gol"
  118.                    android:layout_width="match_parent"
  119.                    android:layout_height="70dp"
  120.                    android:layout_marginTop="10dp"
  121.                    app:layout_constraintEnd_toEndOf="parent"
  122.                    app:layout_constraintStart_toStartOf="parent"
  123.                    app:layout_constraintTop_toBottomOf="@id/layout_gender">
  124.  
  125.                     <com.google.android.material.textfield.TextInputEditText
  126.                        android:id="@+id/etBloodType"
  127.                        style="@style/DetailTextInfo"
  128.                        android:layout_width="match_parent"
  129.                        android:layout_height="match_parent"
  130.                        android:hint="Golongan Darah"
  131.                        android:text="B" />
  132.  
  133.                 </com.google.android.material.textfield.TextInputLayout>
  134.  
  135.                 <com.google.android.material.textfield.TextInputLayout
  136.                    android:id="@+id/layout_status"
  137.                    android:layout_width="match_parent"
  138.                    android:layout_height="70dp"
  139.                    android:layout_marginTop="10dp"
  140.                    app:layout_constraintEnd_toEndOf="parent"
  141.                    app:layout_constraintStart_toStartOf="parent"
  142.                    app:layout_constraintTop_toBottomOf="@id/layout_gol">
  143.  
  144.                     <com.google.android.material.textfield.TextInputEditText
  145.                        android:id="@+id/etStatus"
  146.                        style="@style/DetailTextInfo"
  147.                        android:layout_width="match_parent"
  148.                        android:layout_height="match_parent"
  149.                        android:hint="Status Kawin"
  150.                        android:text="Belum Kawin" />
  151.  
  152.                 </com.google.android.material.textfield.TextInputLayout>
  153.  
  154.                 <com.google.android.material.textfield.TextInputLayout
  155.                    android:id="@+id/layout_agama"
  156.                    android:layout_width="match_parent"
  157.                    android:layout_height="70dp"
  158.                    android:layout_marginTop="10dp"
  159.                    app:layout_constraintEnd_toEndOf="parent"
  160.                    app:layout_constraintStart_toStartOf="parent"
  161.                    app:layout_constraintTop_toBottomOf="@id/layout_status">
  162.  
  163.                     <com.google.android.material.textfield.TextInputEditText
  164.                        android:id="@+id/etAgama"
  165.                        style="@style/DetailTextInfo"
  166.                        android:layout_width="match_parent"
  167.                        android:layout_height="match_parent"
  168.                        android:hint="Agama"
  169.                        android:text="ISLAM" />
  170.  
  171.                 </com.google.android.material.textfield.TextInputLayout>
  172.  
  173.                 <com.google.android.material.textfield.TextInputLayout
  174.                    android:id="@+id/layout_birth"
  175.                    android:layout_width="match_parent"
  176.                    android:layout_height="70dp"
  177.                    android:layout_marginTop="10dp"
  178.                    app:layout_constraintEnd_toEndOf="parent"
  179.                    app:layout_constraintStart_toStartOf="parent"
  180.                    app:layout_constraintTop_toBottomOf="@id/layout_agama">
  181.  
  182.                     <com.google.android.material.textfield.TextInputEditText
  183.                        android:id="@+id/etBirth"
  184.                        style="@style/DetailTextInfo"
  185.                        android:layout_width="match_parent"
  186.                        android:layout_height="match_parent"
  187.                        android:hint="Tempat/Tanggal Lahir"
  188.                        android:text="KUNINGAN, 03-11-1996" />
  189.  
  190.                 </com.google.android.material.textfield.TextInputLayout>
  191.  
  192.                 <com.google.android.material.textfield.TextInputLayout
  193.                    android:id="@+id/layout_age"
  194.                    android:layout_width="match_parent"
  195.                    android:layout_height="70dp"
  196.                    android:layout_marginTop="10dp"
  197.                    app:layout_constraintEnd_toEndOf="parent"
  198.                    app:layout_constraintStart_toStartOf="parent"
  199.                    app:layout_constraintTop_toBottomOf="@id/layout_birth">
  200.  
  201.                     <com.google.android.material.textfield.TextInputEditText
  202.                        android:id="@+id/etAge"
  203.                        style="@style/DetailTextInfo"
  204.                        android:layout_width="match_parent"
  205.                        android:layout_height="match_parent"
  206.                        android:hint="Usia"
  207.                        android:text="23 TAHUN" />
  208.  
  209.                 </com.google.android.material.textfield.TextInputLayout>
  210.  
  211.                 <com.google.android.material.textfield.TextInputLayout
  212.                    android:id="@+id/layout_job"
  213.                    android:layout_width="match_parent"
  214.                    android:layout_height="70dp"
  215.                    android:layout_marginTop="10dp"
  216.                    app:layout_constraintEnd_toEndOf="parent"
  217.                    app:layout_constraintStart_toStartOf="parent"
  218.                    app:layout_constraintTop_toBottomOf="@id/layout_age">
  219.  
  220.                     <com.google.android.material.textfield.TextInputEditText
  221.                        android:id="@+id/etJob"
  222.                        style="@style/DetailTextInfo"
  223.                        android:layout_width="match_parent"
  224.                        android:layout_height="match_parent"
  225.                        android:hint="Pekerjaan"
  226.                        android:text="SWASTA" />
  227.  
  228.                 </com.google.android.material.textfield.TextInputLayout>
  229.  
  230.                 <com.google.android.material.textfield.TextInputLayout
  231.                    android:id="@+id/layout_province"
  232.                    android:layout_width="match_parent"
  233.                    android:layout_height="70dp"
  234.                    android:layout_marginTop="10dp"
  235.                    android:layout_marginBottom="30dp"
  236.                    app:layout_constraintEnd_toEndOf="parent"
  237.                    app:layout_constraintStart_toStartOf="parent"
  238.                    app:layout_constraintTop_toBottomOf="@id/layout_job">
  239.  
  240.                     <com.google.android.material.textfield.TextInputEditText
  241.                        android:id="@+id/etProvince"
  242.                        style="@style/DetailTextInfo"
  243.                        android:layout_width="match_parent"
  244.                        android:layout_height="match_parent"
  245.                        android:hint="Provinsi"
  246.                        android:text="Jakarta" />
  247.  
  248.                 </com.google.android.material.textfield.TextInputLayout>
  249.  
  250.                 <com.google.android.material.textfield.TextInputLayout
  251.                    android:id="@+id/layout_regent"
  252.                    android:layout_width="match_parent"
  253.                    android:layout_height="70dp"
  254.                    android:layout_marginTop="10dp"
  255.                    android:layout_marginBottom="30dp"
  256.                    app:layout_constraintEnd_toEndOf="parent"
  257.                    app:layout_constraintStart_toStartOf="parent"
  258.                    app:layout_constraintTop_toBottomOf="@id/layout_province">
  259.  
  260.                     <com.google.android.material.textfield.TextInputEditText
  261.                        android:id="@+id/etRegent"
  262.                        style="@style/DetailTextInfo"
  263.                        android:layout_width="match_parent"
  264.                        android:layout_height="match_parent"
  265.                        android:hint="Kabupaten Kota"
  266.                        tools:text="Kebayoran Lama" />
  267.  
  268.                 </com.google.android.material.textfield.TextInputLayout>
  269.  
  270.                 <com.google.android.material.textfield.TextInputLayout
  271.                    android:id="@+id/layout_district"
  272.                    android:layout_width="match_parent"
  273.                    android:layout_height="70dp"
  274.                    android:layout_marginTop="10dp"
  275.                    android:layout_marginBottom="30dp"
  276.                    app:layout_constraintEnd_toEndOf="parent"
  277.                    app:layout_constraintStart_toStartOf="parent"
  278.                    app:layout_constraintTop_toBottomOf="@id/layout_regent">
  279.  
  280.                     <com.google.android.material.textfield.TextInputEditText
  281.                        android:id="@+id/etDistrict"
  282.                        style="@style/DetailTextInfo"
  283.                        android:layout_width="match_parent"
  284.                        android:layout_height="match_parent"
  285.                        android:hint="Kecamatan"
  286.                        tools:text="Jakarta" />
  287.  
  288.                 </com.google.android.material.textfield.TextInputLayout>
  289.  
  290.                 <com.google.android.material.textfield.TextInputLayout
  291.                    android:id="@+id/layout_village"
  292.                    android:layout_width="match_parent"
  293.                    android:layout_height="70dp"
  294.                    android:layout_marginTop="10dp"
  295.                    android:layout_marginBottom="30dp"
  296.                    app:layout_constraintEnd_toEndOf="parent"
  297.                    app:layout_constraintStart_toStartOf="parent"
  298.                    app:layout_constraintTop_toBottomOf="@id/layout_district">
  299.  
  300.                     <com.google.android.material.textfield.TextInputEditText
  301.                        android:id="@+id/etVillage"
  302.                        style="@style/DetailTextInfo"
  303.                        android:layout_width="match_parent"
  304.                        android:layout_height="match_parent"
  305.                        android:hint="Kelurahan"
  306.                        tools:text="Larangan Indah" />
  307.  
  308.                 </com.google.android.material.textfield.TextInputLayout>
  309.  
  310.                 <com.google.android.material.textfield.TextInputLayout
  311.                    android:id="@+id/layout_postalCode"
  312.                    android:layout_width="match_parent"
  313.                    android:layout_height="70dp"
  314.                    android:layout_marginTop="10dp"
  315.                    android:layout_marginBottom="30dp"
  316.                    app:layout_constraintEnd_toEndOf="parent"
  317.                    app:layout_constraintStart_toStartOf="parent"
  318.                    app:layout_constraintTop_toBottomOf="@id/layout_village">
  319.  
  320.                     <com.google.android.material.textfield.TextInputEditText
  321.                        android:id="@+id/etPostalCode"
  322.                        style="@style/DetailTextInfo"
  323.                        android:layout_width="match_parent"
  324.                        android:layout_height="match_parent"
  325.                        android:hint="Kode Pos"
  326.                        tools:text="10000" />
  327.  
  328.                 </com.google.android.material.textfield.TextInputLayout>
  329.  
  330.                 <com.google.android.material.textfield.TextInputLayout
  331.                    android:id="@+id/layout_rtrw"
  332.                    android:layout_width="match_parent"
  333.                    android:layout_height="70dp"
  334.                    android:layout_marginTop="10dp"
  335.                    android:layout_marginBottom="30dp"
  336.                    app:layout_constraintEnd_toEndOf="parent"
  337.                    app:layout_constraintStart_toStartOf="parent"
  338.                    app:layout_constraintTop_toBottomOf="@id/layout_postalCode">
  339.  
  340.                     <com.google.android.material.textfield.TextInputEditText
  341.                        android:id="@+id/etRtRw"
  342.                        style="@style/DetailTextInfo"
  343.                        android:layout_width="match_parent"
  344.                        android:layout_height="match_parent"
  345.                        android:hint="RT/RW"
  346.                        tools:text="Larangan" />
  347.  
  348.                 </com.google.android.material.textfield.TextInputLayout>
  349.  
  350.                 <com.google.android.material.textfield.TextInputLayout
  351.                    android:id="@+id/layout_address"
  352.                    android:layout_width="match_parent"
  353.                    android:layout_height="70dp"
  354.                    android:layout_marginTop="10dp"
  355.                    android:layout_marginBottom="30dp"
  356.                    app:layout_constraintEnd_toEndOf="parent"
  357.                    app:layout_constraintStart_toStartOf="parent"
  358.                    app:layout_constraintTop_toBottomOf="@id/layout_rtrw">
  359.  
  360.                     <com.google.android.material.textfield.TextInputEditText
  361.                        android:id="@+id/etAddress"
  362.                        style="@style/DetailTextInfo"
  363.                        android:layout_width="match_parent"
  364.                        android:layout_height="match_parent"
  365.                        android:hint="Alamat Lengkap"
  366.                        android:text="DUKUHWALUH RT. 3/RW. 8 " />
  367.  
  368.                 </com.google.android.material.textfield.TextInputLayout>
  369.  
  370.                 <TextView
  371.                    android:id="@+id/tvHeaderPhone"
  372.                    android:layout_width="match_parent"
  373.                    android:layout_height="wrap_content"
  374.                    android:layout_marginStart="2dp"
  375.                    android:text="No. Telepon"
  376.                    android:textSize="14sp"
  377.                    app:layout_constraintTop_toBottomOf="@id/layout_address" />
  378.  
  379.                 <androidx.recyclerview.widget.RecyclerView
  380.                    android:id="@+id/rvPhones"
  381.                    android:layout_width="match_parent"
  382.                    android:layout_height="wrap_content"
  383.                    android:layout_marginStart="4dp"
  384.                    android:layout_marginTop="5dp"
  385.                    app:layout_constraintTop_toBottomOf="@id/tvHeaderPhone" />
  386.  
  387.             </androidx.constraintlayout.widget.ConstraintLayout>
  388.  
  389.         </androidx.constraintlayout.widget.ConstraintLayout>
  390.  
  391.     </androidx.core.widget.NestedScrollView>
  392.  
  393. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement