Note that there are some explanatory texts on larger screens.

plurals
  1. POinsert frame layout inside another frame layout
    text
    copied!<p>Can i insert two frameLayout inside one frameLayout? I tried this code and it doesn't work!!!</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:baselineAligned="false" android:orientation="horizontal" &gt; &lt;FrameLayout android:id="@+id/titles" android:layout_width="0px" android:layout_height="match_parent" android:layout_weight="1" /&gt; &lt;FrameLayout android:id="@+id/details" android:layout_width="0px" android:layout_height="match_parent" android:layout_weight="2" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false" android:orientation="horizontal" &gt; &lt;FrameLayout android:id="@+id/details1" android:layout_width="0px" android:layout_height="match_parent" android:layout_weight="1" /&gt; &lt;FrameLayout android:id="@+id/details2" android:layout_width="0px" android:layout_height="match_parent" android:layout_weight="1" /&gt; &lt;/LinearLayout&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>When i click on one element i want detail1 to be printed. I guess the detail1 has been created under details so i can't see it?</p> <p>Can any one help please?</p> <p>There is what i want: <img src="https://i.stack.imgur.com/S1y0M.jpg" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/NIuw4.png" alt="enter image description here"></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