This example describes the Absolutelayout usage of the Android programming layout control. Share to everyone for your reference, specific as follows:
Absolutelayout is an absolute layout manager that specifies the absolute coordinates of the upper-left corner of the component to specify the layout of the component
<?xml version= "1.0" encoding= "Utf-8"?> <absolutelayout "xmlns:android=" /schemas.android.com/apk/res/android "android:orientation=" vertical "android:layout_width=" Fill_parent "Android: layout_height= "Fill_parent" > <button android:layout_width= "wrap_content" android:layout_height= "WRAP_" Content "android:text=" button 1 "android:layout_x=" 0px "android:layout_y=" 0px "/> <button android:layout_width=" Wra P_content "android:layout_height=" wrap_content "android:text=" button 2 "android:layout_x=" 20px "android:layout_y=" 20px " /> <button android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "button 3" an droid:layout_x= "40px" android:layout_y= "40px"/> <button android:layout_width= "Wrap_content" Android:layout_h eight= "wrap_content" android:text= "button 4" android:layout_x= "60px" android:layout_y= "60px"/> </absolutelayout >
The screenshot of the running effect is as follows:
I hope this article will help you with the Android program.