J Jost aus Soest Active Member Licensed User Longtime User Mar 16, 2012 #1 I hope I'm not missing somewhere in the documents something important... It would be very nice and helpful to have access to the "layout managers" (i. e. "ViewGroup" e. g. LinearLayout, RelativeLayout, TableLayout) from the Android UI toolkit, especially for generating liquid designs by code. Example: Layout Tricks: Creating Efficient Layouts | Android Developers Information: ViewGroup | Android Developers
I hope I'm not missing somewhere in the documents something important... It would be very nice and helpful to have access to the "layout managers" (i. e. "ViewGroup" e. g. LinearLayout, RelativeLayout, TableLayout) from the Android UI toolkit, especially for generating liquid designs by code. Example: Layout Tricks: Creating Efficient Layouts | Android Developers Information: ViewGroup | Android Developers
F flandersdl Member Licensed User Longtime User Mar 26, 2012 #2 Have you looked at this? http://www.b4x.com/forum/basic4android-share-your-creations/8417-another-scrollview-example.html#post51142 I was looking at the layout tricks also and have been able to modify the code to do the same thing, except for 'android:layout_alignWithParentIfMissing'. I don't need it in my app (so far), although i don't think it would be too hard to code the different sizes.
Have you looked at this? http://www.b4x.com/forum/basic4android-share-your-creations/8417-another-scrollview-example.html#post51142 I was looking at the layout tricks also and have been able to modify the code to do the same thing, except for 'android:layout_alignWithParentIfMissing'. I don't need it in my app (so far), although i don't think it would be too hard to code the different sizes.
J Jost aus Soest Active Member Licensed User Longtime User Mar 26, 2012 #3 As I understand, Klaus has created a workaround for a kind of LinearLayout, hasn't he?
F flandersdl Member Licensed User Longtime User Mar 27, 2012 #4 Jost aus Soest said: As I understand, Klaus has created a workaround for a kind of LinearLayout, hasn't he? Click to expand... Yes he has. He also put together a list of scrollview examples here: http://www.b4x.com/forum/basic4android-getting-started-tutorials/8423-scrollview-examples-summary.html#post47137 If you want a relative layout, all you would need to do is check to see if all labels have data in them and if not them resize the height of the other labels to fill the whole panel. Edit: I have attached a sample of a RelativeLayout. Attachments Relative Layout Scrollview.zip Relative Layout Scrollview.zip 8 KB · Views: 516 Last edited: Mar 28, 2012
Jost aus Soest said: As I understand, Klaus has created a workaround for a kind of LinearLayout, hasn't he? Click to expand... Yes he has. He also put together a list of scrollview examples here: http://www.b4x.com/forum/basic4android-getting-started-tutorials/8423-scrollview-examples-summary.html#post47137 If you want a relative layout, all you would need to do is check to see if all labels have data in them and if not them resize the height of the other labels to fill the whole panel. Edit: I have attached a sample of a RelativeLayout.