Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.23 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:card_view="http://schemas.android.com/apk/res-auto"
  4.    android:orientation="vertical"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent">
  7.  
  8.     <android.support.v7.widget.CardView
  9.        android:layout_width="match_parent"
  10.        android:layout_height="wrap_content"
  11.        card_view:cardCornerRadius="3dp"
  12.        card_view:contentPadding="20dp"
  13.        card_view:cardElevation="7dp"
  14.        card_view:cardMaxElevation="10dp"
  15.        android:layout_margin="10dp">
  16.  
  17.         <android.support.constraint.ConstraintLayout
  18.            xmlns:app="http://schemas.android.com/apk/res-auto"
  19.            android:layout_width="match_parent"
  20.            android:layout_height="wrap_content">
  21.  
  22.             <android.support.constraint.Guideline
  23.                android:layout_width="0dp"
  24.                android:layout_height="0dp"
  25.                android:orientation="horizontal"
  26.                app:layout_constraintGuide_percent="0.86"
  27.                android:id="@+id/top_from_lang_guideline" />
  28.  
  29.             <TextView
  30.                android:id="@+id/name_label"
  31.                android:layout_width="0dp"
  32.                android:layout_height="wrap_content"
  33.                android:scaleType="centerCrop"
  34.                app:layout_constraintTop_toTopOf="parent"
  35.                app:layout_constraintStart_toStartOf="parent"
  36.                app:layout_constraintEnd_toEndOf="parent"
  37.                app:layout_constraintVertical_chainStyle="packed"
  38.                android:text="@string/offer_full_name"
  39.                android:textSize="@dimen/labels_text_size"/>
  40.  
  41.             <RadioGroup
  42.                android:layout_width="0dp"
  43.                android:layout_height="wrap_content"
  44.                app:layout_constraintTop_toBottomOf="@id/name_label"
  45.                app:layout_constraintLeft_toLeftOf="parent"
  46.                app:layout_constraintRight_toRightOf="parent"
  47.                android:id="@+id/radio_group"
  48.                android:layout_marginTop="10dp">
  49.  
  50.                 <RadioButton
  51.                    android:layout_width="match_parent"
  52.                    android:layout_height="wrap_content"
  53.                    android:checked="true"
  54.                    android:text="Someone Else"/>
  55.  
  56.                 <RadioButton
  57.                    android:layout_width="match_parent"
  58.                    android:layout_height="wrap_content"
  59.                    android:text="Use another Name for this order"/>
  60.             </RadioGroup>
  61.            
  62.            
  63.  
  64.             <EditText
  65.                android:layout_width="0dp"
  66.                android:layout_height="wrap_content"
  67.                app:layout_constraintTop_toBottomOf="@id/radio_group"
  68.                app:layout_constraintRight_toRightOf="parent"
  69.                app:layout_constraintLeft_toLeftOf="parent"
  70.                android:id="@+id/name_input"/>
  71.  
  72.             <!--<TextView-->
  73.                 <!--android:id="@+id/supporting_text"-->
  74.                 <!--android:layout_width="0dp"-->
  75.                 <!--android:layout_height="wrap_content"-->
  76.                 <!--android:layout_marginTop="16dp"-->
  77.                 <!--android:layout_marginStart="16dp"-->
  78.                 <!--android:layout_marginEnd="16dp"-->
  79.                 <!--android:layout_marginBottom="16dp"-->
  80.                 <!--android:textAppearance="@style/TextAppearance.AppCompat.Body1"-->
  81.                 <!--android:textColor="#DE000000"-->
  82.                 <!--android:lineSpacingExtra="8dp"-->
  83.                 <!--app:layout_constraintTop_toBottomOf="@+id/media_image"-->
  84.                 <!--app:layout_constraintStart_toStartOf="parent"-->
  85.                 <!--app:layout_constraintEnd_toEndOf="parent"-->
  86.                 <!--app:layout_constraintBottom_toBottomOf="parent"/>-->
  87.  
  88.         </android.support.constraint.ConstraintLayout>
  89.  
  90.     </android.support.v7.widget.CardView>
  91.  
  92.     <android.support.v7.widget.CardView
  93.        android:layout_width="match_parent"
  94.        android:layout_height="wrap_content"
  95.        card_view:cardCornerRadius="3dp"
  96.        card_view:contentPadding="20dp"
  97.        card_view:cardElevation="7dp"
  98.        card_view:cardMaxElevation="10dp"
  99.        android:layout_margin="10dp">
  100.  
  101.         <android.support.constraint.ConstraintLayout
  102.            xmlns:app="http://schemas.android.com/apk/res-auto"
  103.            android:layout_width="match_parent"
  104.            android:layout_height="wrap_content">
  105.  
  106.             <TextView
  107.                android:id="@+id/from_lang_label"
  108.                android:layout_width="0dp"
  109.                android:layout_height="wrap_content"
  110.                android:scaleType="centerCrop"
  111.                app:layout_constraintTop_toTopOf="parent"
  112.                app:layout_constraintStart_toStartOf="parent"
  113.                app:layout_constraintEnd_toEndOf="parent"
  114.                app:layout_constraintVertical_chainStyle="packed"
  115.                android:text="@string/offer_language_from"
  116.                android:textSize="@dimen/labels_text_size"/>
  117.  
  118.            
  119.  
  120.         </android.support.constraint.ConstraintLayout>
  121.  
  122.     </android.support.v7.widget.CardView>
  123. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement