用户登录
用户注册

分享至

9、鸿蒙OS 资源文件示例

  • 作者: 双面先生
  • 来源: 51数据库
  • 2022-10-13

boolean.json示例


{    "boolean":[        {            "name":"boolean_1",            "value":true        },        {            "name":"boolean_ref",            "value":"$boolean:boolean_1"        }    ]}


color.json示例


{    "color":[        {            "name":"red",            "value":"#ff0000"        },        {            "name":"red_ref",            "value":"$color:red"        }    ]}


float.json示例


{    "float":[        {            "name":"float_1",            "value":"30.6"        },        {            "name":"float_ref",            "value":"$float:float_1"        },        {            "name":"float_px",            "value":"100px"        }    ]}


intarray.json示例


{    "intarray":[        {            "name":"intarray_1",            "value":[                100,                200,                "$integer:integer_1"            ]        }    ]}


integer.json示例


{    "integer":[        {            "name":"integer_1",            "value":100        },        {            "name":"integer_ref",            "value":"$integer:integer_1"        }    ]}


pattern.json示例


{    "pattern":[        {            "name":"base",            "value":[                {                    "name":"width",                    "value":"100vp"                },                {                    "name":"height",                    "value":"100vp"                },                {                    "name":"size",                    "value":"25px"                }            ]        },        {           "name":"child",           "parent":"base",           "value":[               {                   "name":"noTitile",                   "value":"Yes"               }           ]        }    ]}


plural.json示例


{    "plural":[        {            "name":"eat_apple",            "value":[                {                    "quantity":"one",                    "value":"%d apple"                },                {                    "quantity":"other",                    "value":"%d apples"                }            ]        }    ]}


strarray.json示例


{    "strarray":[       {           "name":"size",           "value":[               {                   "value":"small"               },               {                   "value":"$string:hello"               },               {                   "value":"large"               },               {                   "value":"extra large"               }            ]       }    ]}


string.json示例


{    "string":[        {            "name":"hello",            "value":"hello base"        },        {            "name":"app_name",            "value":"my application"        },        {            "name":"app_name_ref",            "value":"$string:app_name"        },        {            "name":"app_sys_ref",            "value":"$ohos:string:request_location_reminder_title"        }    ]}


软件
前端设计
程序设计
Java相关