Note that there are some explanatory texts on larger screens.

plurals
  1. POFragmentTabHost graphical layout doesn't render
    primarykey
    data
    text
    <p>The graphical layout for a simple android.support.v4.app.FragmentTabHost never renders in either Eclipse or Android Studio.<br> The Console error I get is consistently:<br> <code>Exception raised during rendering: No tab known for tag null</code></p> <p>I'm using the most basic XML file:</p> <pre><code>&lt;android.support.v4.app.FragmentTabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;TabWidget android:id="@android:id/tabs" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0"/&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0"/&gt; &lt;FrameLayout android:id="@+id/realtabcontent" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"/&gt; &lt;/LinearLayout&gt; &lt;/android.support.v4.app.FragmentTabHost&gt; </code></pre> <p>but the same error occurs. </p> <p>I just wanted to add more views above or below the tab widget and frame layout.<br> I don't care so much about seeing the tab content; I just want to see <em>the rest of my layout</em> - <strong>but the problem is that NO OTHER VIEWS are rendered when a</strong> <code>android.support.v4.app.FragmentTabHost</code> <strong>resides in the layout</strong>. </p> <p>I've read and tried to resolve the issue from the answer to this post:<br> <a href="https://stackoverflow.com/questions/13408709/android-tabs-at-the-bottom-with-fragmenttabhost">Android: Tabs at the bottom with FragmentTabHost</a><br> but I don't think that that is my problem; I'm not looking to put a TabWidget on the bottom.</p> <p>Every other one of my XML files opens perfectly. </p> <p>The same problem occurs in Android Studio:<br> <img src="https://i.stack.imgur.com/uGe6T.png" alt="Android Studio doesn&#39;t render this either"></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.
 

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