2013年8月5日星期一

gallery, ImageSwitcher, TextSwitcher used simultaneously issue

Brother have a project on hand, including a requirement for fear clear description with pictures to illustrate
just started with the thought that gallery, ImageSwitcher, TextSwitcher three control can be achieved, but later found ImageSwitcher, TextSwitcher to be used in public View makeView () {} method, which makes my brother can not start the! Seek expert to advise! There are other ways you can achieve!
------ Solution ---------------------------------------- ----

    
I rub you with the ditch was almost gone ....     
    
ah inner classes can be used to inherit interfaces using inner classes like this can distinguish    
  
  
  
brother, to say what specific point too general ah  


class ImageSwitcherTest extends Activity implements ViewFactory
This is used to return ImageView
Then follows an internal class returns TextView
text.setFactory (new ViewFactory () {
public View makeView () {
/ /
}
}
that are written in one way or two inner classes can also
------ For reference only --------------- ------------------------

how a people are not ah
------ For reference only ---------------------------- -----------
should not be so ah a nobody? ? ?
------ For reference only -------------------------------------- -
I rub the company's network can not see the map
But the problem was very sharp ah LZ I found I could not find any clue
But I was wondering if you direct new empty view returns okay but this part of the property can not set the example textSize other
------ For reference only ---------------------------------------


I rub you with the ditch was almost gone ....

ah inner classes can be used to inherit interfaces using inner classes like this can distinguish
------ For reference only ------- --------------------------------

  
I rub you with the ditch was almost gone ....   
  
ah inner classes can be used to inherit interfaces using inner classes like this can distinguish  


brother, to say what specific point too general ah

没有评论:

发表评论