hedzr / android-file-chooser

a lightweight file/folder chooser or picker
Apache License 2.0
284 stars 62 forks source link

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

Closed ytheekshana closed 5 years ago

ytheekshana commented 5 years ago

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

hedzr commented 5 years ago

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 commented 5 years ago

Perfect