Android:android.R.id.content 有什么用? [英] Android: What is android.R.id.content used for?

查看:29
本文介绍了Android:android.R.id.content 有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释android.R.id.content"的含义;?

Anybody could explain the meaning of "android.R.id.content" ?

它是如何使用的?

http://developer.android.com 没有任何解释.

public static final int content
从:API 级别 1

public static final int content
Since: API Level 1

常量值:16908290 (0x01020002)

Constant Value: 16908290 (0x01020002)

推荐答案

As Philipp Reichart 评论:

android.R.id.content 为您提供视图的根元素,而无需知道其实际名称/类型/ID.查看 http://stackoverflow.com/questions/4486034/android-how-to-get-root-view-from-current-activity

android.R.id.content gives you the root element of a view, without having to know its actual name/type/ID. Check out http://stackoverflow.com/questions/4486034/android-how-to-get-root-view-from-current-activity

这篇关于Android:android.R.id.content 有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