任何人都可以解释android.R.id.content?
Anybody could explain the meaning of "android.R.id.content" ?
它是如何被使用的?
http://developer.android.com 没有任何解释。
公共静态最终诠释内容 自:API级别1
public static final int content Since: API Level 1
常量值:16908290(0x01020002)
Constant Value: 16908290 (0x01020002)
转换菲利普Reichart的评论到一个答案:
Converting Philipp Reichart's comment into an answer:
android.R.id.content为您提供了一个视图的根元素,而不必知道它的实际名称/类型/ ID。请了解一下当前的活动获得root视图
android.R.id.content gives you the root element of a view, without having to know its actual name/type/ID. Check out Get root view from current activity