Matisse: Custom Fonts And Texts

Created on 24 Aug 2017  ·  4Comments  ·  Source: zhihu/Matisse

How to set custom fonts and text for "preview" , "apply" ... buttons and also Edit PreviewActivity theme or even disable it ?

Most helpful comment

+1

All 4 comments

+1

The text must be configurable somehow right? "Apply" makes no sense for a default. "Done" or "Select" would be more universal, but the ability to configure this is a must-have.

Answering my own question here - it's simple to override the text! Check out the strings.xml file in this project. Define any of these strings in your own strings.xml and you can change the text to whatever you like!

For reference, here are the available strings as of Oct 25th, 2019 (0.5.3-beta3)

<resources
    xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="MissingTranslation">
    <string name="album_name_all">All Media</string>

    <string name="button_preview">Preview</string>
    <string name="button_apply_default">Apply</string>
    <string name="button_apply">Apply(%1$d)</string>
    <string name="button_back">Back</string>
    <string name="photo_grid_capture">Camera</string>
    <string name="empty_text">No media yet</string>
    <string name="button_ok">OK</string>

    <string name="error_over_count_default">You have reached max selectable</string>
    <string name="error_over_count">You can only select up to %1$d media files</string>
    <string name="error_under_quality">Under quality</string>
    <string name="error_over_quality">Over quality</string>
    <string name="error_file_type">Unsupported file type</string>
    <string name="error_type_conflict">Can\'t select images and videos at the same time</string>
    <string name="error_no_video_activity">No App found supporting video preview</string>
    <string name="error_over_original_size">Can\'t select the images larger than %1$d MB</string>
    <string name="error_over_original_count">%1$d images over %2$d MB. Original will be unchecked</string>
    <string name="button_original">Original</string>
    <string name="button_sure_default">Sure</string>
    <string name="button_sure">Sure(%1$d)</string>
</resources>

@matthewkrueger thanks the text is customizable this way. However, there could be something to apply custom fonts too. Besides, it would be good to be capable of disabling/enabling preview activity or of customizing it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HuRuWo picture HuRuWo  ·  4Comments

xiaotianchang picture xiaotianchang  ·  4Comments

lianmingran picture lianmingran  ·  6Comments

zzzhoukang picture zzzhoukang  ·  5Comments

Alastor111 picture Alastor111  ·  6Comments