安卓Java怎么设置Button
Button b = (Button) findViewById(R。id。xxx);
b。setTextSize(20); // 设置字体大小
b。 setTextColor(0xffff0000); // 设置字体颜色
button。setShadowLayer(5, 0, 0, 0xff00ff00); // 设置字体阴影的半径和颜色
b。 setTextAppearance(this, styleResId); // 设置字体的style。全部
Button b = (Button) findViewById(R。id。xxx);
b。setTextSize(20); // 设置字体大小
b。
setTextColor(0xffff0000); // 设置字体颜色
button。setShadowLayer(5, 0, 0, 0xff00ff00); // 设置字体阴影的半径和颜色
b。
setTextAppearance(this, styleResId); // 设置字体的style。收起