Posts

Showing posts from July, 2014

5 Ways to handle button click event in android

Image
When writing software very rarely is there only one way to do this things,this is true when wiring up View events,five methods are shown here. 1.U sing   Member   Class public   class  main  extends  Activity  {     @Override      public   void  onCreate ( Bundle savedInstanceState )   {          super . onCreate ( savedInstanceState ) ;         setContentView ( R. layout . main ) ;          //attach an instance of HandleClick to the Button         findViewById ( R. id . button1 ) . setOnClickListener ( new  HandleClick ( ) ) ;      }           private   class  HandleClick  implements  OnClickListener {          public   void  onClick ( View  arg0 )   {          Button  btn  =   ( Button ) arg0 ;      //cast view to a button          // get a reference to the TextView         TextView tv  =   ( TextView )  findViewById ( R. id . textview1 ) ;          // update the TextView text         tv. setText ( "You pressed "   +

Simple File System Watcher in C#

Image
In this article I describe the usage of the FileSystemWatcher controller provided by .Net Framework , using C# More information about FileSystemWatcher In C# is here.. Source Code :

Android Activity Animation Tutorial

Image
In this tutorial you can learn how to animate two activities like android navigation drawer style. Android two activity animation like navigation drawer. First of all create 2 activities. MainActivity SubActivity Then 2 XML Files (simple way two xml enough,but we need another two xml to accomplish reverse animation) slide_in_left.xml slide_out_left.xml