Additional Details:
The activity is laid out as follows. There is a Linear Layout, with
horizontal orientation, and a layout_weight of 1. Inside are two
LinearLayouts, each with layout_weight of 0.5.
I would like a mechanism for the user to change the relative sizes of the
two linear layouts.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_weight="1"
>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="match_parent"
android:orientation="vertical"
>
<!-- left content -->
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="match_parent"
android:orientation="vertical"
>
<!-- right content -->
</LinearLayout>
</LinearLayout>
On Monday, January 18, 2016 at 12:02:40 PM UTC-7, [email protected] wrote:
>
> My Android app has two views, displayed simultaneously, when the app is in
> landscape orientation.
>
> I would like to enable the user to change the relative sizes of the views.
> In other words, the user could change the left view to be 20% of the width,
> and the right view to be 80%.
>
> What is the recommended approach?
>
> Sincerely,
>
> Eric Bergman-Terrell
> www.ericbt.com
>
>
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/44858e27-e25d-4b1a-8882-44335c862725%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.