代码动态设置TextView

//                    热门服务title显示
                    TextView t1 = new TextView(ServiceCustomActivity.this);
                    t1.setText(R.string.Hot_service);
                    t1.setTextColor(R.color.black);
                    t1.setTextSize(16);
                    t1.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
                    t1.setPadding(0, 20, 0, 20);//left, top, right,

版权声明:本文为xiyangyang8110原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。