mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-02 23:01:56 +00:00
more precise sms controls
// FREEBIE
This commit is contained in:
@@ -18,9 +18,10 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:gravity="right"
|
||||
android:gravity="left|center_vertical"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_alignParentLeft="true">
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sms_failed_indicator"
|
||||
@@ -29,6 +30,15 @@
|
||||
android:src="@drawable/ic_list_alert_sms_failed"
|
||||
android:visibility="gone"
|
||||
android:contentDescription="Send Failed Indicator"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pending_approval_indicator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_dialog_info_holo_light"
|
||||
android:visibility="gone"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:contentDescription="Pending Approval"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/conversation_item_parent"
|
||||
@@ -190,5 +200,22 @@
|
||||
android:scaleType="centerCrop"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView android:id="@+id/indicator_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/conversation_item_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:paddingRight="5dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="-2dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="?conversation_sent_text_secondary_color"
|
||||
android:background="?conversation_item_sent_indicator_text_background"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
</org.thoughtcrime.securesms.ConversationItem>
|
||||
|
||||
44
res/layout/outgoing_sms_preference.xml
Normal file
44
res/layout/outgoing_sms_preference.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="15dp"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingRight="10dp">
|
||||
|
||||
<CheckBox android:id="@+id/data_users"
|
||||
style="@style/TextSecureDialogPrimaryText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
||||
android:singleLine="true"
|
||||
android:text="@string/preferences__sms_outgoing_push_users" />
|
||||
|
||||
<TextView
|
||||
style="@style/TextSecureDialogSecondaryText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-5dp"
|
||||
android:layout_marginLeft="32dp"
|
||||
android:textSize="12sp"
|
||||
android:text="@string/preferences__sms_outgoing_push_users_description" />
|
||||
|
||||
<CheckBox android:id="@+id/ask_before_fallback_data"
|
||||
style="@style/TextSecureDialogPrimaryText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
||||
android:text="@string/preferences__sms_fallback_ask_fallback"
|
||||
android:layout_marginLeft="25dp" />
|
||||
|
||||
<CheckBox android:id="@+id/non_data_users"
|
||||
style="@style/TextSecureDialogPrimaryText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
||||
android:text="@string/preferences__sms_fallback_non_push_users" />
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user