8
8
9
9
> ** Add it in your root build.gradle at the end of repositories:**
10
10
11
- ``` markdown
11
+ ```
12
12
allprojects{
13
13
repositories {
14
14
...
@@ -19,16 +19,16 @@ allprojects{
19
19
20
20
#### Step 2. Add the dependency
21
21
22
- ``` markdown
22
+ ```
23
23
dependencies {
24
24
...
25
- implementation 'com.github.amitjangid80:multiutillib:v1.2.6 '
25
+ implementation 'com.github.amitjangid80:multiutillib:v1.2.7 '
26
26
}
27
27
```
28
28
29
29
#### Using maven:
30
30
31
- ``` markdown
31
+ ```
32
32
<repositories>
33
33
<repository>
34
34
<id>jitpack.io</id>
@@ -39,11 +39,11 @@ dependencies {
39
39
40
40
#### Step 2. Add the dependency
41
41
42
- ``` markdown
42
+ ```
43
43
<dependency>
44
44
<groupId>com.github.amitjangid80</groupId>
45
45
<artifactId>multiutillib</artifactId>
46
- <version>v1.2.6 </version>
46
+ <version>v1.2.7 </version>
47
47
<dependency>
48
48
```
49
49
@@ -75,7 +75,7 @@ public class ProjectApplication extends Application
75
75
76
76
### SharedPreferenceData
77
77
78
- ``` markdown
78
+ ``` java
79
79
// use it in the activity or class you want to.
80
80
SharedPreferenceData sharedPreferenceData = new SharedPreferenceData (context);
81
81
@@ -613,7 +613,7 @@ UiUtils.setMaxLength(textInputEditText, maxLength);
613
613
614
614
** Usage**
615
615
616
- ``` aidl
616
+ ``` java
617
617
/**
618
618
* is Sd Card Mounted
619
619
* this method will check if sd card is mounted or not
@@ -710,6 +710,143 @@ Utils.getSha512Hash(byte[] dataToHash);
710
710
711
711
** Usage**
712
712
713
- ``` aidl
713
+ ``` java
714
+
715
+ // for making an activity slide from right to left
716
+ AnimUtil . slideActivityFromRightToLeft(context);
717
+
718
+ // for making an activity slide from left to right
719
+ AnimUtil . slideActivityFromLeftToRight(context);
720
+
721
+ // for making an activity slide from right to left
722
+ AnimUtil . slideActivityFromRightToLeft(context);
723
+
724
+ // for making an activity fade in fade out
725
+ AnimUtil . activityFadeInFadeOut(context);
726
+
727
+ // for making an activity from left with stay
728
+ AnimUtil . slideActivityFromLeftWithStay(context);
729
+
730
+ // for making an activity from right with stay
731
+ AnimUtil . slideActivityFromRightWithStay(context);
732
+
733
+ // for making an activity bottom with stay
734
+ AnimUtil . slideActivityFromBottomWithStay(context);
735
+
736
+ // for making an activity from top with stay
737
+ AnimUtil . slideActivityFromUpWithStay(context);
738
+
739
+ // for making an activity from bottom to up
740
+ AnimUtil . slideActivityFromBottomToUp(context);
741
+
742
+ // for making an activity from up to bottom
743
+ AnimUtil . slideActivityFromUpToBottom(context);
744
+
745
+ // for making an activity from up to bottom
746
+ AnimUtil . slideActivityFromUpToBottom(context);
747
+
748
+ // this method will make an view group to explode or rise
749
+ AnimUtil . explodeTransition(Context context, ViewGroup viewGroup, int duration);
750
+
751
+ // this method will make and view to slide from right
752
+ AnimUtil . slideAnimFromRight(@NonNull Context context, View view, int duration);
753
+
754
+ // this method will make and view to slide from left
755
+ AnimUtil . slideAnimFromLeft(@NonNull Context context, View view, int duration);
756
+
757
+ // Use your own animation in this method the way you want.
758
+ AnimUtil . slideAnim(@NonNull Context context, View view, int duration, @AnimRes int animResId);
759
+
760
+ // Use this method to make a button or a view bounce
761
+ AnimUtil . bounceAnim(Context context, View view);
762
+ ```
763
+
764
+ ###Social Buttons
765
+
766
+ > ** Use Social buttons like you use normal button.**
767
+
768
+ ** Usage**
769
+
770
+ ``` xml
771
+ <!-- Currently Facebook, Google, Twitter, LinkedIn buttons are available. -->
772
+
773
+ <!-- Square button with icon and color background and normal usage -->
774
+ <com .amit.ui.GoogleButton
775
+ android : layout_width =" match_parent"
776
+ android : layout_height =" wrap_content"
777
+ android : text =" Sign in with Google"
778
+ android : textAlignment =" center"
779
+ android : textColor =" @color/black"
780
+ app : iconSize =" 30dp"
781
+ app : iconPadding =" 30dp"
782
+ tools : ignore =" HardcodedText" />
783
+
784
+ <!-- Round Button with icon only and color background -->
785
+ <com .amit.ui.GoogleButton
786
+ android : layout_width =" 75dp"
787
+ android : layout_height =" 75dp"
788
+ app : iconSize =" 30dp"
789
+ app : roundedCorner =" true"
790
+ app : roundedCornerRadius =" 75dp" />
791
+
792
+ <!-- With Rounded corners and text -->
793
+ <com .amit.ui.GoogleButton
794
+ android : layout_width =" match_parent"
795
+ android : layout_height =" wrap_content"
796
+ android : text =" Sign in with Google"
797
+ android : textAlignment =" center"
798
+ android : textColor =" @color/black"
799
+ app : iconCenterAligned =" false"
800
+ app : iconSize =" 30dp"
801
+ app : roundedCorner =" true" />
802
+
803
+ <!-- Square button with only icon -->
804
+ <com .amit.ui.GoogleButton
805
+ android : layout_width =" 75dp"
806
+ android : layout_height =" 75dp"
807
+ app : iconSize =" 30dp" />
808
+
809
+ <!-- Square button with transparent background -->
810
+ <com .amit.ui.GoogleButton
811
+ android : layout_width =" 75dp"
812
+ android : layout_height =" 75dp"
813
+ app : iconSize =" 30dp"
814
+ app : transparentBackground =" true" />
815
+
816
+ <!-- Round button with transparent background -->
817
+ <com .amit.ui.GoogleButton
818
+ android : layout_width =" 75dp"
819
+ android : layout_height =" 75dp"
820
+ app : iconSize =" 30dp"
821
+ app : roundedCorner =" true"
822
+ app : roundedCornerRadius =" 75dp"
823
+ app : transparentBackground =" true" />
824
+ ```
825
+
826
+ ###Shine Button
827
+
828
+ > ** Type of like button with some color explosion.**
829
+
830
+ ** Usage**
831
+
832
+ ``` xml
833
+ <com .amit.shinebtn.ShineButton
834
+ android : id =" @+id/shine_button"
835
+ android : layout_width =" 50dp"
836
+ android : layout_height =" 50dp"
837
+ android : layout_marginBottom =" 10dp"
838
+ android : src =" @android:color/darker_gray"
839
+ app : allow_random_color =" false"
840
+ app : big_shine_color =" #FF6666"
841
+ app : btn_color =" @android:color/darker_gray"
842
+ app : btn_fill_color =" #FF6666"
843
+ app : click_animation_duration =" 200"
844
+ app : enable_flashing =" false"
845
+ app : shine_animation_duration =" 1500"
846
+ app : shine_count =" 8"
847
+ app : shine_turn_angle =" 10"
848
+ app : siShape =" @raw/heart"
849
+ app : small_shine_color =" #CC9999"
850
+ app : small_shine_offset_angle =" 20" />
851
+ ```
714
852
715
- ```
0 commit comments