Note that there are some explanatory texts on larger screens.

plurals
  1. POListActivity is not showing up when added as content of a TabActivity
    primarykey
    data
    text
    <p>I'm trying to present a ListActivity in a TabActivity, and for some reason the ListActivities simply will not show up. All I get is a blank space beneath the tabs.</p> <p>TabActivity: <a href="https://picasaweb.google.com/FlyingYellow/Misc#5629459368100202146" rel="nofollow">https://picasaweb.google.com/FlyingYellow/Misc#5629459368100202146</a> ListActivity: <a href="https://picasaweb.google.com/FlyingYellow/Misc#5629459406832281026" rel="nofollow">https://picasaweb.google.com/FlyingYellow/Misc#5629459406832281026</a></p> <p>I have absolutely no idea why this is happening. I've searched around and have only found posts about input issues. I can't even get my content to display! </p> <p><strong>TabActivity.onCreate()</strong></p> <pre><code> super.onCreate(savedInstanceState); setContentView(R.layout.browser); Resources res = getResources(); TabHost tabHost = getTabHost(); TabHost.TabSpec spec; Intent intent; intent = new Intent(this, ArtistBrowser.class); spec = tabHost.newTabSpec("artists").setIndicator("Artists", res.getDrawable(R.drawable.ic_tab_artists)); spec.setContent(intent); tabHost.addTab(spec); intent = new Intent(this, AlbumBrowser.class); spec = tabHost.newTabSpec("albums").setIndicator("Albums", res.getDrawable(R.drawable.ic_tab_artists)); spec.setContent(intent); tabHost.addTab(spec); intent = new Intent(this, TrackBrowser.class); spec = tabHost.newTabSpec("tracks").setIndicator("Tracks", res.getDrawable(R.drawable.ic_tab_artists)); spec.setContent(intent); tabHost.addTab(spec); tabHost.setCurrentTab(0); </code></pre> <p>(I followed the Android docs tutorial)</p> <p><strong>/res/layout/browser.xml</strong></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="@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" android:padding="5dp"&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; &lt;--- this was the error &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="5dp" /&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre>
    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. This table or related slice is empty.
    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