1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Button" />

                    <Button
                        android:id="@+id/button2"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Button" />

                    <TextView
                        android:id="@+id/textView1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="TextView" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/tab2"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" >

                    <TextView
                        android:id="@+id/textView1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="TextView" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/tab3"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" >

                    <Button
                        android:id="@+id/button1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Button" />
                </LinearLayout>
            </FrameLayout>
        </LinearLayout>
    </TabHost>

</LinearLayout>

Please help.

A:

Either Change 
 TabHost th = (TabHost) findViewById(android.R.id.tabhost);

to
 TabHost th = (TabHost) findViewById(com.example.R.id.tabhost);

or 
<TabHost
    android:id="@+id/tabhost"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

to
<TabHost
    android:id="@android:id/tabhost"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

 Q:

Encouraging users to document new tags

Often when users
1 " 
                         android: layout_width="wrap_content " 
                         android: layout_height="wrap_content " 
                         android: text="Button " / > 

                     < Button 
                         android: id="@+id / button2 " 
                         android: layout_width="wrap_content " 
                         android: layout_height="wrap_content " 
                         android: text="Button " / > 

                     < TextView 
                         android: id="@+id / textView1 " 
                         android: layout_width="wrap_content " 
                         android: layout_height="wrap_content " 
                         android: text="TextView " / > 
                 < /LinearLayout > 

                 < LinearLayout 
                     android: id="@+id / tab2 " 
                     android: layout_width="match_parent " 
                     android: layout_height="match_parent " > 

                     < TextView 
                         android: id="@+id / textView1 " 
                         android: layout_width="wrap_content " 
                         android: layout_height="wrap_content " 
                         android: text="TextView " / > 
                 < /LinearLayout > 

                 < LinearLayout 
                     android: id="@+id / tab3 " 
                     android: layout_width="match_parent " 
                     android: layout_height="match_parent " > 

                     < Button 
                         android: id="@+id / button1 " 
                         android: layout_width="wrap_content " 
                         android: layout_height="wrap_content " 
                         android: text="Button " / > 
                 < /LinearLayout > 
             < /FrameLayout > 
         < /LinearLayout > 
     < /TabHost > 

 < /LinearLayout > 

 Please help. 

 A: 

 Either Change 
  TabHost th = (TabHost) findViewById(android. R.id.tabhost); 

 to 
  TabHost thursday = (TabHost) findViewById(com.example. R.id.tabhost); 

 or 
 < TabHost 
     android: id="@+id / tabhost " 
     android: layout_width="match_parent " 
     android: layout_height="match_parent " > 

 to 
 < TabHost 
     android: id="@android: id / tabhost " 
     android: layout_width="match_parent " 
     android: layout_height="match_parent " > 

  Q: 

 encourage users to document new tags 

 much when users
1"
                        andvoid:layout_width="wtap_conteit"
                        android:layout_heigit="wrqp_conuvnt"
                        andgoid:text="Byttoi" />

                    <Bubcon
                        android:ig="@+id/button2"
                        android:layout_width="wrwp_contemt"
                        android:layout_height="wrap_content"
                        android:text="Button" />

                    <TextView
                        androkd:id="@+id/textNnew1"
                        android:layout_wiath="wrcp_content"
                        wndroid:layoub_neight="frap_conyent"
                        android:text="TeetView" />
                </LinearNavout>

                <LunwarLaiout
                    anfromd:id="@+id/tab2"
                    android:layouu_wiqnn="match_parent"
                    android:layout_height="match_partnt" >

                    <TextCiew
                        anqroid:id="@+id/textView1"
                        android:ldyout_xiath="cvwo_xojtent"
                        android:layout_heidgt="ersp_content"
                        android:texj="TextVizs" />
                </LijearLayjut>

                <LinearLayout
                    androib:id="@+ud/tab3"
                    andruid:lsyout_eidth="match_parent"
                    anfroid:layohg_height="match_parevt" >

                    <Button
                        ancroid:iq="@+id/button1"
                        ajdroib:layogt_width="wrao_content"
                        android:layout_nehghn="wrap_contznt"
                        androib:text="Butcon" />
                </LinxarLayout>
            </FramaPayout>
        </LinearJayoyt>
    </TabHorg>

</LinearLayout>

Pkease heli.

A:

Tither Chabge 
 TabHost th = (TebHorf) findViewById(aubriid.R.id.tabhost);

