-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3273 from deltachat/adb/improve-delete-dialog
improve profile deletion dialog
- Loading branch information
Showing
6 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<!-- read issue: https://github.com/deltachat/deltachat-android/issues/480 before introducing an attr here. --> | ||
<solid android:color="@color/delete_account_item_bg" /> | ||
<corners android:radius="8dp" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingLeft="20dp" | ||
android:paddingRight="20dp" | ||
android:paddingTop="10dp" | ||
android:paddingBottom="10dp" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingBottom="10dp" | ||
android:text="@string/delete_account_ask" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="10dp" | ||
android:paddingTop="10dp" | ||
android:paddingBottom="10dp" | ||
android:background="@drawable/delete_account_item_background"> | ||
|
||
<org.thoughtcrime.securesms.components.AvatarView | ||
android:id="@+id/avatar" | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" /> | ||
|
||
<LinearLayout | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:paddingRight="16dp" | ||
android:paddingEnd="16dp" | ||
android:orientation="vertical"> | ||
|
||
<org.thoughtcrime.securesms.components.emoji.EmojiTextView | ||
android:id="@+id/name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="marquee" | ||
android:singleLine="true" | ||
android:fontFamily="sans-serif" | ||
android:textSize="16sp" | ||
tools:text="Frieeeeeeedrich Nieeeeeeeeeetzsche" /> | ||
|
||
<TextView | ||
android:id="@+id/address" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textDirection="ltr" | ||
android:singleLine="true" | ||
android:ellipsize="marquee" | ||
|
||
android:textSize="14sp" | ||
android:fontFamily="sans-serif-light" | ||
tools:text="[email protected]" /> | ||
|
||
<TextView | ||
android:id="@+id/size_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="end" | ||
android:singleLine="true" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:textSize="12sp" | ||
android:fontFamily="sans-serif-light" | ||
tools:text="150 MB" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<TextView | ||
android:id="@+id/description" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="10dp" | ||
android:text="@string/delete_account_explain_with_name"/> | ||
|
||
</LinearLayout> | ||
|
||
</ScrollView> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters