Absolute layout used in game development, dynamic calculation of the location
1 <?XML version= "1.0" encoding= "Utf-8"?>2 <Absolutelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"3 Android:layout_width= "Match_parent"4 Android:layout_height= "Match_parent" >5 6 <Button7 Android:id= "@+id/button1"8 Android:layout_width= "Wrap_content"9 Android:layout_height= "Wrap_content"Ten android:layout_x= "20DP" One android:layout_y= "12DP" A Android:text= "button" /> - - <Button the Android:id= "@+id/button2" - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - android:layout_x= "202DP" + android:layout_y= "51DP" - Android:text= "button" /> + A <Button at Android:id= "@+id/button3" - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - android:layout_x= "57DP" - android:layout_y= "169DP" - Android:text= "button" /> in - <Timepicker to Android:id= "@+id/timepicker1" + Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" the android:layout_x= "46DP" * android:layout_y= "253DP" /> $ Panax Notoginseng </Absolutelayout>
Android Absolute Layout