我有以下布局文件:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/what_did_you_eat"/>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".AddFoodActivity"
tools:ignore="MergeRootFrame"
/>
</LinearLayout>
FrameLayout
将包含动态添加fragment
,有没有办法在编辑器中预览fragment
?
就像我们在使用时可以做的那样标签与tools:layout
属性 ?
虽然它很有用,但什么也没有当前的工具文档 http://tools.android.com/tech-docs/tools-attributes这表明这是可能的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)