Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88904e41 authored by Yao Lu's avatar Yao Lu Committed by Android (Google) Code Review
Browse files

Merge "Add empty view for empty groups"

parents 389f8550 d8effeb5
Loading
Loading
Loading
Loading
+7.79 KiB
Loading image diff...
+5.22 KiB
Loading image diff...
+10.4 KiB
Loading image diff...
+16.6 KiB
Loading image diff...
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/empty_group"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/empty_state_background"
    android:visibility="gone">

    <ImageView
        android:id="@+id/empty_group_image"
        android:layout_width="@dimen/empty_group_view_image_width"
        android:layout_height="wrap_content"
        android:scaleType="centerInside"
        android:adjustViewBounds="true"
        android:src="@drawable/label_empty"/>

    <TextView
        android:id="@+id/empty_group_view_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:paddingTop="@dimen/empty_group_view_text_padding_top"
        android:paddingBottom="@dimen/empty_group_view_text_padding_bottom"
        android:text="@string/emptyGroup"
        style="@style/EmptyStateTextStyle"/>

    <Button
        android:id="@+id/add_member_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:text="@string/menu_addContactsToGroup"
        style="@style/AddContactsButtonStyle"/>
</LinearLayout>
 No newline at end of file
Loading