meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android:views [2012/07/04 13:44]
esa-petri created
android:views [2012/07/05 15:48] (current)
esa-petri
Line 1: Line 1:
 =====Changing Views in Activity===== =====Changing Views in Activity=====
 +in Android switching between views is a way to keep information, which have been given by user [[http://www.codecamp.fi/doku.php/android/filehadling|without saving them to file]] or [[http://developer.android.com/reference/android/os/Parcelable.html|making them parceable]]. But unfortunately it also takes some work to get it working. Other solution to get same result [[http://www.codecamp.fi/doku.php/android/multibleactivities|is using multiple activities]]. 
 +tab pane is a way to make using multiple tabs easier.
  
- +Here is example of changing views in one activity. Also uses random, multiple threads, changing text colour,size of buttons and similar. 
-   * [[http://dl.dropbox.com/u/64923329/code/FileHandling.zip|FileHandling.zip]]+   * [[http://dl.dropbox.com/u/64923329/code/ViewExample.zip|ViewExample.zip]](code doesn't work at moment)
  
 links: links:
-   * http://www.aslingandastone.com/2011/dynamically-changing-android-views-with-xml-layouts/+   * http://stackoverflow.com/questions/2072244/android-what-is-better-multiple-activities-or-switching-views-manually 
 +   * http://www.anddev.org/how_to_switch_views_in_an_activity-t10063.html 
 +   * http://mortalpowers.com/news/how-to-get-current-layout-object-on-android 
 +   * http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Random.html 
 +   * http://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html