Skip to content

3.1_change_default_style(变更全局默认样式)

水牛 edited this page Nov 18, 2017 · 3 revisions

just overwrite the resourse name in your app's xml:

colors.xml:

    <color name="dialogutil_ios_btntext_blue">#007aff</color>
    <color name="dialogutil_text_title_11">#111111</color>
    <color name="dialogutil_text_msg_33">#333333</color>
    <color name="dialogutil_text_input_44">#444444</color>

    <color name="dialogutil_text_item_33">#333333</color>
    <color name="dialogutil_btn_alert">#222222</color>
    <color name="dialogutil_line_dd">#cccccc</color>
    <color name="dialogutil_ios_btn_normal">#ffffff</color>
    <color name="dialogutil_ios_btn_pressed">#eeeeee</color>
    <color name="dialogutil_bg_white">#ffffff</color>
    <color name="dialogutil_text_gray">#999999</color>
    <color name="dialogutil_text_gray_light">#B3B3B3</color>
    <color name="dialogutil_text_black">#333333</color>
    <color name="dialogutil_text_black_light" >#666666</color>
    <color name="dialogutil_text_black_lighter" >#999999</color>

dimens.xml

    <dimen name="dialogutil_round_corner">5dp</dimen>
    <dimen name="dialogutil_line_1px">1px</dimen>

    <dimen name="dialogutil_btn_txt_size">14sp</dimen>
    <dimen name="dialogutil_title_txt_size">17sp</dimen>
    <dimen name="dialogutil_msg_txt_size">14sp</dimen>
    <dimen name="dialogutil_item_txt_size">14sp</dimen>
    <dimen name="dialogutil_input_txt_size">14sp</dimen>

string for localization:

    <string name="dialogutil_btn_sure">sure</string>
    <string name="dialogutil_btn_cancel">cancel</string>
    <string name="dialogutil_btn_neutral">neutral</string>
    <string name="dialogutil_loading">loading</string>
    <string name="dialogutil_uploading">uploading</string>
    <string name="dialogutil_downloading">downloading</string>