mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 06:08:52 +01:00
Use toolsNs for fake data in conversation row
This commit is contained in:
@@ -255,6 +255,7 @@ public class AvatarView extends ImageView implements View.OnClickListener, LiveV
|
|||||||
|
|
||||||
private void setImageWhenReady() {
|
private void setImageWhenReady() {
|
||||||
if (isInEditMode()) {
|
if (isInEditMode()) {
|
||||||
|
super.setImageDrawable(mOriginalDrawable);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/conversation_list_row"
|
android:id="@+id/conversation_list_row"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="72dp"
|
android:layout_height="72dp"
|
||||||
android:animateLayoutChanges="true"
|
android:animateLayoutChanges="true"
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
|
android:src="@drawable/tools_avatar"
|
||||||
app:initialSize="32dp" />
|
app:initialSize="32dp" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -43,7 +44,8 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_toLeftOf="@+id/conversation_list_date"
|
android:layout_toLeftOf="@+id/conversation_list_date"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
app:type="primary" />
|
app:type="primary"
|
||||||
|
tools:text="Moez Bhatti" />
|
||||||
|
|
||||||
<com.moez.QKSMS.ui.view.QKTextView
|
<com.moez.QKSMS.ui.view.QKTextView
|
||||||
android:id="@+id/conversation_list_date"
|
android:id="@+id/conversation_list_date"
|
||||||
@@ -52,7 +54,8 @@
|
|||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="16dp"
|
||||||
app:type="tertiary" />
|
app:type="tertiary"
|
||||||
|
tools:text="4:41PM" />
|
||||||
|
|
||||||
<com.moez.QKSMS.ui.view.QKTextView
|
<com.moez.QKSMS.ui.view.QKTextView
|
||||||
android:id="@+id/conversation_list_snippet"
|
android:id="@+id/conversation_list_snippet"
|
||||||
@@ -63,7 +66,8 @@
|
|||||||
android:layout_toLeftOf="@+id/conversation_list_badges"
|
android:layout_toLeftOf="@+id/conversation_list_badges"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
app:type="secondary" />
|
app:type="secondary"
|
||||||
|
tools:text="Hey! This is a test message. I'm just making this longer now" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/conversation_list_badges"
|
android:id="@+id/conversation_list_badges"
|
||||||
@@ -91,6 +95,7 @@
|
|||||||
android:layout_width="16dp"
|
android:layout_width="16dp"
|
||||||
android:layout_height="16dp"
|
android:layout_height="16dp"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user