I have an Android main_activity.xml like so: [code] How do I set a maximum width so that…
Jump to turn (12)
- 1I have an Android mainactivity.xml like so: How do I set a maximum width so that
- 2That doesn't seem to work. The 'Lots of elements' still expand to the full horiz
- 3That didn't work. On the other hand, changing the LinearLayout's layoutwidth to
- 4So now I have How do I get the LinearLayout to be centred horizontally inside th
- 5Now I have the following Android XML: This is fine in portrait, but in landscape
- 6Why do I need to set android:maxLines in addition to setting android:scrollHoriz
- 7This didn't fix the problem, even when TextView elements' layoutheight was set t
- 8Why don't the TextView elements know to wrap the text and expand vertically?
- 9What ended up working was setting maxWidth on the TextView elements that matched
- 10What can I do when Google decides to deprecate 70% of the code in my Android pro
- 11What about when Google is completely unreasonable in terms of the scale and natu
- 12Is it cynical of me to think that Google stopped using the "Don't be evil" sloga
- User
I have an Android main_activity.xml like so:
xml<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical" android:gravity="center_horizontal" android:padding="@dimen/padding__main_activity" > <!-- Lots of elements --> </LinearLayout> </ScrollView>How do I set a maximum width so that the 'Lots of elements' don't look ugly in landscape mode?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.