用java代码写一个Button1类继承Button 然后在其他地方使用 设置属性
Button1 b=new Button1(context);
b.setText(strings[i][j]);
b.setVisibility(View.GONE);
b.setGravity(Gravity.LEFT);
b.setBackgroundColor(Color.parseColor("#00000000"));
b.set(100,100);
b.setBackground(gd);
b.setTextSize(25);
b.setPadding(23,8,0,0);
设置自定义按钮的一些属性
最新推荐文章于 2024-05-27 22:24:24 发布