RSS

Tag Archives: UI

Android Automated UI Testing with Expresso (I)


I have been trying to write a few articles on Android automated UI testing for a long time, ever since my last job when we started experimenting using Expresso in our commercial Android App.

This article outlines the simplest UI testing with Expresso, with step-by-step snapshots for beginners to walk through.

simpleuitesting_activities

Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on November 25, 2016 in Android

 

Tags: , , , ,

Unity3D: Animated UI using ui camera


You might have seen many animated UI examples in games, for instance, in the cut the rope game, when you press the exit button, you can see animated UI pops up, which looks super cool!

Now, the question is, how do we implement the same effect using Unity3D? In this post, I am going to show you how this can be easily done with a step-by-step demo.

Read the rest of this entry »

 
Leave a comment

Posted by on October 6, 2014 in Unity 3d

 

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: , , , , , ,

Rhino C# Development (III) : Add Winform UI to Rhino


Rhino C# Development (I) : Get Visual Studio Wizard ready
Rhino C# Development (II) : HelloRhino


Now that we are able to talk with Rhino, let’s add our own UI to Rhino. In Rhino 5 with RhinoCommon SDK and Rhino_DotNet, you can easily add .net Winform User Control to Rhino.

image

Read the rest of this entry »

 
4 Comments

Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming

 

Tags: , , , , , , ,

C++: Show Full Screen Images in a UI (Part II: Using Openframework)


One of my colleague recommended me using Openframework to implement the program to show a full screen image. See more details in this previous blog.

So I first created an application class FullScreenApp, which derives from ofBaseApp:

image 

An ofImage object is then introduced, and the update() and draw() function is overriden:

image

In the main() function, call the below code:

image

Here the code to load background image and process command line argument is skipped since it is fairly simple and straightforward.

Build and Run! Happy coding!

 
Leave a comment

Posted by on June 6, 2012 in Programming

 

Tags: , , , , ,