Giter Club home page Giter Club logo

shashank02051997 / fancygifdialog-android Goto Github PK

View Code? Open in Web Editor NEW
530.0 530.0 111.0 22.8 MB

Make your native android Dialog Fancy and Gify. A library that takes the standard Android Dialog to the next level with a variety of styling options and Gif's. Style your dialog from code.

License: Apache License 2.0

Java 100.00%
android android-lib android-library dialog dialog-box gif gif-animation gif-library java material-design ui ui-widget

fancygifdialog-android's Introduction

An enthusiastic Programmer | Google Certified Android Developer| Web Developer | Freelancer | Open Source lover

Coding

  • 🌱 I’m currently trying to learn Jetpack Compose and Kotlin Multiplatform Mobile.
  • πŸ”­ I’m currently working on some of my side projects :P
  • πŸ‘― I’m looking to collaborate on anything free and open source
  • πŸ’¬ Ask me about Android and Flutter.
  • πŸ“« How to reach me [email protected]
  • ⚑ Fun fact: I spend almost 2 hours surfing new things on the internet everyday. I love to keep myself updated!!

Tech Stack:

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub

shashank | pub


Me on Internet:

➑️ Check out my website



πŸ“ˆ GitHub Stats

Shashank's GitHub Stats

fancygifdialog-android's People

Contributors

karntrehan avatar shashank02051997 avatar yerenutku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fancygifdialog-android's Issues

Message gets invisible in dark mode.

Add support for dark mode. Message text disappears in the dark mode. Atleast provide a method to change textcolor so that we can use daynight resources.

PositiveButton

How do you go about closing the dialog after some positive action?

Button colors do not work

I tried to add the ID of the button color and it does not change. I have also tried to add a string with the hexadecimal of the color. But it fails completely, because it needs an ID of the COLOR.

I don't know if it has something to do, but now the buttons by default comes with the XML attribute to change the background of the button, called: app:backgroundTint.

I don't know if I need to update the FancyDialog code, or maybe I'm doing something wrong. So that the change of colors of the fancydialog buttons is not realized concretely: setNegativeBtnBackground and setPositiveBtnBackground.

Not working in a fragment

When I pass getActivity() in new FancyAlertDialog.Builder(getActivity()) no error though it doesn't show up

build.gradle failed

ERROR: Failed to resolve: com.github.Shashank02051997:FancyGifDialog-Android:1.2

Handle OnPositiveClicked

hello,
is it possible to override the OnPositiveClicked, i want it to change the GifResource for 2 seconds before closing the dialog.

Thank you, very good library

same issue #12 (set message not working )

image

and my code

            @Override
                 public void onBindViewHolder(@NonNull batsal_testAdapter.ItemViewHolder holder, 
         final int position) {
         holder.onBind(listData.get(position));
        holder.mview.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Context context=view.getContext();
            Intent intent=new Intent(context, Training_batsal.class);
            if(position==0){
                /* source this library:  https://github.com/Shashank02051997/FancyGifDialog-Android   
            */
                new FancyGifDialog.Builder((Activity)context)
                        .setTitle("ν•˜μ΄ λ‹ˆμ¦ˆ")
                        .setMessage("무릎이 μœ„λ‘œ μ˜¬λΌκ°€λ„λ‘ abcdabcd ")
                        .setNegativeBtnText("Cancel")
                        .setPositiveBtnBackground("#FF4081")
                        .setPositiveBtnText("Ok")
                        .setNegativeBtnBackground("#FFA9A7A8")
                        .setGifResource(R.drawable.gif1)   //Pass your Gif here
                        .isCancellable(true)
                        .OnPositiveClicked(new FancyGifDialogListener() {
                            @Override
                            public void OnClick() {
                               // Toast.makeText(MainActivity.this,"Ok",Toast.LENGTH_SHORT).show();
                            }
                        })
                        .OnNegativeClicked(new FancyGifDialogListener() {
                            @Override
                            public void OnClick() {
                                //Toast.makeText(MainActivity.this,"Cancel",Toast.LENGTH_SHORT).show();
                             }
                            })
                        .build();
                 }

              }
                 });
         }

Negative Button Bug

the ".setNegativeBtnText()" is always "RATE" when i dont set it
I only use "setPositiveBtnText()" but NetgativeBtn is always shown with "Rate" text this should be fixed.
thanks

Not working at all

ClassCastException: android.graphics.drawable.RippleDrawable cannot be cast to android.graphics.drawable.GradientDrawable

Used the library in this project for almost 6 months now, really appreciate you, please fix this :)

2019-07-10 08:45:02.070 28829-28829/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jitunInc.jitun, PID: 28829
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jitunInc.jitun/com.jitunInc.jitun.Activity.JitunHomeActivity}: java.lang.ClassCastException: android.graphics.drawable.RippleDrawable cannot be cast to android.graphics.drawable.GradientDrawable
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3037)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3172)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.ClassCastException: android.graphics.drawable.RippleDrawable cannot be cast to android.graphics.drawable.GradientDrawable
at c.e.a.a.c$a.a(Unknown Source:106)
at com.jitunInc.jitun.Activity.JitunHomeActivity.onCreate(Unknown Source:354)
at android.app.Activity.performCreate(Activity.java:7149)
at android.app.Activity.performCreate(Activity.java:7140)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1288)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3017)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3172)Β 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)Β 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)Β 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)Β 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)Β 
at android.os.Handler.dispatchMessage(Handler.java:106)Β 
at android.os.Looper.loop(Looper.java:193)Β 
at android.app.ActivityThread.main(ActivityThread.java:6863)Β 
at java.lang.reflect.Method.invoke(Native Method)Β 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)Β 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)Β 
2019-07-10 08:45:02.105 562-562/? E/SELinux: avc: denied { find } for service=opdiagnose pid=28829 uid=10586 scontext=u:r:untrusted_app:s0:c74,c258,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
2019-07-10 08:45:02.105 562-562/? E/SELinux: avc: denied { find } for service=opdiagnose pid=28829 uid=10586 scontext=u:r:untrusted_app:s0:c74,c258,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
2019-07-10 08:45:02.162 885-1495/? E/InputDispatcher: channel '4669927 com.jitunInc.jitun/com.jitunInc.jitun.Activity.SplashActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2019-07-10 08:45:02.172 885-2775/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.teslacoilsw.launcher/com.teslacoilsw.launcher.NovaLauncher/61161
2019-07-10 08:45:02.343 885-3002/? E/JobScheduler: jobid:20536
java.lang.IllegalStateException: Same jobid in systemuid.
at com.android.server.job.JobSchedulerService.scheduleAsPackage(JobSchedulerService.java:888)
at com.android.server.job.JobSchedulerService$JobSchedulerStub.schedule(JobSchedulerService.java:2592)
at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:44)
at com.android.server.backup.FullBackupJob.schedule(FullBackupJob.java:54)
at com.android.server.backup.BackupManagerService$3.run(BackupManagerService.java:1925)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)

Not working in fragment

I want to use it in a fragment. I get this error:

java.lang.ClassCastException: android.graphics.drawable.RippleDrawable cannot be cast to android.graphics.drawable.GradientDrawable

How can I solve it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.