|
|
@@ -1,6 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout
|
|
|
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="match_parent"
|
|
|
@@ -59,45 +60,58 @@
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
android:layout_marginLeft="24dp"
|
|
|
android:layout_marginRight="24dp"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:weightSum="4">
|
|
|
+ >
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_view_coupon_message"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="2"
|
|
|
android:lineSpacingExtra="3sp"
|
|
|
android:text="@string/coupon_message"
|
|
|
android:textColor="#999999"
|
|
|
android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
/>
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_view_coupon_detail"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="2"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
android:gravity="end"
|
|
|
android:lineSpacingExtra="5sp"
|
|
|
android:text="@string/coupon_detail"
|
|
|
android:textColor="#000000"
|
|
|
android:textSize="14sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/imageView"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
/>
|
|
|
|
|
|
<ImageView
|
|
|
- android:layout_width="12dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginLeft="2dp"
|
|
|
+ android:id="@+id/imageView"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_marginEnd="0dp"
|
|
|
+ android:scaleType="center"
|
|
|
android:src="@drawable/icon_coin"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
/>
|
|
|
- </LinearLayout>
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
<Space
|
|
|
android:layout_width="match_parent"
|