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

Commit 4270aa76 authored by Katherine Kuan's avatar Katherine Kuan
Browse files

Add empty state to group detail page

Bug: 5160342
Change-Id: I1061fae0366285f601cfb7964f74da2eb4e5855b
parent 5d7068ab
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -81,4 +81,7 @@
        android:fadingEdge="none"
        android:divider="@null" />

    <include
        layout="@layout/group_detail_fragment_empty_view"/>

</LinearLayout>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -61,4 +61,7 @@
        android:fadingEdge="none"
        android:divider="@null" />

    <include
        layout="@layout/group_detail_fragment_empty_view"/>

</LinearLayout>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -43,6 +43,9 @@
            android:scrollbarStyle="outsideOverlay"
            android:divider="@null"/>

        <include
            layout="@layout/group_detail_fragment_empty_view"/>

        <!--
          Shadow overlay over the list of group members (since we have a fake stacked
          action bar)
+41 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/empty"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:paddingTop="24dip"
    android:visibility="gone">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:text="@string/emptyGroup"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textColor="?android:attr/textColorSecondary"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:text="@string/addPeopleToGroup"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:attr/textColorSecondary"/>

</LinearLayout>
+6 −0
Original line number Diff line number Diff line
@@ -269,6 +269,12 @@
    <!-- The text displayed when the contacts list is empty while displaying only contacts that have phone numbers -->
    <string name="noContactsWithPhoneNumbers">No contacts with phone numbers.</string>

    <!-- The text displayed when there are no members in the group while displaying the group detail page [CHAR LIMIT=40] -->
    <string name="emptyGroup">No people in this group.</string>

    <!-- The text displayed to instruct users to add members to a group (when viewing a group detail page for a group with no members) [CHAR LIMIT=50] -->
    <string name="addPeopleToGroup">To add some, edit the group.</string>

    <!-- Displayed in a spinner dialog after the user creates a contact and it's being saved to the database -->
    <string name="savingContact">Saving contact\u2026</string>

Loading