New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to style item texts? #510
Comments
@155martinmoreno can you be a bit more specific? how do you want to style the text? of which items? |
I'm trying to apply a style to the PrimaryDrawerItem name |
Please be a bit more specific. Which style? Color? Size? Typeface? Martín Moreno notifications@github.com schrieb am Mo., 27. Juli 2015
|
ok, something like this: <style name="H1" parent="@android:style/TextAppearance.Medium"> 24sp sans-serif-thin normal </style> |
@155martinmoreno the typeface can be set via the api. setting the textSize can be done by overwriting the default dimen value via resource. I would suggest if you need a custom drawerItem with custom style (which follows not the Android Design Guidelines) that you create a CustomDrawerItem by implementing the IDrawerItem interface (you can look at the PrimaryDrawerItem and modify it to your needs) |
To change textSize I created a item on my <?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="material_drawer_item_primary_text">20sp</dimen>
</resources> Works for me. |
I'm trying to style the text items... any idea how?
The text was updated successfully, but these errors were encountered: