adding some placeholders if no contacts have been found

This commit is contained in:
tibbi 2020-04-13 15:55:36 +02:00
parent 078e8c4f14
commit e8205c7c44
4 changed files with 44 additions and 1 deletions

View file

@ -38,6 +38,35 @@
android:background="@color/divider_grey"
android:importantForAccessibility="no" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/no_contacts_placeholder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/bigger_margin"
android:alpha="0.8"
android:gravity="center"
android:paddingLeft="@dimen/activity_margin"
android:layout_below="@+id/message_divider_two"
android:paddingRight="@dimen/activity_margin"
android:text="@string/no_access_to_contacts"
android:textSize="@dimen/bigger_text_size"
android:textStyle="italic"
android:visibility="gone" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/no_contacts_placeholder_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/no_contacts_placeholder"
android:layout_centerHorizontal="true"
android:background="?attr/selectableItemBackground"
android:gravity="center"
android:padding="@dimen/activity_margin"
android:text="@string/request_the_required_permissions"
android:textSize="@dimen/bigger_text_size"
android:visibility="gone" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/suggestions_label"
android:layout_width="wrap_content"

View file

@ -4,6 +4,9 @@
<string name="type_a_message">Escreva uma mensagem…</string>
<string name="message_not_sent">Mensagem não enviada.</string>
<string name="add_person">Adicionar pessoa</string>
<string name="attachment">Attachment</string>
<string name="no_conversations_found">No stored conversations have been found</string>
<string name="start_conversation">Start a conversation</string>
<!-- New message -->
<string name="new_conversation">New conversation</string>