【发布时间】:2014-02-24 14:49:06
【问题描述】:
我有一个FrameLayout,其中包含一个TextView 和两个LinearLayouts:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
... a textview and 2 linearlayouts
</FrameLayout>
运行 Android Lint 后,我收到此警告:This <FrameLayout> can be replaced with a <merge> tag.
为什么会出现此警告?我能做些什么来修复它(除了忽略)?
【问题讨论】:
-
附注:
Generally, FrameLayout should be used to hold a single child view(来自文档)
标签: android xml android-framelayout android-lint