Giter VIP home page Giter VIP logo

Comments (13)

hotchemi avatar hotchemi commented on June 27, 2024

Oh, thanks...I will investigate about it but ofcourse your pull request is welcome!:)

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024

https://code.google.com/p/android/issues/detail?id=78302

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024

http://stackoverflow.com/questions/27187353/dialog-buttons-with-long-text-not-wrapping-squeezed-out-material-theme-on-an

from android-rate.

matteinn avatar matteinn commented on June 27, 2024

Any fix for this issue?

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024

@matteinn @Bersh
Sorry for the delay.
May be this is the default requirements of the android framework.
If you want to solve the problem, you can set buttonBarButtonStyle in your theme to point to a style that extends Widget.Material.Button.Borderless.Colored and adds whatever attributes you need.

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024
<resources>
    <style name="AppBaseTheme" parent="android:Theme.Material.Light">
        <!-- AlertDialog Style override in order to try to fix non line breaking buttons -->
        <item name="android:alertDialogTheme">@style/CustomAlertDialogStyle</item>
    </style>  

    <style name="CustomAlertDialogStyle" parent="android:Theme.Material.Light.Dialog.Alert">
        <item name="android:buttonBarButtonStyle">@style/CustomButtonBarButtonStyle</item>
        <item name="android:buttonBarStyle">@style/CustomButtonBarStyle</item>
    </style>

    <style name="CustomButtonBarStyle" parent="@android:style/Widget.Material.Light.ButtonBar.AlertDialog">
        <!-- Making sure, the button bar uses parent width and is not restricted in height -->
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:height">@null</item>
        <item name="android:minHeight">@null</item>
    </style>

    <style name="CustomButtonBarButtonStyle" parent="@android:style/Widget.Material.Light.Button.Borderless.Colored">
        <!-- Setting the weight as follows should result in equally wide buttons filling the alert dialog width,
            but instead they span further out of the dialog, breaking in multiple lines though -->
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_weight">1</item>
        <!-- setting a fixed width as follows results in narrow buttons with line breaks, but of course this is not a solution -->
        <!-- <item name="android:width">100dp</item> -->
    </style>

</resources>

from android-rate.

maarekj avatar maarekj commented on June 27, 2024

Why I was tagged ?

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024

@maarekj Sorry, my mistake...

from android-rate.

matteinn avatar matteinn commented on June 27, 2024

Thank you @hotchemi .

from android-rate.

hotchemi avatar hotchemi commented on June 27, 2024

@Bersh @matteinn
I will fix this problem at ver 0.5.0. Stay tune:)

from android-rate.

matteinn avatar matteinn commented on June 27, 2024

Coil, thanks!

Sent from a mobile phone, please excuse any auto correct nonsense

On 28 Jun 2015, at 11:55, Shintaro Katafuchi [email protected] wrote:

@Bersh @matteinn
I will fix this problem at ver 0.5.0. Stay tune:)


Reply to this email directly or view it on GitHub.

from android-rate.

ollyde avatar ollyde commented on June 27, 2024

Any traction on this, it's not working currently (49)

from android-rate.

AlexanderLS avatar AlexanderLS commented on June 27, 2024

@voidstarfire it's working on https://github.com/Vorlonsoft/AndroidRate

from android-rate.

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.