Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

How to theme this. Ex a Dark theme ? #34

Closed
ytheekshana opened this issue Dec 5, 2018 · 2 comments
Closed

How to theme this. Ex a Dark theme ? #34

ytheekshana opened this issue Dec 5, 2018 · 2 comments

Comments

@ytheekshana
Copy link

Hello. Any way to theme this.......Like dark theme and light theme

@hedzr
Copy link
Owner

hedzr commented Dec 6, 2018

Well, it's a really good question. afc has no yet been in better conformance with System Theme. But that's not very hard to be done. Three things here:

  1. suppose that you're in AppCompat Day/Night schema
  2. using your row layout with .withRowLayoutView(li_row_textview). you can copy the default one from library layout resource folder (li_row_textview.xml), and update its background:
    <RelativeLayout android:background="?android:attr/selectableItemBackground" ...
  3. All forks.

I will make this change in 1.2.x & devel branch later, but you have to setup a custom row layout resource before the next generation released.

@ytheekshana
Copy link
Author

Perfect

hedzr added a commit that referenced this issue Dec 10, 2018
…ing adaptive background color in library layout (AppCompat Day/Night Mode/Schema).
hedzr added a commit that referenced this issue Dec 10, 2018
@hedzr hedzr closed this as completed Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants