早教吧作业答案频道 -->英语-->
getWindow().setBackgroundDrawableResource(R.color.redbg);是什么意思?getWindow()是什么意思?细解
题目详情
getWindow().setBackgroundDrawableResource(R.color.red_bg);是什么意思?getWindow()是什么意思?细解
▼优质解答
答案和解析
你这段代码是android代码吧.
getWindow()是类android.app.Activity里的方法,你的这段代码所在的类是继承了android.app.Activity了的.以下是androidAPI的注释:
Window android.app.Activity.getWindow()
public WindowgetWindow()Added in API level
1Retrieve the current Window for the activity.
This can be used to directly access parts of the Window API that are not available through Activity/Screen.ReturnsWindow The current window,or null if the activity is not visual.
getWindow()是类android.app.Activity里的方法,你的这段代码所在的类是继承了android.app.Activity了的.以下是androidAPI的注释:
Window android.app.Activity.getWindow()
public WindowgetWindow()Added in API level
1Retrieve the current Window for the activity.
This can be used to directly access parts of the Window API that are not available through Activity/Screen.ReturnsWindow The current window,or null if the activity is not visual.
看了 getWindow().se...的网友还看了以下:
向心运动最终会转变为什么运动向心运动是因为所受合力大于所需向心力,做不断靠近圆心的运动,那么我想问 2020-04-09 …
(2/3)等,还有写着22k的电阻是什么意思,怎么计算的?还有的电阻上写着1M,怎么算出来的... 2020-05-13 …
导数中dydxdu的d是什么意思?看书中看到求导公式的时候下面突然冒出来的公式dydxdu等不知道 2020-05-13 …
visiter是什么意思?如果是访客的意思,那么visitor又指什么?二者有何区别?visit? 2020-05-22 …
阅读几则名言,以读书与思为题.写议论文部少于600字朱熹南宋读书之法,在循序而渐进,熟读而精思。孔 2020-06-03 …
jiāng有一个出生的意思,怎么写?河南方言jiāng有出生的意思,比如母牛jiāng了一头小牛犊 2020-06-04 …
anyway是不是很口语化,我在书面的时候想表示这个意思怎么办呢?中文向表达的是:不管怎样,总体而 2020-06-10 …
关于雅思的一些问题?雅思什么时候可以翻试卷看题?听说读是一本答题册吗?还是分开做完一个收一个,什么 2020-06-27 …
有个非常著名的名句,记得不什么怎么清楚,有谁可以告诉我下我记得好象有这样一句话,也可能没有(这是一个 2020-10-30 …
"天若有情天亦老"是什么意思?我对我心爱的人说:"听说人是可以打动上天的,既然上天都可以打动,而我就 2020-11-25 …