Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am not sure what exactly you are trying to accomplish, but you can get rid of the warning by moving <code>FrameLayout</code> content to a separate file and add it back to your <code>TabHost</code> by using <code>&lt;include&gt;</code> tag.</p> <p>A possible version could look something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tabHost" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" /&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"&gt; &lt;include layout="@layout/tab_chat_list" /&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>And tab_chat_list.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;LinearLayout android:id="@+id/chat_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:visibility="visible" &gt; &lt;ListView android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:background="@color/white" &gt; &lt;/ListView&gt; &lt;LinearLayout android:id="@+id/text_entry" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="bottom" android:orientation="horizontal" &gt; &lt;EditText android:id="@+id/txt_inputText" android:layout_width="125dp" android:layout_height="wrap_content" android:layout_weight="0.8" android:hint="@string/enter_text" android:inputType="text" /&gt; &lt;Button android:id="@+id/btn_Send" android:layout_width="100dp" android:layout_height="wrap_content" android:layout_weight="0.2" android:text="@string/send" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/merge&gt; </code></pre> <p>Hope this helps.</p> <p><strong>Update</strong></p> <p><em>I noticed that some people are suggesting to remove <code>FrameLayout</code>. Although, that could have solved the problem in other cases, <code>TabHost</code> needs <code>TabWidget</code> and <code>FrameLayout</code> to function correctly.</em></p>
    singulars
    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