Further formatting of UI to fit longer images with white background
This commit is contained in:
parent
48e747cce3
commit
13a2ccac2c
@ -19,7 +19,7 @@
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="400dp"
|
||||
android:layout_height="320dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
|
||||
|
||||
@ -15,14 +15,15 @@
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:padding="16dp"
|
||||
android:background="#ffffff"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivImage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="center"
|
||||
android:scaleType="fitCenter"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
@ -45,12 +46,12 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:gravity="left"
|
||||
android:lines="2"
|
||||
android:textColor="@color/text"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDescription"
|
||||
@ -61,7 +62,6 @@
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:gravity="left"
|
||||
android:maxLines="2"
|
||||
android:lines="2"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:textColor="@color/text_black_5"
|
||||
@ -69,7 +69,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCallToAction"
|
||||
fontPath="@string/font_regular"
|
||||
fontPath="@string/font_medium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
@ -77,8 +77,8 @@
|
||||
android:layout_marginBottom="0dp"
|
||||
android:gravity="left"
|
||||
android:padding="16dp"
|
||||
android:textColor="#1c5c9a"
|
||||
android:textSize="14sp"/>
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -3,5 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="32dp"
|
||||
android:background="#ffffff"
|
||||
android:id="@+id/ivImage"
|
||||
android:scaleType="centerCrop"/>
|
||||
android:scaleType="center"/>
|
||||
@ -14,13 +14,15 @@
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="280dp">
|
||||
android:layout_height="200dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivImage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:scaleType="center"
|
||||
android:padding="16dp"
|
||||
android:background="#ffffff"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
@ -48,7 +50,7 @@
|
||||
android:gravity="left"
|
||||
android:lines="2"
|
||||
android:textColor="@color/text"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDescription"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user