-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New beautiful dialog added : Flat 💯 - Optimize dialog functions calls by reducing redundant layouts
- Loading branch information
Gabriel Trésor TEK's
committed
May 4, 2020
1 parent
3f71562
commit 593dbf4
Showing
40 changed files
with
525 additions
and
302 deletions.
There are no files selected for viewing
236 changes: 191 additions & 45 deletions
236
aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/AestheticDialog.java
Large diffs are not rendered by default.
Oops, something went wrong.
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="#3086EB" /> | ||
<corners android:radius="30dp" /> | ||
</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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/md_blue_800" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/btn_green_normal.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:43. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/dialog_success" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/btn_green_pressed.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:44. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/md_green_600" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
11 changes: 11 additions & 0 deletions
11
aestheticdialogs/src/main/res/drawable/btn_green_selector.xml
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:44. | ||
--> | ||
|
||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/btn_green_pressed" android:state_focused="true" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_green_pressed" android:state_focused="false" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_green_normal" /> | ||
</selector> |
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:32. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/dialog_error" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/btn_red_pressed.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:34. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/md_red_600" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
11 changes: 11 additions & 0 deletions
11
aestheticdialogs/src/main/res/drawable/btn_red_selector.xml
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:33. | ||
--> | ||
|
||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/btn_red_pressed" android:state_focused="true" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_red_pressed" android:state_focused="false" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_red_normal" /> | ||
</selector> |
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/btn_yellow_normal.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2020. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:55. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/dialog_warning" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/btn_yellow_pressed.xml
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2019. Variance technologies. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:55. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid | ||
android:angle="270" | ||
android:color="@color/md_yellow_800" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
11 changes: 11 additions & 0 deletions
11
aestheticdialogs/src/main/res/drawable/btn_yellow_selector.xml
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2019. Variance technologies. All rights reserved. | ||
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:57. | ||
--> | ||
|
||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/btn_yellow_pressed" android:state_focused="true" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_yellow_pressed" android:state_focused="false" android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_yellow_normal" /> | ||
</selector> |
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions
4
aestheticdialogs/src/main/res/drawable/ic_check_circle_green_24dp.xml
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
2 changes: 1 addition & 1 deletion
2
aestheticdialogs/src/main/res/drawable/ic_warning_orange_24dp.xml
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
13 changes: 13 additions & 0 deletions
13
aestheticdialogs/src/main/res/drawable/rounded_dark_bg.xml
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="@color/dark_background"/> | ||
|
||
<padding | ||
android:left="5dp" | ||
android:top="5dp" | ||
android:right="5dp" | ||
android:bottom="5dp"/> | ||
|
||
<corners | ||
android:radius="30dp"/> | ||
</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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape android:shape="rectangle" | ||
xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<solid android:color="@color/dialog_info"/> | ||
<corners android:radius="30dp"/> | ||
</shape> |
6 changes: 6 additions & 0 deletions
6
aestheticdialogs/src/main/res/drawable/rounded_rect_green.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape android:shape="rectangle" | ||
xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<solid android:color="@color/dialog_success"/> | ||
<corners android:radius="30dp"/> | ||
</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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape android:shape="rectangle" | ||
xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<solid android:color="@color/dialog_error"/> | ||
<corners android:radius="30dp"/> | ||
</shape> |
6 changes: 6 additions & 0 deletions
6
aestheticdialogs/src/main/res/drawable/rounded_rect_yellow.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape android:shape="rectangle" | ||
xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<solid android:color="@color/dialog_warning"/> | ||
<corners android:radius="30dp"/> | ||
</shape> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
67 changes: 0 additions & 67 deletions
67
aestheticdialogs/src/main/res/layout/dialog_emoji_error.xml
This file was deleted.
Oops, something went wrong.
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.