小编raf*_*ana的帖子

com.android.internal.R.id.content无法解析为闹钟代码中的变量

我正在使用我找到的闹钟代码并尝试自定义它.

但我收到此错误:"com.android.internal.R无法解析为变量"代码:

    getListView().setItemsCanFocus(true);

    // Grab the content view so we can modify it.
    FrameLayout content = (FrameLayout) getWindow().getDecorView()
            .findViewById(com.android.internal.R.id.content);
Run Code Online (Sandbox Code Playgroud)

我不确定这段代码是做什么的(所以我可以改变它)你可以通过一些替代代码帮助我解决这个问题吗?

android-layout

5
推荐指数
2
解决办法
3884
查看次数

标签 统计

android-layout ×1