forked from upstream-mirrors/quik
Flatten layout for conversation details
This commit is contained in:
@@ -17,97 +17,102 @@
|
|||||||
~ You should have received a copy of the GNU General Public License
|
~ You should have received a copy of the GNU General Public License
|
||||||
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<android.support.constraint.ConstraintLayout 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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<include layout="@layout/toolbar" />
|
<include
|
||||||
|
android:id="@+id/toolbar"
|
||||||
|
layout="@layout/toolbar"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<FrameLayout
|
<android.support.v4.widget.NestedScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1">
|
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||||
|
|
||||||
<android.support.v4.widget.NestedScrollView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:animateLayoutChanges="true"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<android.support.v7.widget.RecyclerView
|
||||||
|
android:id="@+id/recipients"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:animateLayoutChanges="true"
|
android:paddingBottom="8dp"
|
||||||
android:orientation="vertical">
|
android:paddingTop="8dp"
|
||||||
|
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
|
||||||
|
tools:layout_height="72dp"
|
||||||
|
tools:listitem="@layout/conversation_recipient_list_item" />
|
||||||
|
|
||||||
<android.support.v7.widget.RecyclerView
|
<presentation.common.widget.Separator
|
||||||
android:id="@+id/recipients"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginBottom="8dp" />
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
|
|
||||||
tools:layout_height="72dp"
|
|
||||||
tools:listitem="@layout/conversation_recipient_list_item" />
|
|
||||||
|
|
||||||
<presentation.common.widget.Separator
|
<presentation.common.widget.PreferenceView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/notifications"
|
||||||
android:layout_height="1dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginBottom="8dp" />
|
android:layout_height="wrap_content"
|
||||||
|
app:icon="@drawable/ic_notifications_black_24dp"
|
||||||
|
app:title="@string/info_notifications" />
|
||||||
|
|
||||||
<presentation.common.widget.PreferenceView
|
<presentation.common.widget.PreferenceView
|
||||||
android:id="@+id/notifications"
|
android:id="@+id/archive"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:icon="@drawable/ic_notifications_black_24dp"
|
app:icon="@drawable/ic_folder_black_24dp"
|
||||||
app:title="@string/info_notifications" />
|
app:title="@string/info_archive" />
|
||||||
|
|
||||||
<presentation.common.widget.PreferenceView
|
<presentation.common.widget.PreferenceView
|
||||||
android:id="@+id/archive"
|
android:id="@+id/block"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:icon="@drawable/ic_folder_black_24dp"
|
app:icon="@drawable/ic_block_black_24dp"
|
||||||
app:title="@string/info_archive" />
|
app:title="@string/info_block" />
|
||||||
|
|
||||||
<presentation.common.widget.PreferenceView
|
<presentation.common.widget.PreferenceView
|
||||||
android:id="@+id/block"
|
android:id="@+id/delete"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:icon="@drawable/ic_block_black_24dp"
|
app:icon="@drawable/ic_delete_black_24dp"
|
||||||
app:title="@string/info_block" />
|
app:title="@string/info_delete" />
|
||||||
|
|
||||||
<presentation.common.widget.PreferenceView
|
<presentation.common.widget.Separator
|
||||||
android:id="@+id/delete"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
||||||
app:icon="@drawable/ic_delete_black_24dp"
|
android:layout_marginTop="8dp" />
|
||||||
app:title="@string/info_delete" />
|
|
||||||
|
|
||||||
<presentation.common.widget.Separator
|
<android.support.v7.widget.RecyclerView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/media"
|
||||||
android:layout_height="1dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp" />
|
android:nestedScrollingEnabled="false"
|
||||||
|
app:layoutManager="android.support.v7.widget.GridLayoutManager"
|
||||||
|
app:spanCount="3"
|
||||||
|
tools:listitem="@layout/conversation_media_list_item" />
|
||||||
|
|
||||||
<android.support.v7.widget.RecyclerView
|
</LinearLayout>
|
||||||
android:id="@+id/media"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:nestedScrollingEnabled="false"
|
|
||||||
app:layoutManager="android.support.v7.widget.GridLayoutManager"
|
|
||||||
app:spanCount="3"
|
|
||||||
tools:listitem="@layout/conversation_media_list_item" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</android.support.v4.widget.NestedScrollView>
|
||||||
|
|
||||||
</android.support.v4.widget.NestedScrollView>
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="8dp"
|
||||||
|
android:background="@drawable/ab_shadow"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/toolbar" />
|
||||||
|
|
||||||
<View
|
</android.support.constraint.ConstraintLayout>
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="8dp"
|
|
||||||
android:background="@drawable/ab_shadow" />
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
Reference in New Issue
Block a user