RelativeLayout的布局

RelativeLayout.LayoutParams emotionBtnParams = new RelativeLayout.LayoutParams(100,LayoutParams.WRAP_CONTENT);
emotionBtnParams.addRule(RelativeLayout.BELOW, R.id.login_spinner_server);                    
emotionBtnParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
login_button_login.setLayoutParams(emotionBtnParams);

你可能感兴趣的:(RelativeLayout的布局)