Mirror Directory Layout
-----------------------------------------------
Since version 2.3.2, Mirror uses a different directory structure of "mirror"
to support sample data for different build variants. Files originally
located in "mirror/" have been moved to "mirror/main/". Variant specific
directories will be created as necessary to store your variant specific
screen files (*.xml) for Mirror. Mirror handles these directories in
the same manner as how Gradle/Android Studio handles sourceset directories
(See below for more details).
If you do not use any flavor, build type or variant specific sourcesets,
you can find the screen files for all your layouts in "mirror/main".
Below is an example of the new directory structure:
mirror/
.res/ <-- resources only for Mirror previews
.gen/ <-- files generated by Mirror, do not edit
debug/ <-- screen files for layouts in "src/debug/res"
build_type.xml
free/ <-- screen files for layouts in "src/free/res"
variant.xml
freeDebug/
variant.xml
main/ <-- screen files for layouts in "src/main/res"
activity_main.xml
image.png
sample.xml
paid/
image.png
sample.xml
variant.xml
paidDebug/
flavor.xml
image.png
paidRelease/
image.png
release/
build_type.xml
sample.xml
As mentioned, Mirror handles these directories the same way as how
Gradle/Android Studio handles sourceset directories. The screen files for layouts
in "main" and the selected variant (including flavours and build types) will be
merged before sending to the device.
For example, if the selected variant is paidRelease, then "paidRelease/image.png",
"release/build_type.xml", "release/sample.xml", "paid/variant.xml",
"main/activity_main.xml" will be pushed to the device.
If files with the same name exist in different directories, Mirror will send the
file in the most specific directory. Mirror assumes the same order as
Gradle/Android Studio (from the most specific to the least specific):
variant > build type > flavor > main
We employ a simple way of merging the files in mirror screen directories:
Only directories related to the current selected flavor will be considered
and if files with the same name or relative path exist in different
directories, only the file in the more specific directory will be included,
the rest will be ignored.
Here's a more generalized directory structure:
mirror/
.res/
.gen/
main/
<screen files with sample data>
<files or directories you put here to help you structure your sample data>
<flavor specific directories>
<build type specific directories>
<variant specific directories>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Android调试UI最佳实践 (1191个子文件)
MediaSessionCompat.aidl 787B
ParcelableVolumeInfo.aidl 689B
PlaybackStateCompat.aidl 688B
MediaMetadataCompat.aidl 680B
RatingCompat.aidl 673B
resources-debug.ap_ 438KB
resources.ap_ 438KB
resources-debug-androidTest.ap_ 757B
gradlew.bat 2KB
fileSnapshots.bin 1.9MB
fileHashes.bin 94KB
taskArtifacts.bin 61KB
outputFileStates.bin 19KB
R$styleable.class 24KB
R$styleable.class 23KB
R$style.class 19KB
R$style.class 19KB
R$style.class 19KB
R$styleable.class 18KB
R$attr.class 11KB
R$attr.class 11KB
R$attr.class 9KB
R$dimen.class 6KB
R$dimen.class 6KB
R$color.class 5KB
R$color.class 4KB
R$id.class 4KB
R$dimen.class 4KB
R$id.class 4KB
R$color.class 4KB
R$drawable.class 4KB
R$drawable.class 4KB
R$drawable.class 4KB
ExTabLayout.class 4KB
R$id.class 4KB
R$layout.class 3KB
R$layout.class 3KB
ExViewPager.class 2KB
ExViewPager.class 2KB
R$layout.class 2KB
ExFragment.class 2KB
ExViewPager$PreviewPagerAdapter.class 2KB
ExViewPager$PreviewPagerAdapter.class 2KB
R$string.class 1KB
R$string.class 1KB
R$string.class 1KB
ExTabLayout$1.class 1KB
R.class 1015B
R$anim.class 955B
R.class 931B
R$anim.class 922B
R$bool.class 820B
R.class 820B
R$anim.class 813B
R$bool.class 802B
R$bool.class 769B
BuildConfig.class 705B
R$integer.class 693B
BuildConfig.class 690B
R$integer.class 660B
R$integer.class 657B
MainActivity.class 608B
ApplicationTest.class 452B
R$mipmap.class 380B
classes.dex 1.74MB
classes.dex 1.73MB
.gitignore 98B
.gitignore 8B
build.gradle 687B
build.gradle 521B
settings.gradle 16B
gradlew 5KB
header 230B
app.iml 8KB
UiDemo.iml 937B
classes.jar 936KB
classes.jar 558KB
classes-97a7761c2c56c9d5ec738c8378f34b4e925f6c1b.jar 358KB
internal_impl-23.0.1.jar 293KB
classes-1e7dd85028809cd921b4b51891cec31ddd474686.jar 228KB
classes.jar 214KB
internal_impl-23.0.1-9b9b2884bb41a8de4e37df54aeec07bf117e081d.jar 99KB
classes-bb266a663a175ffe5588cf6a8c9aca600614c101.jar 90KB
gradle-wrapper.jar 49KB
support-annotations-23.0.1-c013b2e0712232bcf7fbf6ae66c3fc126d5915c2.jar 3KB
R.java 465KB
R.java 465KB
R.java 96KB
R.java 81KB
ExViewPager.java 4KB
ExTabLayout.java 3KB
BuildConfig.java 439B
BuildConfig.java 429B
ApplicationTest.java 356B
MainActivity.java 337B
ExampleUnitTest.java 320B
cache.properties.lock 17B
.name 6B
icon_arrow.png 17KB
ic_launcher.png 10KB
共 1191 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
- tttk2021-07-09AS的Adapter类控件的实时预览确实不太友好,作者的方法值得借鉴
- pingpingdong2019-01-08输入内容不能为空
- coco321c2018-03-21没有运行出来啊
kaleai
- 粉丝: 14
- 资源: 98
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功