property:ALIGN_PARENT_BOTTOM
return type:int
content:เป็นค่าคงที่ ของ RelativeLayout ที่ใช้แทนความหมายว่า ให้ เส้นขอบด้านล่าง
อยู่ในระดับเดียวกับ เส้นขอบด้านล่าง ของ relative layout
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams ( 100, 30 );
params.addRule ( RelativeLayout.ALIGN_PARENT_BOTTOM );
RelativeLayout relative_layout = new RelativeLayout ( this );
Button button_1 = new Button ( this );
button_1.setText ( "main" );
Button button_2 = new Button ( this );
button_2.setText ( "compare" );
button_2.setLayoutParams ( params );
relative_layout.addView ( button_1 );
relative_layout.addView ( button_2 );
setContentView( relative_layout );
}
}