I have managed to get it sorted now, i have added the custom title
code to the class file with the tabs in it and you need to call
requestwindowfeature before calling setContentView

I will post the code later in case someone else has that problem

On Sep 22, 10:17 pm, Miguel Morales <[email protected]> wrote:
> You need to post more code.
> Not sure what you're trying to do in that bit of code, but you usually
> set tab titles like so:
>
>        TabHost tabs = (TabHost) findViewById(R.id.MyTabHost);
>         tabs.setup();
>
>         TabSpec ts = tabs.newTabSpec("TAB_TAG_1");
>         ts.setIndicator("System");
>         ts.setContent(R.id.mylayout);
>
>         tabs.addTab(ts);
>
>
>
>
>
> On Wed, Sep 22, 2010 at 2:14 PM, jonny27 <[email protected]> wrote:
> > I thought that at the start unfortunately i cant see what else could
> > be causing this as the only other thing i do on the activity is tabs
> > and a listview
>
> > On Sep 22, 9:51 pm, Kumar Bibek <[email protected]> wrote:
> >> This error has nothing to do with TabHost. You are probably using two
> >> custom title features simultaneously, which is not allowed.
>
> >> Although, from your code, I am not sure what you are doing wrong.
> >> -Kumar Bibekhttp://techdroid.kbeanie.com
>
> >> On Sep 23, 1:46 am, jonny27 <[email protected]> wrote:
>
> >> > Hi I want to set the custom title for the tab host.
>
> >> > I used the following code:
> >> > requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
> >> >  getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
> >> > R.layout.custom_title_2);
> >> >         final TextView leftText = (TextView) findViewById
> >> > (R.id.left_text);
> >> >         leftText.setText("my custom title");
>
> >> > But it is giving error as:
> >> > android.util.AndroidRuntimeException: You cannot combine custom
> >> > titles
> >> > with other title features
>
> >> > Is it possible to use custom titles with tab host?
>
> >> > Thanks for any help
>
> >> > Jonathan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> ~ Jeremiah:9:23-24
> Android 2D 
> MMORPG:http://developingthedream.blogspot.com/,http://diastrofunk.com,http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to