RSS

Tag Archives: tab

Unity3D: how to implement Tabbed UI


Unity3D does not ship with the tabbed UI, however, we can cheat to implement this!

The key ideas include:

  • To use Toggle control
  • To make Toggle control look like a tab control

UnityTabDemo

The following code illustrates how this is done:

Read the rest of this entry »

Advertisements
 
3 Comments

Posted by on December 27, 2014 in Programming, Unity 3d

 

Tags: , , , , , , , , , ,

Firefox: return back to non-touch desktop version


The recent released firefox v29 offers a full-screen touch version, which is good! But if you wish to return back to the non-touch desktop version, here is how to:

  • On the bottom right of the screen, tap the menu button
  • Click “Relaunch in Desktop” menu item

fx28 win8 desktop

Done!

 
Leave a comment

Posted by on March 21, 2014 in General, Windows

 

Tags: , , , , , , , ,

Android tab control: the new way


Android SDK now deprecated TabActivity, as you can see the strike through symbol in previous post. Using the new Android SDK, it is preferred to use Fragment instead, and it is also pretty easy.

  • Create a new android project in Eclipse
  • Create two (as many as you like) activities Fragments in Eclipse:
    > Right click the Package Exporer, New > Other, or press Ctrl + N;
    > Select Android layout, name it fragment_tabpage1 and fragment_tabpage2


    image

Read the rest of this entry »

 
Leave a comment

Posted by on July 29, 2013 in Android, Programming

 

Tags: , , ,

Android tab control: the old way


  1. Create a new android project in Eclipse
  2. Create two (as many as you like) activities in Eclipse:
    1. Right click the Package Exporer, New > Other, or press Ctrl + N;
    2. Select Android Activity, name it Tabpage1 and Tabpage2
  3. Create a new Activity as the MainActivity, make sure it extends from TabActivity, instead of Activity.
  4. In MainActivity’s onCreate() function, add below code:

    image

  5. Build and run, that is it.

2013-07-23 11.20.36

 

 
1 Comment

Posted by on July 23, 2013 in Android, Programming

 

Tags: , , , , , ,