android - How top set tab icon and label in FragmentTabHost -


I icons and labels together to implement the tab'm using Fragmenttabhost, but the following sentence label only displays

  mTabHost.addTab (mTabHost.newTabSpec ( "simple"). Setindiketr ( "simple", getResources (). GetDrawable (R.drawable.ic_launcher)), Fragment 1. class, B);   

I work properly anywhere

  setIndicator (see);   

But I do not know the syntax for setting custom view in the setIndicator

plz help thanks ...

I am creating a custom view and setting it as a set indicator (View V);

  see chat View = LayoutInflater.from (this). Increased (R.layout.chat_icon, tap); MTabHost.addTab (mTabHost.newTabSpec ("Simple"). SetCentator (chatView), Piece-1 class, B);    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -