Skip to content

Commit

Permalink
➕ Add new dialog : Flat
Browse files Browse the repository at this point in the history
- 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
Show file tree
Hide file tree
Showing 40 changed files with 525 additions and 302 deletions.

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions aestheticdialogs/src/main/res/drawable/btn_blue_normal.xml
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>
8 changes: 8 additions & 0 deletions aestheticdialogs/src/main/res/drawable/btn_blue_pressed.xml
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>
13 changes: 13 additions & 0 deletions aestheticdialogs/src/main/res/drawable/btn_green_normal.xml
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 aestheticdialogs/src/main/res/drawable/btn_green_pressed.xml
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 aestheticdialogs/src/main/res/drawable/btn_green_selector.xml
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>
13 changes: 13 additions & 0 deletions aestheticdialogs/src/main/res/drawable/btn_red_normal.xml
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 aestheticdialogs/src/main/res/drawable/btn_red_pressed.xml
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 aestheticdialogs/src/main/res/drawable/btn_red_selector.xml
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 aestheticdialogs/src/main/res/drawable/btn_yellow_normal.xml
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 aestheticdialogs/src/main/res/drawable/btn_yellow_pressed.xml
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 aestheticdialogs/src/main/res/drawable/btn_yellow_selector.xml
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>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
~ Copyright (c) 2019. Variance technologies. All rights reserved.
~ Copyright (c) 2020. All rights reserved.
~ Created by TEKOMBO Gabriel, Android Engineer, <tekombo.gabriel@gmail.com> on 16/10/19 22:42.
-->

<vector android:height="24dp" android:tint="@color/toaster_success"
<vector android:height="24dp" android:tint="@color/dialog_success"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<vector android:height="24dp" android:tint="@color/toaster_error"
<vector android:height="24dp" android:tint="@color/dialog_error"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-2h2v2zM13,13h-2L11,7h2v6z"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<vector android:height="24dp" android:tint="@color/toaster_warning"
<vector android:height="24dp" android:tint="@color/dialog_warning"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-2h2v2zM13,13h-2L11,7h2v6z"/>
Expand Down
13 changes: 13 additions & 0 deletions aestheticdialogs/src/main/res/drawable/rounded_dark_bg.xml
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>
6 changes: 6 additions & 0 deletions aestheticdialogs/src/main/res/drawable/rounded_rect_blue.xml
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 aestheticdialogs/src/main/res/drawable/rounded_rect_green.xml
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>
6 changes: 6 additions & 0 deletions aestheticdialogs/src/main/res/drawable/rounded_rect_red.xml
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>
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>
64 changes: 0 additions & 64 deletions aestheticdialogs/src/main/res/layout/a_view.xml

This file was deleted.

67 changes: 0 additions & 67 deletions aestheticdialogs/src/main/res/layout/dialog_emoji_error.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
app:cardCornerRadius="15dp">

<RelativeLayout
android:id="@+id/dialog_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
Expand Down
Loading

0 comments on commit 593dbf4

Please sign in to comment.