-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 #4348 from owncloud/feature/improvements_remove_di…
…alog [FEATURE REQUEST] Improvements in remove confirmation dialog
- Loading branch information
Showing
50 changed files
with
181 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Enhancement: Improvements in remove dialog alert | ||
|
||
A custom dialog alert has been added when the file that is going to be deleted has thumbnail. | ||
Also, when removing files in multiple selection, the number of elements that are going to be removed is displayed in the dialog. | ||
|
||
https://github.com/owncloud/android/issues/4342 | ||
https://github.com/owncloud/android/pull/4348 |
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
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,90 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center"> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="@dimen/activity_horizontal_margin" | ||
app:cardBackgroundColor="@color/background_color" | ||
app:cardCornerRadius="@dimen/standard_half_margin" | ||
app:cardElevation="0dp"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginHorizontal="@dimen/activity_horizontal_margin" | ||
android:layout_marginTop="@dimen/activity_horizontal_margin" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/activity_horizontal_margin" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:id="@+id/dialog_remove_thumbnail" | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginStart="@dimen/standard_margin" /> | ||
|
||
<TextView | ||
android:id="@+id/dialog_remove_information" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:layout_gravity="center_vertical" | ||
android:textColor="@color/black" | ||
android:textSize="@dimen/two_line_primary_text_size" | ||
android:layout_marginStart="@dimen/standard_margin" | ||
android:layout_marginEnd="@dimen/standard_margin" | ||
tools:text="Do you really want to remove this item?" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/buttons" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:layout_marginBottom="5dp"> | ||
|
||
<androidx.appcompat.widget.AppCompatButton | ||
android:id="@+id/dialog_remove_no" | ||
style="@style/Button.Borderless" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_weight="2" | ||
android:text="@string/common_no" /> | ||
|
||
<androidx.appcompat.widget.AppCompatButton | ||
android:id="@+id/dialog_remove_local_only" | ||
style="@style/Button.Borderless" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:text="@string/confirmation_remove_local" /> | ||
|
||
<androidx.appcompat.widget.AppCompatButton | ||
android:id="@+id/dialog_remove_yes" | ||
style="@style/Button.Borderless" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_weight="2" | ||
android:text="@string/common_yes" /> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
</androidx.cardview.widget.CardView> | ||
|
||
</LinearLayout> | ||
|
||
|
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
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
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
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
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
Oops, something went wrong.