Added a couple of minor UI optimisations
parent
3e68bdc2f8
commit
afdf730eaa
@ -1,54 +1,46 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout android:id="@+id/mainLinkPreviewContainer"
|
<LinearLayout android:id="@+id/mainLinkPreviewContainer"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:background="@color/transparent_black_6"
|
||||||
android:layout_width="300dp"
|
android:layout_width="300dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
android:orientation="horizontal"
|
||||||
android:orientation="vertical"
|
android:gravity="center">
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
||||||
|
<RelativeLayout
|
||||||
<LinearLayout
|
android:layout_width="96dp"
|
||||||
android:background="@color/transparent_black_6"
|
android:layout_height="96dp">
|
||||||
android:id="@+id/mainLinkPreviewParent"
|
|
||||||
android:layout_width="match_parent"
|
<ImageView
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="24dp"
|
||||||
android:orientation="horizontal"
|
android:layout_height="24dp"
|
||||||
android:gravity="center">
|
android:layout_centerInParent="true"
|
||||||
|
android:src="@drawable/ic_link"
|
||||||
<RelativeLayout
|
app:tint="?android:textColorPrimary" />
|
||||||
android:layout_width="96dp"
|
|
||||||
android:layout_height="96dp">
|
<org.thoughtcrime.securesms.conversation.v2.utilities.KThumbnailView
|
||||||
|
android:background="@color/transparent_black_6"
|
||||||
<ImageView
|
android:id="@+id/thumbnailImageView"
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
android:src="@drawable/ic_link"
|
|
||||||
app:tint="?android:textColorPrimary" />
|
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.conversation.v2.utilities.KThumbnailView
|
|
||||||
android:background="@color/transparent_black_6"
|
|
||||||
android:id="@+id/thumbnailImageView"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:scaleType="centerCrop" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/titleTextView"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingHorizontal="12dp"
|
android:scaleType="centerCrop" />
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:textSize="@dimen/small_font_size"
|
|
||||||
android:textStyle="bold"
|
|
||||||
tools:text="Some Text here"
|
|
||||||
android:minWidth="@dimen/media_bubble_min_width"
|
|
||||||
android:maxLines="3"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:textColor="?android:textColorPrimary"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleTextView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:paddingHorizontal="12dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:textSize="@dimen/small_font_size"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="Some Text here"
|
||||||
|
android:minWidth="@dimen/media_bubble_min_width"
|
||||||
|
android:maxLines="3"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:textColor="?android:textColorPrimary"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue