File tree Expand file tree Collapse file tree
java/com/gzeinnumer/dialogandroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77</h1 >
88
99<div align =" center " >
10- <a><img src="https://img.shields.io/badge/Version-3.2.9 -brightgreen.svg?style=flat"></a>
10+ <a><img src="https://img.shields.io/badge/Version-3.3.0 -brightgreen.svg?style=flat"></a>
1111 <a><img src="https://img.shields.io/badge/ID-gzeinnumer-blue.svg?style=flat"></a>
1212 <a><img src="https://img.shields.io/badge/Java-Suport-green?logo=java&style=flat"></a>
1313 <a><img src="https://img.shields.io/badge/Kotlin-Suport-green?logo=kotlin&style=flat"></a>
@@ -543,6 +543,8 @@ new TimeDialog(getSupportFragmentManager())
543543 - Bug Fixing
544544- ** 3.2.9**
545545 - Bug Fixing
546+ - ** 3.3.0**
547+ - Remove Space From Button
546548
547549---
548550# Contribution
Original file line number Diff line number Diff line change 33import android .os .Bundle ;
44import android .os .Handler ;
55import android .util .Log ;
6+ import android .view .Gravity ;
67import android .view .View ;
78import android .widget .Toast ;
89
@@ -47,6 +48,14 @@ private void confirmDialog() {
4748
4849 private void infoDialog () {
4950 findViewById (R .id .InfoDialog ).setOnClickListener (v -> new InfoDialog (getSupportFragmentManager ())
51+ .setAnimationStyle (R .style .CustomDialogStyle )
52+ .setButtonAllCaps (false )
53+ .autoDismisOnSecond (5 )
54+ .setButtonGravity (Gravity .CENTER )
55+ .setContentAlignment (View .TEXT_ALIGNMENT_CENTER )
56+ .setTitleColor (getResources ().getColor (R .color .black ))
57+ .setButtonStyle (ButtonStyle .ButtonText )
58+ // .setButtonColor(getResources().getColor(R.color.colorPrimary))
5059 .setDialogType (DialogType .DialogSuccess )
5160 .setTitle ("ini title" )
5261 .setContent ("ini content" )
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
3- <color name =" purple_200" >#FFBB86FC</color >
4- <color name =" purple_500" >#FF6200EE</color >
5- <color name =" purple_700" >#FF3700B3</color >
6- <color name =" teal_200" >#FF03DAC5</color >
7- <color name =" teal_700" >#FF018786</color >
83 <color name =" black" >#FF000000</color >
94 <color name =" white" >#FFFFFFFF</color >
105
11- <color name =" colorPrimary" >#FF0000 </color >
12- <color name =" colorPrimaryDark" >#5AC100 </color >
13- <color name =" colorAccent" >#09FFE7 </color >
6+ <color name =" colorPrimary" >#00b48d </color >
7+ <color name =" colorPrimaryDark" >#00b48d </color >
8+ <color name =" colorAccent" >#00b48d </color >
149</resources >
Original file line number Diff line number Diff line change 66 <item name =" colorPrimaryVariant" >@color/colorPrimaryDark</item >
77 <item name =" colorOnPrimary" >@color/white</item >
88 <!-- Secondary brand color. -->
9- <item name =" colorSecondary" >@color/teal_200 </item >
10- <item name =" colorSecondaryVariant" >@color/teal_700 </item >
11- <item name =" colorOnSecondary" >@color/black </item >
9+ <item name =" colorSecondary" >@color/colorPrimary </item >
10+ <item name =" colorSecondaryVariant" >@color/colorPrimaryDark </item >
11+ <item name =" colorOnSecondary" >@color/white </item >
1212 <!-- Status bar color. -->
1313 <item name =" android:statusBarColor" tools : targetApi =" l" >?attr/colorPrimaryVariant</item >
1414 <!-- Customize your theme here. -->
1515 </style >
16+
17+ <style name =" CustomDialogStyle" parent =" Theme.MaterialComponents.Light.Dialog" >
18+ <item name =" colorPrimary" >@color/colorPrimary</item >
19+ <item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
20+ <item name =" colorAccent" >@color/colorAccent</item >
21+ <item name =" android:windowMinWidthMajor" >80%</item >
22+ <item name =" android:windowMinWidthMinor" >80%</item >
23+ <item name =" android:windowEnterAnimation" >@anim/anim_in</item >
24+ <item name =" android:windowExitAnimation" >@anim/anim_out</item >
25+ </style >
1626</resources >
Original file line number Diff line number Diff line change 3737 android : id =" @+id/parent_button"
3838 android : layout_width =" match_parent"
3939 android : layout_height =" wrap_content"
40- android : layout_marginTop =" @dimen/def_margin_half"
4140 android : gravity =" end" >
4241
4342 <Button
Original file line number Diff line number Diff line change 3434 android : text =" @string/content_dialog" />
3535
3636 <LinearLayout
37- android : layout_marginTop =" @dimen/def_margin_half"
3837 android : id =" @+id/parent_button"
3938 android : layout_width =" match_parent"
4039 android : layout_height =" wrap_content"
Original file line number Diff line number Diff line change 2727 <com .agrawalsuneet.dotsloader.loaders.SlidingLoader
2828 android : layout_width =" wrap_content"
2929 android : layout_height =" wrap_content"
30- android : layout_marginTop =" 8dp"
3130 android : layout_marginBottom =" @dimen/def_margin"
3231 app : slidingloader_animDur =" 2000"
3332 app : slidingloader_distanceToMove =" 12"
You can’t perform that action at this time.
0 commit comments