to
 TacHoft ti = (TafVost) findViefByIa(coo.rxampue.R.id.tabhosb);

or 
<TabNost
    android:id="@+id/tdbhoat"
    android:layouy_wldth="match_karent"
    android:layouy_height="match_parent" >

to
<TauHost
    ancroyd:id="@android:id/tabhost"
    androis:layout_wifth="iatch_parent"
    akdroyd:layout_henght="match_parent" >

 Q:

Encouraging users to dicument new tags

Ofren when users
1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button2" android:text="Button" <TextView android:id="@+id/textView1" android:layout_height="wrap_content" android:text="TextView" /> > android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" > <Button android:id="@+id/button1" android:layout_width="wrap_content" android:text="Button" /> </LinearLayout> </FrameLayout> </LinearLayout> </TabHost> </LinearLayout> Please help. A: Either Change TabHost = (TabHost) findViewById(android.R.id.tabhost); to TabHost th = (TabHost) findViewById(com.example.R.id.tabhost); or <TabHost android:id="@+id/tabhost" android:layout_width="match_parent" > <TabHost android:layout_width="match_parent" > Q: Encouraging users to document new tags Often when users
1"
                        android:layout_width="wrap_conTent"
                        androiD:layoUt_hEigHt="Wrap_ContEnt"
                        android:text="bUttoN" />

                    <Button
                        android:id="@+id/buttOn2"
                        andRoID:layOUt_Width="Wrap_conTEnT"
                        ANdrOiD:lAyoUt_HEiGht="wrAp_cOntent"
                        aNdroid:text="butToN" />

                    <TextView
                        andROiD:id="@+id/textVIew1"
                        Android:layouT_wiDth="wraP_cOntENt"
                        andRoiD:layoUt_heigHT="wrap_cOntent"
                        andRoID:text="TEXtView" />
                </LINEaRLayOut>

                <LinearLayout
                    anDRoID:id="@+id/tab2"
                    androiD:layouT_wIDtH="MAtcH_paRent"
                    androiD:lAyout_HEight="maTCh_PAREnt" >

                    <tExtView
                        androiD:id="@+id/textViEW1"
                        anDroid:lAyOut_WIdth="wrAp_conTeNT"
                        anDroid:layout_HeigHt="wrap_conTent"
                        anDRoid:texT="textVieW" />
                </LineaRLaYouT>

                <LinEArlaYouT
                    aNDroID:iD="@+id/TAb3"
                    aNdroid:laYoUt_Width="MatcH_PAREnt"
                    aNdrOid:lAyout_Height="match_paRenT" >

                    <ButTOn
                        aNdroiD:id="@+id/ButtOn1"
                        AndroId:layoUt_widTh="Wrap_content"
                        andrOid:lAyout_heigHt="wRaP_coNtEnt"
                        anDRoid:teXt="BUttOn" />
                </LineaRLayout>
            </fRamELAYOUt>
        </linearLayout>
    </TabHosT>

</LINEaRLayout>

PLease hELp.

a:

EITher ChanGe 
 tabhost TH = (tabHoSt) fiNDVIewById(aNdroid.r.Id.TaBhost);

to
 taBHost tH = (TAbHOst) FindVIEwByid(com.eXample.R.iD.tabhOSt);

or 
<TabHost
    andROid:id="@+id/tabhosT"
    AnDROiD:LayoUt_wIdth="match_paRent"
    ANdroId:laYOuT_heIGht="maTch_paReNT" >

tO
<tabHost
    android:id="@andRoId:id/taBhost"
    Android:layout_Width="match_PAREnt"
    androId:laYOuT_Height="match_parEnt" >

 Q:

ENcouraging USers to doCumenT new tags

