开发者

Android activity without layout

开发者 https://www.devze.com 2023-04-12 14:32 出处:网络
Is there any way to make Android layout with totally independent position of controls? Something like \"free\" layout in Java. I would like a layout in which position of controls w开发者_运维百科ouldn

Is there any way to make Android layout with totally independent position of controls? Something like "free" layout in Java. I would like a layout in which position of controls w开发者_运维百科ouldn't depend on anything other then position on which i dropped them from toolbox. Is something like that possible in Android app?


Sure, RelativeLayout allows you to place your controls whereever you want on the display


I think what you want is the AbsoluteLayout which lets you specify the exact X and Y locations of the controls.

http://developer.android.com/reference/android/widget/AbsoluteLayout.html


Your choice would be:

http://developer.android.com/reference/android/widget/AbsoluteLayout.html

0

精彩评论

暂无评论...
验证码 换一张
取 消