varunjohn / iosdialogs4android Goto Github PK
View Code? Open in Web Editor NEWA library to show iOS like AlertView in Android as Dialogs
A library to show iOS like AlertView in Android as Dialogs
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.
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.
Toolbar changes it's color when dialog is on screen, how change it?
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)
I have noticed that an extra action bar is shown when the theme in the app is set to be one with 'NoActionBar'.
Also there are some memory leak issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.