title: Create Android TextSwitcher with a dynamically generated Textview
body: <p>I intend to create a gallery-like <code>TextSwitcher</code> with <code>TextView</code> like this:</p>
  
  <p>See image <a href="http://img441.imageshack.us/img441/5610/textp.png" rel="nofollow noreferrer">http://img441.imageshack.us/img441/5610/textp.png</a></p>
  
  <p>When I click on a selected <code>TextView</code>, an activity will be launched.</p>
  
  <p>I have read the Android API demo and many other posts, and I still cannot create anything like this. The APIdemo does not show me how to use <code>TextView</code> with <code>TextSwitcher</code>.</p>
  
  <p>I believe <a href="http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/android/widget/TextSwitcher.java.htm" rel="nofollow noreferrer">http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/android/widget/TextSwitcher.java.htm</a> is useful, but I do not know how to use this and link to my activity <code>onCreate</code> method and add in my dynamically generated <code>textview</code>.</p>
  
  <p>What would be a working solution together with the XML content?</p>