Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.20 KB | None | 0 0
  1. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:id="@+id/card_view"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="172dp"
  7.     android:layout_marginLeft="6dp"
  8.     android:layout_marginRight="6dp"
  9.     app:cardBackgroundColor="@color/color18"
  10.     app:cardCornerRadius="2dp"
  11.     app:cardElevation="2dp">
  12.  
  13.     <android.support.constraint.ConstraintLayout
  14.         android:id="@+id/itmContactList"
  15.         android:layout_width="match_parent"
  16.         android:layout_height="match_parent"
  17.         >
  18.         <ImageView
  19.             android:id="@+id/closeIcon"
  20.             android:layout_width="wrap_content"
  21.             android:layout_height="wrap_content"
  22.             android:padding="8dp"
  23.             android:src="@drawable/close_grey"
  24.             app:layout_constraintEnd_toEndOf="parent"
  25.             app:layout_constraintTop_toTopOf="parent" />
  26.  
  27.         <ImageView
  28.             android:id="@+id/countryFlag"
  29.             android:layout_width="20dp"
  30.             android:layout_height="20dp"
  31.             android:layout_gravity="center"
  32.             android:layout_marginStart="8dp"
  33.             android:layout_marginEnd="8dp"
  34.             app:layout_constraintBottom_toBottomOf="@+id/headlineText"
  35.             app:layout_constraintEnd_toStartOf="@+id/headlineText"
  36.             app:layout_constraintHorizontal_bias="0"
  37.             app:layout_constraintStart_toStartOf="parent"
  38.             app:layout_constraintHorizontal_chainStyle="packed"
  39.             app:layout_constraintTop_toTopOf="@+id/headlineText"
  40.             tools:src="@drawable/flag_cu" />
  41.  
  42.         <com.rebtel.android.client.widget.TextViewPlus
  43.             android:id="@+id/headlineText"
  44.             style="@style/b4_text_style"
  45.             android:layout_width="0dp"
  46.             android:layout_height="wrap_content"
  47.             android:layout_marginTop="16dp"
  48.             android:layout_marginEnd="8dp"
  49.             android:layout_marginBottom="8dp"
  50.             android:gravity="center"
  51.             android:textColor="@color/color2"
  52.             app:layout_constraintBottom_toTopOf="@+id/subHeadlineText"
  53.             app:layout_constraintEnd_toStartOf="@+id/closeIcon"
  54.             app:layout_constraintHorizontal_bias="0"
  55.             app:layout_constraintHorizontal_chainStyle="packed"
  56.             app:layout_constraintStart_toEndOf="@+id/countryFlag"
  57.             app:layout_constraintTop_toTopOf="parent"
  58.             tools:text="Cuba" />
  59.  
  60.         <com.rebtel.android.client.widget.TextViewPlus
  61.             android:id="@+id/subHeadlineText"
  62.             style="@style/h4_text_style"
  63.             android:layout_width="0dp"
  64.             android:layout_height="wrap_content"
  65.             android:layout_above="@id/buyButton"
  66.             android:layout_centerHorizontal="true"
  67.             android:layout_marginStart="8dp"
  68.             android:layout_marginEnd="8dp"
  69.             android:layout_marginBottom="8dp"
  70.             android:gravity="center"
  71.             android:textColor="@color/color4"
  72.             app:layout_constraintBottom_toTopOf="@+id/additionalBodyText"
  73.             app:layout_constraintEnd_toEndOf="parent"
  74.             app:layout_constraintStart_toStartOf="parent"
  75.             tools:text="Call 35 minutes to Cuba for only $10" />
  76.  
  77.         <com.rebtel.android.client.widget.TextViewPlus
  78.             android:id="@+id/additionalBodyText"
  79.             style="@style/h15_text_style"
  80.             android:layout_width="wrap_content"
  81.             android:layout_height="wrap_content"
  82.             android:layout_above="@id/buyButton"
  83.             android:layout_below="@+id/text"
  84.             android:layout_centerHorizontal="true"
  85.             android:layout_marginStart="8dp"
  86.             android:layout_marginEnd="8dp"
  87.             android:layout_marginBottom="8dp"
  88.             android:gravity="center|top"
  89.             android:textColor="@color/color23"
  90.             android:visibility="invisible"
  91.             app:layout_constraintBottom_toTopOf="@+id/buyButton"
  92.             app:layout_constraintEnd_toEndOf="parent"
  93.             app:layout_constraintStart_toStartOf="parent"
  94.             tools:text="Additional Info" />
  95.  
  96.         <com.rebtel.android.client.widget.ButtonPlus
  97.             android:id="@+id/buyButton"
  98.             style="@style/positive_button_style"
  99.             android:layout_width="wrap_content"
  100.             android:layout_height="32dp"
  101.             android:layout_centerHorizontal="true"
  102.             android:layout_marginStart="8dp"
  103.             android:layout_marginEnd="8dp"
  104.             android:layout_marginBottom="8dp"
  105.             android:minWidth="140dp"
  106.             android:text="@string/dialog_buy_button"
  107.             app:layout_constraintBottom_toBottomOf="parent"
  108.             app:layout_constraintEnd_toEndOf="parent"
  109.             app:layout_constraintStart_toStartOf="parent" />
  110.  
  111.     </android.support.constraint.ConstraintLayout>
  112.  
  113. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement