Code Monkey home page Code Monkey logo

Comments (3)

kobakei avatar kobakei commented on May 24, 2024 1

@damai007
Today I have released 1.0.1.
The new version uses android.support.v7.app.AlertDialog instead of android.app.AlertDialog. And the version also have showRateDialog method with theme ID argument.
I think that the new one will make easy to set style as material design for developers.
Please take a look sample app.

from android-ratethisapp.

kobakei avatar kobakei commented on May 24, 2024

I cannot reproduce the issue on my Nexus5 Android Marshmallow.
Would you provide more info (code, styles etc) ?

from android-ratethisapp.

damai007 avatar damai007 commented on May 24, 2024

I'm still having this problem on my Genymotion emulator with Marshmallow installed on it. You can see the screenshot I uploaded here (alert_dialog_missing.png)

I change the code (as described here), and it should be like this (alert_dialog_fix.png)

FYI, I compiled my project with SDK version 22, so I think maybe you tried on version 23 instead.

::EDITED::

I'm sorry, I finally found the culprit why the title and the message are missing in my project. Yeah, it's just the configuration in my styles.xml

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:textColorPrimary">@color/white</item>
</style>

I change that color to black, then the title and message show up! I think it's still the best practice to use AlertDialog.Builder's constructor with android.R.style.Theme_Material_Dialog_Alert instead of only using context.

from android-ratethisapp.

Related Issues (20)

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.