mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-02 22:53:09 +01:00
Update Invite friends screen UI.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke android:color="@color/core_grey_25" android:width="1dp" />
|
||||
<solid android:color="@color/signal_background_secondary"/>
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
@@ -33,16 +33,6 @@
|
||||
android:paddingStart="28dp"
|
||||
android:paddingEnd="28dp">
|
||||
|
||||
<TextView android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Title2.Bold"
|
||||
android:text="@string/InviteActivity_friends_dont_let_friends_text_unencrypted"
|
||||
android:textColor="@color/signal_text_primary"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:paddingStart="10dp"/>
|
||||
|
||||
<EditText android:id="@+id/invite_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -59,25 +49,46 @@
|
||||
android:gravity="top"
|
||||
android:inputType="textShortMessage|textMultiLine"/>
|
||||
|
||||
<Button android:id="@+id/sms_button"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:text="@string/InviteActivity_share_with_contacts"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textColor="@color/signal_text_toolbar_title"
|
||||
android:background="@drawable/cta_button_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<LinearLayout android:id="@+id/sms_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="?attr/selectableItemBackground">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/share_button"
|
||||
style="@style/Button.Borderless"
|
||||
app:drawableStartCompat="@drawable/ic_share_24"
|
||||
android:drawablePadding="4dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/InviteActivity_choose_how_to_share"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_height="wrap_content" />
|
||||
<ImageView android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:srcCompat="@drawable/ic_invite_inverse_28" />
|
||||
|
||||
<TextView style="@style/Signal.Text.Body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="26dp"
|
||||
android:text="@string/InviteActivity_share_with_contacts" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/share_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="?attr/selectableItemBackground">
|
||||
|
||||
<ImageView android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:srcCompat="@drawable/ic_share_24_tinted" />
|
||||
|
||||
<TextView android:id="@+id/share_text"
|
||||
style="@style/Signal.Text.Body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="26dp"
|
||||
android:text="@string/InviteActivity_share_via" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -876,7 +876,7 @@
|
||||
<!-- InviteActivity -->
|
||||
<string name="InviteActivity_share">Share</string>
|
||||
<string name="InviteActivity_share_with_contacts">Share with contacts</string>
|
||||
<string name="InviteActivity_choose_how_to_share">Choose how to share</string>
|
||||
<string name="InviteActivity_share_via">Share via…</string>
|
||||
|
||||
<string name="InviteActivity_cancel">Cancel</string>
|
||||
<string name="InviteActivity_sending">Sending…</string>
|
||||
@@ -892,7 +892,6 @@
|
||||
</plurals>
|
||||
<string name="InviteActivity_lets_switch_to_signal">Let\'s switch to Signal: %1$s</string>
|
||||
<string name="InviteActivity_no_app_to_share_to">It looks like you don\'t have any apps to share to.</string>
|
||||
<string name="InviteActivity_friends_dont_let_friends_text_unencrypted">Friends don\'t let friends chat unencrypted.</string>
|
||||
|
||||
<!-- LearnMoreTextView -->
|
||||
<string name="LearnMoreTextView_learn_more">Learn more</string>
|
||||
|
||||
Reference in New Issue
Block a user