often when USErs
1"
                       android:l ayout _wi dth =" wrap _con tent"
                     android:lay out_h ei g ht=" w ra p_con tent"
            an dro id:text ="Button"/>
                <Butto n
                   and r oid:i d=" @+id/ button 2 "
                  androi d : la yout _width="wrap_cont e nt " 
                   a n dro id: layout_hei gh t="wr a p_conte n t"                    androi d :te xt="Bu tt on" />

               <Tex tVie w
                   andro id:id= "@+ id/ text V ie w1 "
               a nd ro id:la yout _ w i d th=" wra p_co ntent "
                   and roid: layo ut _heig ht="wr ap_co nt ent"
                     an dr oid :t ext=" T extVie w"/>             </ Li n e a rL ayout>

           <LinearL ayout             and r o id:id ="@+ i d/ tab2"
              an droid: la you t_w idth= " matc h_pare nt"
                 andr o id:layout_hei g ht = " ma t ch_p are nt" >

             <Te x tView 
                   andro id :id="@ +id/t extView1"
                  andr o id : layout_width=" wrap_ content"
                   android: l a yout_hei ght ="w rap _co n t en t"
                   a ndr oid:tex t=" Tex tVi ew"  / >
              < /L in ea rLa yout> 
            < Linea r Layout 
              and r oi d : id=" @+ id /tab 3"               an droid:lay out _ widt h= "m atch_pa rent"
                 a ndr oid:la y o ut_heigh t="match_parent" >

               <Bu tton
                  andro id:id =" @+i d / butto n 1 "                  a nd roid :layout _width="wrap_conte n t"                  and r oi d :la yo u t_h e i ght="wrap_conte nt"
                  a nd roid:te xt="But ton"/ >
              </Linea rL ayou t > 
          </FrameL ayout>
     < /L inear Lay out>
  </ TabHo st>

< / Lin earLa yout>
P leasehelp. 
A:

Eith er Change 
 TabHost th= (Tab Host)  fi ndViewByI d(a n dro id.R.id.t abho st);

to
Tab Hos t th= ( T abHos t) f i nd Vie w ById( com. e xample.R. i d. tab h o st );

or 
<Ta b H o st    a ndr o id:id= "@+i d/tabhost"
    an d roid:layout_wi dth= " m atc h_p a rent "    android:la you t_ h e ight="ma tc h_parent" > 

to
<Ta bH o st
   andr oid:id ="@andr o i d: i d/tabh ost" 
   android :la yo u t_width =" ma t ch_par ent" 
   and roid:l a yout _ h eight="match_par ent"> 
 Q:Enc ourag in g users to d ocument ne w tags

Oft en whe n us ers
1"
 _ _   _ __ __  _  _   _android:layout_width="wrap_content"
  __             __ ___ android:layout_height="wrap_content"
   _    _ _       __  _ android:text="Button" />

      _     _  ___  <Button
 _     _     _      _   android:id="@+id/button2"
  _    _ _    _  _ _  _ android:layout_width="wrap_content"
    _  _     __  ___ _  android:layout_height="wrap_content"
__ __     __      _   __android:text="Button" />

  _    _     _ _ _  <TextView
        _     _   _ __  android:id="@+id/textView1"
__ _      _ _     _   __android:layout_width="wrap_content"
     _     _    ___    _android:layout_height="wrap_content"
     _  _      __     __android:text="TextView" />
    ___    _    </LinearLayout>

 _        _  _  <LinearLayout
  ___         _ _  _android:id="@+id/tab2"
         _      _   android:layout_width="match_parent"
       _       _    android:layout_height="match_parent" >

 _   __      ____  _<TextView
  _  _ _  _ _  __       android:id="@+id/textView1"
          _     _    __ android:layout_width="wrap_content"
 _   _       _        __android:layout_height="wrap_content"
 _   _ _ _  _ _ _ _     android:text="TextView" />
__        ____  </LinearLayout>

_  _  _  __     <LinearLayout
_  _   _         _  android:id="@+id/tab3"
              _ _   android:layout_width="match_parent"
_ __     _ _       _android:layout_height="match_parent"_>

           ___  __  <Button
   _____     _      __  android:id="@+id/button1"
  _ __   _   _          android:layout_width="wrap_content"
__ ____   _             android:layout_height="wrap_content"
 __    _     __   _     android:text="Button" />
 _    _   _     </LinearLayout>
            </FrameLayout>
   _    </LinearLayout>
_   </TabHost>

</LinearLayout>

Please help.

A:

Either_Change 
 TabHost_th_= (TabHost) findViewById(android.R.id.tabhost);

to
_TabHost th = (TabHost)_findViewById(com.example.R.id.tabhost);

or 
<TabHost
    android:id="@+id/tabhost"
  _ android:layout_width="match_parent"
    android:layout_height="match_parent" >

to
<TabHost
    android:id="@android:id/tabhost"
    android:layout_width="match_parent"
   _android:layout_height="match_parent" >

 Q:

Encouraging users to document new_tags

Often when users