-
Notifications
You must be signed in to change notification settings - Fork 139
Styles and Animations
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>
FilePicker library has 3 png images in list.
-
ic_directory_parent.png: Icon shown in the toolbar before title and directory path.
-
ic_type_file.png: Icon is shown in file list item, before name and description.
-
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.
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.
Version 1.0.3 added two animations for the list items.
-
marked_item_animation.xml: Animation for list items that are marked (List item translates from Left to Right).
-
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.