javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

Description text does not appear correctly #30

Closed rayliverified closed 6 years ago

rayliverified commented 8 years ago

I just upgraded from Material Styled Dialog v1 to v1.5.5. Unfortunately, the latest version does not format descriptions correctly. This is how the dialogue appears with v1: untitled20160922202351

The dialogue appears wrong in v1.5.5: untitled20160922202020

Am I missing a setting? Please help, thank you!

EDIT: I looked into this a bit further and the bug appears between v1.4 and v1.4.1 Seems that changing from a linear layout to a relative layout messed with the bottom margins/padding.

javiersantos commented 8 years ago

I found a workaround to solve your issue. Please update to the latest release and add this style to your style.xml:

This is just a temporaly workaround while I work on a better one (apply a custom style to the whole dialog).

<style name="MaterialStyledDialogs_Description">
    <item name="android:layout_marginTop">20dp</item>
    <item name="android:layout_marginBottom">20dp</item>
    <item name="android:layout_marginLeft">26dp</item>
    <item name="android:layout_marginRight">26dp</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@android:color/primary_text_light</item>
    <item name="android:textSize">@dimen/md_styled_text_description</item>
    <item name="android:alpha">0.6</item>
</style>
rayliverified commented 8 years ago

Thank you for addressing these issues so quickly! Material Styled Dialog is really great and I am using it extensively in my project. So far, its been perfect! Is there a way I can buy you an iced coffee to show my appreciation?

javiersantos commented 8 years ago

Thank you for using the library and reporting issues.

rayliverified commented 6 years ago

Closing due to inactivity.