Wednesday, 6 June 2012

Simple Scrollview Demo

/* This is Simple Scrollview Demo Android */ main.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" > <ScrollView     android:id="@+id/scroller"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:fillViewport="true">     <LinearLayout        android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical">"    ...

Simple Ratingbar Demo

/* This is Simple Ratingbar Demo of Android */ main.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"     android:gravity="center">"      <RatingBar         android:id="@+id/ratingBar1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:numStars="5"         android:stepSize="1.0"         android:rating="2.0"/>  ...

Tuesday, 5 June 2012

Simple Listview Demo

/* This is Simple Listview Demo of Android */ main.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" >       <ListView         android:id="@+id/lstDemo"         android:layout_width="match_parent"         android:layout_height="wrap_content" >     </ListView> </LinearLayout>  ListViewDemoActivity.java package com.listviewdemo; import android.app.Activity; import android.os.Bundle; import android.view.View; import...

Simple Alert Dialogbox Demo

/* This is Simple Alert Dialogbox Demo of Android */ main.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" />     <Button         android:id="@+id/button1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"  ...

Monday, 4 June 2012

Simple Spinner Demo

/* This is Simple Spinner Demo of Android */ main.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" >     <Spinner         android:id="@+id/spnDemo"         android:layout_width="match_parent"         android:layout_height="wrap_content" /> </LinearLayout>  SpinnerDemoActivity.java package com.spinnerdemo; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import...

Simple Radio Group & Radio Button Demo

/* This is Simple Radio Group & Radio Button Demo of Android */ main.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" >     <RadioGroup         android:id="@+id/radioGroup1"         android:layout_width="wrap_content"         android:layout_height="wrap_content" >         <RadioButton             android:id="@+id/rdRed"             android:layout_width="wrap_content"  ...

Simple Check Box Demo

/* This is First Basic Demo of Check Box Android */ main.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" >     <CheckBox android:id="@+id/cb1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Male" />   <CheckBox android:id="@+id/cb2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Female" />     </LinearLayout> CheckboxDemoActivity.java package com.checkbox; import android.app.Activity; import...

Page 1 of 3123Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Host