Download this Blogger Template by Clicking Here!

Ad 468 X 60

Share

Widgets

Friday, December 09, 2011

Widgets

 Analog Clock in Android :


# We have to create an Analog Clock :


   // Source Code of  registration.xml :


      <?xml version="1.0" encoding="utf-8"?>
      <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                         android:layout_width="fill_parent"
                         android:layout_height="fill_parent"
                         android:orientation="vertical" >

                                    <TextView
                                            android:layout_width="fill_parent"
                                            android:layout_height="wrap_content"
                                            android:text="@string/hello" />
 
                                         <AnalogClock 
                                                    android:id="@+id/clockanalog"
                                                    android:layout_width="fill_parent"
                                                    android:layout_height="fill_parent"/>
 
     </LinearLayout>

Output :





SHARE THIS POST   

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg
  • Technorati
Author: Mohammad
Mohammad is the founder of STC Network which offers Web Services and Online Business Solutions to clients around the globe. Read More →

0 comments: