2015-10-19 11:23:12 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-07 15:43:36 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
2019-11-22 13:47:25 -04:00
|
|
|
style="?actionBarStyle"
|
|
|
|
android:theme="?actionBarStyle"
|
2019-10-07 15:43:36 -03:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2019-11-22 13:47:25 -04:00
|
|
|
app:titleTextAppearance="@style/TextSecure.TitleTextStyle"
|
|
|
|
app:subtitleTextAppearance="@style/TextSecure.SubtitleTextStyle"
|
2019-10-07 15:43:36 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
<ScrollView android:layout_width="match_parent"
|
2019-10-07 15:43:36 -03:00
|
|
|
android:layout_height="0dp"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:fillViewport="true"
|
2019-10-07 15:43:36 -03:00
|
|
|
android:clickable="false"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
2021-08-25 16:05:20 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
tools:visibility="gone">
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
<LinearLayout android:layout_gravity="center"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:orientation="vertical"
|
2019-11-22 13:47:25 -04:00
|
|
|
android:paddingTop="14dp"
|
|
|
|
android:paddingStart="28dp"
|
|
|
|
android:paddingEnd="28dp">
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
<EditText android:id="@+id/invite_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minLines="2"
|
2016-05-24 16:39:19 -04:00
|
|
|
tools:text="Let's switch to Signal: https://sgnl.link/asdfdfsa"
|
2019-11-22 13:47:25 -04:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:background="@drawable/invite_edit_text_background"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:textColor="@color/signal_text_primary"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="20dp"
|
2019-11-22 13:47:25 -04:00
|
|
|
android:minHeight="@dimen/invite_edit_text_min_height"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:gravity="top"
|
2019-11-22 13:47:25 -04:00
|
|
|
android:inputType="textShortMessage|textMultiLine"/>
|
2015-10-19 11:23:12 -07:00
|
|
|
|
2021-08-23 18:11:13 -03:00
|
|
|
<LinearLayout android:id="@+id/sms_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_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" />
|
2015-10-19 11:23:12 -07:00
|
|
|
|
2021-08-23 18:11:13 -03:00
|
|
|
</LinearLayout>
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/sms_send_frame"
|
|
|
|
android:layout_width="match_parent"
|
2019-10-07 15:43:36 -03:00
|
|
|
android:layout_height="0dp"
|
2019-11-22 13:47:25 -04:00
|
|
|
android:background="?android:windowBackground"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:orientation="vertical"
|
2019-10-07 15:43:36 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-08-25 16:05:20 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
|
tools:visibility="visible">
|
2021-07-12 15:44:59 -03:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ContactFilterView
|
|
|
|
android:id="@+id/contact_filter_edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/dsl_settings_gutter"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:layout_marginRight="@dimen/dsl_settings_gutter"
|
|
|
|
android:minHeight="44dp" />
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
<fragment android:id="@+id/contact_selection_list_fragment"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:name="org.thoughtcrime.securesms.ContactSelectionListFragment"
|
|
|
|
tools:layout="@layout/contact_selection_list_fragment"/>
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-25 16:05:20 -03:00
|
|
|
android:gravity="center_horizontal"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:padding="10dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button android:id="@+id/cancel_sms_button"
|
2021-08-25 16:05:20 -03:00
|
|
|
style="@style/Signal.Widget.Button.Large.Primary.Inverse"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:text="@string/InviteActivity_cancel" />
|
|
|
|
|
|
|
|
<Button android:id="@+id/send_sms_button"
|
2021-08-25 16:05:20 -03:00
|
|
|
style="@style/Signal.Widget.Button.Large.Primary.Inverse"
|
2015-10-19 11:23:12 -07:00
|
|
|
android:enabled="false"
|
2021-08-25 16:05:20 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
tools:text="Send SMS (0)"/>
|
2015-10-19 11:23:12 -07:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2019-10-07 15:43:36 -03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|