Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Layout Design Help
    text
    copied!<p>I would like to a layout like this one:</p> <pre> ------------------------------------ SCROLLABLE BAR CONTAINING SOME ITEMS (Invisible) ------------------------------------ A VIEWFLIPPER WITH TWO WEBVIEW (Should fill the entire screen except for some space required for the toolbar) ------------------------------------ ANOTHER SCROLLABLE BAR (Invisible) ------------------------------------ A TOOLBAR-LIKE FIXED-HEIGHT BAR. </pre> <p>So I wrote this code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_gravity="fill" android:layout_height="fill_parent" android:layout_width="fill_parent"&gt; &lt;TableRow android:visibility="invisible" android:layout_height="wrap_content" android:layout_width="wrap_content"&gt; &lt;ScrollView android:id="@+id/scvNotes" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;LinearLayout android:id="@+id/lilNotes" android:layout_height="wrap_content" android:layout_width="wrap_content"&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;ViewFlipper android:id="@+id/vflVisual" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="fill"&gt; &lt;WebView android:id="@+id/wvFirst" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="fill"&gt; &lt;/WebView&gt; &lt;WebView android:id="@+id/wvSecond" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="fill"&gt; &lt;/WebView&gt; &lt;/ViewFlipper&gt; &lt;/TableRow&gt; &lt;TableRow android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;ScrollView android:id="@+id/scvPages" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;LinearLayout android:id="@+id/lilPages" android:layout_height="wrap_content" android:layout_width="fill_parent" android:visibility="invisible"&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_height="wrap_content" android:layout_width="wrap_content"&gt; &lt;LinearLayout android:id="@+id/lilToolbar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;ImageView android:id="@+id/btnLibrary" android:src="@drawable/libreria" android:layout_height="44px" android:layout_width="28px"&gt; &lt;/ImageView&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p>But it creates a layout with two TableRow visible, and the WebViews are not displayed... The two scrollable lists must be invisible and made visible if the user requires them by choosing an option on the toolbar.. Which Layout should I use to solve the problem? Thank you in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload