Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Styles and Animations

Angad Singh edited this page Mar 23, 2019 · 8 revisions

Styles

Colors

All elements will be colored according to the application theme. However you can set a custom color for toolbar by defining colorHeader color in your apps colors.xml as

<color name="colorHeader">#222222</color>

Icons

FilePicker library has 3 png images in list.

  1. ic_directory_parent.png: Icon shown in the toolbar before title and directory path.

  2. ic_type_file.png: Icon is shown in file list item, before name and description.

  3. ic_type_folder.png: Icon is shown in directory list item, before name and description.

You can simply replace any of these images by putting png files in res/mipmap-hdpi, res/mipmap-mdpi, res/mipmap-xhdpi and res/mipmap-xxhdpi directories of application having same name ie. either ic_directory_parent.png, ic_type_file.png and ic_type_folder.png.

####Note: Make sure to make images of all mipmap sizes from mdpi-xxhdpi.

Texts

FilePickerDialog has two strings,

<string name="choose_button_label">Select</string> Label for Positive action in dialog.

<string name="cancel_button_label">Cancel</string> Label for Negative action in dialog.

Having same named string resources in app's strings.xml file will override the default one and new ones will be used.

Eg.

<string name="choose_button_label">Delete</string> will show DELETE label in dialog.

<string name="cancel_button_label">Cancel</string> will show CANCEL label in dialog.

Animations

Version 1.0.3 added two animations for the list items.

  1. marked_item_animation.xml: Animation for list items that are marked (List item translates from Left to Right).

  2. unmarked_item_animation.xml: Animation for list items that are unmarked (List item translates from Right to Left).

You can simply replace any of these animations by creating an xml file in res/anim directory of application having same name ie. either marked_item_animation.xml or unmarked_item_animation.xml.

The Android Studio will override default animations with your animations.

Clone this wiki locally