定义在string.xml中的文本怎样改变字体大小啊
1个回答
展开全部
呵呵,今天终于把问题解决了。
Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater) ArtworkActivity.this.
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout linearlayout = (LinearLayout)inflater.inflate
(R.layout.dialog, null);
builder.setView(linearlayout); //
对话框要显示的message 也支持布局的形式。builder.setView(linearlayout);
对话框要显示的messag的字体大小,可以在layout中设置
Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater) ArtworkActivity.this.
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout linearlayout = (LinearLayout)inflater.inflate
(R.layout.dialog, null);
builder.setView(linearlayout); //
对话框要显示的message 也支持布局的形式。builder.setView(linearlayout);
对话框要显示的messag的字体大小,可以在layout中设置
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询