android开发,程序中如何修改控件的相对布局

日期:2022-04-09 00:03:08 人气:1

android开发,程序中如何修改控件的相对布局

RelativeLayout layout =(RelativeLayout) findViewById(R.id.layout);
Button but = new Button(this);
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(50,50);
lp
    A+
热门评论