diff --git a/briar-android/src/main/java/org/briarproject/briar/android/sharing/InvitationAdapter.java b/briar-android/src/main/java/org/briarproject/briar/android/sharing/InvitationAdapter.java index 5db6a1f0c..ab08e79b7 100644 --- a/briar-android/src/main/java/org/briarproject/briar/android/sharing/InvitationAdapter.java +++ b/briar-android/src/main/java/org/briarproject/briar/android/sharing/InvitationAdapter.java @@ -1,6 +1,7 @@ package org.briarproject.briar.android.sharing; import android.content.Context; +import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -26,7 +27,7 @@ public abstract class InvitationAdapter - + style="@style/Divider.Horizontal" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"/> - + diff --git a/briar-android/src/main/res/layout/list_item_blog_post.xml b/briar-android/src/main/res/layout/list_item_blog_post.xml index 11c570e69..9ed0d6557 100644 --- a/briar-android/src/main/res/layout/list_item_blog_post.xml +++ b/briar-android/src/main/res/layout/list_item_blog_post.xml @@ -9,66 +9,64 @@ android:layout_height="wrap_content" android:foreground="?attr/selectableItemBackground"> - + android:layout_height="wrap_content"> - + android:layout_marginBottom="@dimen/listitem_horizontal_margin" + android:layout_marginEnd="@dimen/listitem_vertical_margin" + android:layout_marginStart="@dimen/listitem_vertical_margin" + android:layout_marginTop="@dimen/listitem_vertical_margin" + app:layout_constraintEnd_toStartOf="@+id/commentView" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:persona="reblogger"/> - + - + - - - - - + + + android:layout_marginTop="@dimen/listitem_vertical_margin" + android:orientation="vertical" + app:layout_constraintTop_toBottomOf="@+id/bodyView"> - + diff --git a/briar-android/src/main/res/layout/list_item_contact_small.xml b/briar-android/src/main/res/layout/list_item_contact_small.xml index d028aa834..07d7e1ab7 100644 --- a/briar-android/src/main/res/layout/list_item_contact_small.xml +++ b/briar-android/src/main/res/layout/list_item_contact_small.xml @@ -23,7 +23,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="@dimen/margin_medium" + android:layout_marginEnd="@dimen/margin_medium" android:layout_marginStart="@dimen/margin_medium" android:layout_weight="1" android:maxLines="2" @@ -36,7 +36,9 @@ android:layout_width="@dimen/listitem_horizontal_margin" android:layout_height="@dimen/listitem_horizontal_margin" android:layout_gravity="center_vertical" + android:layout_marginEnd="@dimen/listitem_horizontal_margin" android:layout_marginRight="@dimen/listitem_horizontal_margin" + tools:ignore="ContentDescription" tools:src="@drawable/contact_connected"/> diff --git a/briar-android/src/main/res/layout/list_item_forum.xml b/briar-android/src/main/res/layout/list_item_forum.xml index d446db5bb..bd732f16e 100644 --- a/briar-android/src/main/res/layout/list_item_forum.xml +++ b/briar-android/src/main/res/layout/list_item_forum.xml @@ -1,70 +1,72 @@ - + android:background="?attr/selectableItemBackground"> + android:layout_marginLeft="@dimen/listitem_horizontal_margin" + android:layout_marginStart="@dimen/listitem_horizontal_margin" + app:layout_constraintBottom_toTopOf="@+id/divider" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"/> + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/avatarView" + app:layout_constraintTop_toTopOf="parent" + tools:text="This is a name of a forum which can be long"/> + app:layout_constraintEnd_toStartOf="@+id/dateView" + app:layout_constraintStart_toStartOf="@+id/forumNameView" + app:layout_constraintTop_toBottomOf="@+id/forumNameView" + tools:text="@string/no_forum_posts"/> - - + android:layout_width="0dp" + android:layout_marginLeft="@dimen/margin_medium" + android:layout_marginStart="@dimen/margin_medium" + android:layout_marginTop="@dimen/listitem_horizontal_margin" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/avatarView" + app:layout_constraintTop_toBottomOf="@id/postCountView"/> + diff --git a/briar-android/src/main/res/layout/list_item_group.xml b/briar-android/src/main/res/layout/list_item_group.xml index c9143ae93..e1d436126 100644 --- a/briar-android/src/main/res/layout/list_item_group.xml +++ b/briar-android/src/main/res/layout/list_item_group.xml @@ -1,61 +1,59 @@ - + android:background="?attr/selectableItemBackground"> + android:layout_margin="@dimen/listitem_horizontal_margin" + app:layout_constraintBottom_toTopOf="@+id/divider" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"/> + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/avatarView" + app:layout_constraintTop_toTopOf="parent" + tools:text="This is a name of a Private Group which can be quite long actually"/> @@ -63,27 +61,27 @@ android:id="@+id/dateView" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" - android:layout_below="@+id/creatorView" - android:layout_marginEnd="@dimen/listitem_horizontal_margin" - android:layout_marginRight="@dimen/listitem_horizontal_margin" - android:paddingTop="@dimen/margin_small" + android:layout_margin="@dimen/listitem_horizontal_margin" android:textColor="?android:attr/textColorSecondary" android:textSize="@dimen/text_size_small" + app:layout_constraintBaseline_toBaselineOf="@+id/messageCountView" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent" tools:text="3 weeks ago, 12:00" tools:visibility="visible"/>