Git Product home page Git Product logo

awesomedialog's People

Contributors

blennersilva avatar deepakkumardk avatar filol avatar safakge avatar senzo150 avatar younes-charfaoui 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

awesomedialog's Issues

Custom Layout for dialog body

I'm thinking if there could be a way for users to use a custom layout for the dialog body. I'm almost done implementing this feature in my fork and will submit a pull request if anyone is interested.

setButtonBackgroundColor seems to do nothing

Method setButtonBackgroundColor just do nothing, the button color is always set to colorPrimary.

Could it be that, when importing the dependency I was getting gradle errors conflicting with appcompat, solved by enabling android.enableJetifier in gradle.properties ?

setNegativeButtonText

Can i get text in lowercase in Awesome Dialog box LIKE i get "YES" button in "Yes" this type text . Can u help for this issue ?

Lib not found

gradle error: Failed to resolve: com.github.blennerSilva:AwesomeDialog:2.0.5

[BUG] [CRASH] ContextCompat must be dropped in the entire project

You don't have to use ContextCompat there if you are compiling with an API level greater than 24 as this is only a compatibility feature for early versions. You can also still use Context.getColor() But notice the method signature! If you just want a color in the default theme you only have to provide the int value of its reference: http://developer.android.com/reference/android/content/Context.html#getColor(int)

You are currently trying to access getColor() with two parameters (Color and Theme) which cannot work there as there is no method who supports these parameters. If you remove the 2nd parameter your current solution will work. But it would be more convenient to use Context or Resources directly and drop the v4 Appcompat reference if you don't need it.

Resources not found Android 6.0

at com.AwesomeDialog.blennersilva.awesomedialoglibrary.AwesomedialogBuilder.drawableColorChange(AwesomeDialogBuilder:153)

Style Error

when i run app the width of ColoredCircle will be full screen and style of dialog will be broken!
how can fix this issues?

Get strings from resources

You have the context for all dialogs set in constructor.
when set all strings set a method to give direct R.string.id to the method in order not to get the string outside the dialog and call the methods with string.

Good:
setTitle
setMessage

Bad:
setButtonText - does take only string, but you have the context in the dialog constructor, and you get the string from there

EditText in Dialog

Hi,
I think it would be great if we can add EditText to the dialog.

Also, in Wiki Warning Dialog has Notice circle color, icon and button bg color.

license ?

is there any license that i can use within yout project..?

Custom Typeface?

Dialog is very cool, but i can't find a way to customize Typeface.

Is possible? You can add a feature to customize all dialog typeface(title, message,buttons, ecc.)

Anyway, very good work!

Crash Issue on Android 4.4.2

Hey, i got an issue when using AwesomeDialog library, when i run the application in Android 4.4.2, the application is crashed

Here's the stack trace i got
Caused by org.xmlpull.v1.XmlPullParserException: Binary XML file line #2: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
at android.content.res.Resources.loadDrawable(Resources.java:2285)
at android.content.res.Resources.getDrawable(Resources.java:753)
at com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder.getLayout(AwesomeDialogBuilder.java:155)
at com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder.getLayout(AwesomeDialogBuilder.java:98)

Fatal Exception: android.content.res.Resources$NotFoundException: File res/drawable/ic_ask.xml from drawable resource ID #0x7f0700a5. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.
at android.content.res.Resources.loadDrawable(Resources.java:2289)
at android.content.res.Resources.getDrawable(Resources.java:753)
at com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder.getLayout(AwesomeDialogBuilder.java:155)
at com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder.getLayout(AwesomeDialogBuilder.java:98)

Crashes everywhere on android 8+ because of setcolorfilter deprecation

dialogBody.background.setColorFilter(ContextCompat.getColor(context!!, color), PorterDuff.Mode.SRC_IN) - deprecated

use:
dialogBody.background.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(color, BlendModeCompat.SRC_IN)

Also @ColorRes should be marked as function parameter

Can do action when the popup dismiss (backPressed) ?

Hello,

For example i use this with camera qrcode scanner Zbar and when I press back button I must reactivate the scanner.

It works with the action of button OK i can add line to reactivate but when I can do the line when I click back to my phone when dialog is open ?

Thanks

custom image

Hi,
can i add custom image in setDialogIconAndColor() ?
If i try to add a custom image, the image not view.

thanks.

UI bug when used with RTL

Attached the UI on a RTL Android device.

API (Android)

  • 26 (8.0)
  • 24 (7.0)

Language: Arabic

I dug into the source code Java/XML but I cannot figure out where the bug is :(

screenshot_ -

Fatal Exception

Fatal Exception: android.content.res.Resources$NotFoundException
Resource ID #0x7f060090
android.content.res.ResourcesImpl.getValueForDensity (ResourcesImpl.java:229)
android.content.Context.getDrawable (Context.java:605)
com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder$Companion.drawableColorChange (AwesomeDialogBuilder.kt:150)

AndroidX

Please migrate do AndroidX, that gradle import causes some imports if not migrated to AndroidX

Neutral Button

Hi,
Can you add a neutral button for AwesomeInfoDialog?
good work ! ;)

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.