Git Product home page Git Product logo

iosdialogs4android's People

Contributors

varunjohn avatar

Stargazers

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

Watchers

 avatar

iosdialogs4android's Issues

resource linking failed

I'm getting an error when building the project after adding the dependency.

AAPT: error: style attribute 'attr/cardCornerRadius (aka com.xxxxx.xxxx:attr/cardCornerRadius)' not found.
AAPT: error: style attribute 'attr/cardElevation (aka com.xxxxx.xxxx:attr/cardElevation)' not found.
AAPT: error: style attribute 'attr/cardPreventCornerOverlap (aka com.xxxxx.xxxx:attr/cardPreventCornerOverlap)' not found.
AAPT: error: style attribute 'attr/cardUseCompatPadding (aka com.xxxxx.xxxx:attr/cardUseCompatPadding)' not found.
AAPT: error: style attribute 'attr/contentPadding (aka com.xxxxx.xxxx:attr/contentPadding)' not found.

Reopening the dialog quickly does not work

Hello! first... thanks for your work. This dialog is very cool.

I am having a problem trying to open the dialog a second time in a very short period of time.

My program performs some checks, if it gives an error it shows the dialog with various options. One of these options is "Retry". If I click on this option, it will perfom the same checking as before and if there is an error it will display the dialog again. In this situation, sometimes it works correctly but sometimes it doesn't. Perhaps it is related to the time it takes to perform the checks.

I put a code example in kotlin. It is not literally like my program (mine does the checks on a thread and works with MVVM) but doing so doesn't work either.

private fun test() {
        IOSDialog.Builder(context!!)
                .message("Test message")
                .positiveButtonText("Ok")
                .positiveClickListener { dialog ->
                    dialog.dismiss()
                    test()
                }
                .build()
                .show()
    }

If I call test() first time is shown, but when I press "Ok" the second time is not shown.

The logcat says:

2020-03-19 10:49:48.246 2859-4481/? I/ActivityManager: START u0 {cmp=com.../com.varunjohn1990.iosdialogs4android.IOSDialogView} from uid 10066 on display 0
2020-03-19 10:49:48.694 2859-3255/? I/ActivityManager: Displayed com.../com.varunjohn1990.iosdialogs4android.IOSDialogView: +351ms (total +555ms)
....
2020-03-19 10:49:52.349 2859-4461/? I/ActivityManager: START u0 {cmp=com.***/com.varunjohn1990.iosdialogs4android.IOSDialogView} from uid 10066 on display 0

I think is something with the method starting the activity on IOSDialogView.open. Maybe putting some flags in the Intent can solve it.

Thanks in advance.

IOSDialog.isEnableAnimation() on Null Object Reference

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'boolean com.varunjohn1990.iosdialogs4android.IOSDialog.isEnableAnimation()' on a null object reference
com.varunjohn1990.iosdialogs4android.IOSDialogView.onCreate (IOSDialogView.java:67)
android.app.Activity.performCreate (Activity.java:7383)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)

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.