mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 19:37:36 +00:00
Add group profile sharing logic
// FREEBIE
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false">
|
||||
|
||||
<ViewStub android:id="@+id/group_share_profile_view_stub"
|
||||
android:layout="@layout/conversation_activity_group_share_profile_stub"
|
||||
android:inflatedId="@+id/group_share_profile_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<ViewStub android:id="@+id/unverified_banner_stub"
|
||||
android:layout="@layout/conversation_activity_unverified_banner_stub"
|
||||
android:inflatedId="@+id/unverified_banner"
|
||||
|
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.thoughtcrime.securesms.profiles.GroupShareProfileView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/group_share_profile_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
27
res/layout/profile_group_share_view.xml
Normal file
27
res/layout/profile_group_share_view.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/reminder_background"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_face_white_24dp"/>
|
||||
|
||||
<TextView android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp"
|
||||
android:layout_margin="16dp"
|
||||
android:text="@string/profile_group_share_view__make_your_profile_name_and_photo_visible_to_this_group"/>
|
||||
|
||||
</LinearLayout>
|
@@ -327,6 +327,11 @@
|
||||
<string name="GroupCreateActivity_loading_group_details">Loading group details...</string>
|
||||
<string name="GroupCreateActivity_youre_already_in_the_group">You\'re already in the group.</string>
|
||||
|
||||
<!-- GroupShareProfileView -->
|
||||
<string name="GroupShareProfileView_share_your_profile_name_and_photo_with_this_group">Share your profile name and photo with this group?</string>
|
||||
<string name="GroupShareProfileView_do_you_want_to_make_your_profile_name_and_photo_visible_to_all_current_and_future_members_of_this_group">Do you want to make your profile name and photo visible to all current and future members of this group?</string>
|
||||
<string name="GroupShareProfileView_make_visible">Make visible</string>
|
||||
|
||||
<!-- GroupMembersDialog -->
|
||||
<string name="GroupMembersDialog_me">Me</string>
|
||||
|
||||
@@ -959,6 +964,9 @@
|
||||
</plurals>
|
||||
<string name="GroupUtil_group_name_is_now">Group name is now \'%1$s\'.</string>
|
||||
|
||||
<!-- profile_group_share_view -->
|
||||
<string name="profile_group_share_view__make_your_profile_name_and_photo_visible_to_this_group">Make your profile name and photo visible to this group?</string>
|
||||
|
||||
<!-- prompt_passphrase_activity -->
|
||||
<string name="prompt_passphrase_activity__unlock">Unlock</string>
|
||||
|
||||
|
Reference in New Issue
Block a user