Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Suppose you have a layout like this</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android:id="@+id/linearLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;!-- your content here --&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/LinearLayout02" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;!-- your content here --&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/LinearLayout03" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;!-- your content here --&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>At the starting of your program use</p> <pre><code>LinearLayout linearLayout1,linearLayout2,linearLayout3; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.layout); //define and declare the layouts linearLayout1=(LinearLayout) findViewById(R.id.LinearLayout01); linearLayout2=(LinearLayout) findViewById(R.id.LinearLayout02); linearLayout3=(LinearLayout) findViewById(R.id.LinearLayout03); } </code></pre> <p>Now when you want to hide the first layout ,use</p> <pre><code>linearLayout1.setVisibility(View.GONE); </code></pre> <p>Now when you want to show the first layout ,use</p> <pre><code>linearLayout1.setVisibility(View.VISIBLE); </code></pre> <p>The situation is same for all layouts..</p> <p>Hope this will help you..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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