assets是程序的图像资源。
自动适配各种分辨率的代码如下:
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "70",
"filename" : "Default@2xpng",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "Default-568h@2xpng",
"minimum-system-version" : "70",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"filename" : "Defaultpng",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"filename" : "Default@2xpng",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"filename" : "Default-568h@2xpng",
"subtype" : "retina4",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
schemasandroidcom/apk/res/android"
android:layout_height="fill_parent" android:paddingTop="50dip">3然后在工程里面新建一个assets文件夹,随便放一个indextxt的文件在其中,运行
Ctrl+F11进行测试即可;
以上就是关于ios assets是什么文件全部的内容,包括:ios assets是什么文件、如何打开.assets格式的文件、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!