本文整理了Java中android.widget.ScrollView.setBackground()
方法的一些代码示例,展示了ScrollView.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.setBackground()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:setBackground
暂无
代码示例来源:origin: leftcoding/GankLy
super.setBackground(background);
代码示例来源:origin: quaap/LaunchTime
private void initializeActionMenu() {
mScreenDim = mMain.getScreenDimensions();
mShortcutActionsList.removeAllViews();
mItemBGColor = mStyle.getCattabBackground();
int textcolor = mStyle.getCattabTextColor();
int bgcolor = mStyle.getCalculatedWallpaperColor();
if (Color.alpha(bgcolor) > 90) {
int red = Color.red(bgcolor);
int green = Color.green(bgcolor);
int blue = Color.blue(bgcolor);
int alpha = 200;
if (Color.alpha(mItemBGColor)<120) alpha = 235;
bgcolor = Color.argb(alpha, red, green, blue);
} else {
bgcolor = Color.argb(235, 128, 128, 128);
mItemBGColor = Color.argb(240, 255-Color.red(textcolor), 255-Color.green(textcolor), 255-Color.blue(textcolor));
}
int red = Color.red(bgcolor);
int green = Color.green(bgcolor);
int blue = Color.blue(bgcolor);
bgcolor = Color.argb(220, red<200?red+10:red, green<200?green+10:green, blue<200?blue+20:blue);
mShortcutActionsPopup.setBackgroundColor(bgcolor);
if (mStyle.isRoundedTabs()) {
mShortcutActionsPopup.setBackground(mStyle.getBgDrawableFor(mShortcutActionsPopup, bgcolor));
}
mIconBar = null;
}
代码示例来源:origin: animalize/QuanTangshi
BitmapDrawable bitmapDrawable = mTypeset.getStudyBGDrawable();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
root.setBackground(bitmapDrawable);
} else {
root.setBackgroundDrawable(bitmapDrawable);
内容来源于网络,如有侵权,请联系作者删除!