gabrielemariotti / cardslib

Android Library to build a UI Card
4.66k stars 1.19k forks source link

Change title color to black (#000) #476

Closed AkshayLaghate closed 9 years ago

AkshayLaghate commented 9 years ago

I am using Material card with text, i want to change title color to black. I have seen the documents many times but can't figure out how to do it. Pls help me.

gabrielemariotti commented 9 years ago

If you are referring the title over the image:

<color name="card_thumbnail_image_text_over_textcolor">#FFF</color>
AkshayLaghate commented 9 years ago

Not over the image, the title and subtitle below the image.

gabrielemariotti commented 9 years ago

Here the layout used https://github.com/gabrielemariotti/cardslib/blob/master/library-cards/src/main/res/layout/native_material_largeimage_inner_base_main.xml

You can override the style card.native.base_simple_title.

Here the original value: https://github.com/gabrielemariotti/cardslib/blob/master/library-core/src/main/res/values-v16/styles.xml#L64

I have to extract the color from this. It would be easier to change the color :-/

AkshayLaghate commented 9 years ago

That worked. Thanks