Android Development LabBy – Mr.Prajyot Mainkar ( @prajyotm)!
I Don’t Have Specific TalentI am just Passionately Curious…About Android !!
About Me
SOWHAT’s IN PLATEKEY TOPICSTopics	   Time	  Dura.on	  Introduc)on	   15	  mins	  Ge2ng	  Started	   15	  mins	  Android	  ...
THE FLAVORSABOUT ANDROID OSSource : developer.android.com
JELLY BEAN FEATURESDOYOU KNOW ANY ?
A Little About Jelly Bean• Everything in Jelly Bean feels fast, fluid, and smooth.• More reactive and uniform touch respon...
GOOGLE NOW
TALK TO TEXT• It too allows natural queries, providesequally natural responses (much likeSiri), and the voice output sound...
SMART APP UPDATES• Starting with Android 4.1 Jelly Bean,each paid app is encrypted with adevice specific key. Google hasen...
PROJECT BUTTER• Frame rate for animation is not set at60FPS• Reduces touch latency not only bysync, but now VSync timing• ...
ACTIONABLE NOTIFICATIONS• The new notifications come packed with moreinformation and actions, enough to help youperform al...
ANDROID PDK• PDK is hardware equivalent of an SDK for manufactures• PDK is supposed to help manufacturer to make devices f...
TYPE PREDICTION• Yes !! It serves are Mini-Swiftkey of Android• Accuracy is yet unknown, but certainly is betterthan defau...
SMARTER HOME SCREEN• The JB home screen takes a page out of theiOS book with the addition of auto-arrange. Thisfeature wil...
IMPROVED CAMERA APP• The Camera app has been improved to facilitate faster switching betweenthe camera viewfinder and capt...
ANDROID BEAM• you will be able to tap two NFC-enabled Android devices together to sharephotos and videos as well.
CHOOSEWHICH SUITSApp Designed Using Local Resourcesand is mobile os centric	  NATIVE APPLICATIONIntegrating app functional...
FINDING THEWAYANDROID ECOSYSTEM• Eclipse• SDK• Android Plug-in For Android• Other Components and Platform Integration
APP DEVELOPMENTKICKSTART APP STRUCTUREDefault Activity Other ActivityLibrariesServicesContent ProvidersAndroid ManifestLay...
SOMETHINGABOUT ANDROIDFacts That very Few KnowAndroid	  is	  a	  soJware	  stack	  for	  mobile	  device	  which	  include...
THE KICKSTARTABOUT FIRST ANDROIDSeptember 2008
THE TEXTVIEWEXECUTING TEXTVIEWFeatures of Edittext boxElement	  to	  View	  Text	  on	  GUI.	  textStyle,	  textColor	  ar...
THE EDITWAYEXECUTING EDITTEXTFeatures of Edittext boxEditText	  is	  a	  thin	  veneer	  over	  textview	  that	  configure...
THE EDITWAYEXECUTING EDITTEXTFeatures of Edittext boxpackage com.edittext;importandroid.app.Activity;importandroid.os.Bund...
THE IMAGEVIEWEMPLOYING IMAGESFeatures of Edittext box<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="ht...
THE CHECK(BOX)UNDERSTANDING CHECKBOXAdvance Checkbox FunctionsisChecked()	  is	  a	  func)on	  that	  is	  use	  to	  chec...
THE CHECK(BOX)UNDERSTANDING CHECKBOXpackage com.CB;import android.app.Activity;import android.os.Bundle;import android.wid...
THE BUTTONUNDERSTANDING BUTTONSimplicity UnleasedThere	  are	  2	  simple	  buTon	  controls	  for	  use	  within	  your	 ...
THE BUTTONUNDERSTANDING BUTTONSimplicity Unleased<TextView android:layout_width="fill_parent"android:layout_height="wrap_c...
THE BUTTONUNDERSTANDING BUTTONSimplicity Unleasedpackage com.Button;import android.app.Activity;import android.os.Bundle;i...
THE RADIO BUTTONMONO SELECTSimple, yet effective<?xml version="1.0" encoding="utf-8"?><RadioGroupxmlns:android="http://sch...
THE TOGGLE BUTTONUNDERSTANDING ON/OFFExtension to Button via XML<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:...
LINEAR LAYOUT CONCEPTVarious Linear Layout ParametersFill	  Model	  (	  layout	  :width	  and	  layout	  :	  height)	  	  ...
OTHER LAYOUT CONCEPTVarious Linear Layout ParametersRela.ve	  Layout	  Frame	  Layout	  Table	  Layout	  Absolute	  Layout...
LINEAR LAYOUT<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"...
LINEAR LAYOUTpackage com.LinearLayout;import android.app.Activity;import android.os.Bundle;import android.view.Gravity;imp...
THE OUTPUT
LET’s MERGE<?xml version="1.0" encoding="utf-8"?><RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"...
NOW,CHECK THE OUTPUT
SCROLL AND COLOR BACKGROUND<?xml version="1.0" encoding="utf-8"?><ScrollViewxmlns:android="http://schemas.android.com/apk/...
LET’s MERGE<TableRow><Viewandroid:layout_height="80px"android:background="#ffffaa" /><TextView android:text="#ffffaa"andro...
LETS USE FLIPPER<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/andr...
LETS USE FLIPPERpackage com.flipper;import android.app.Activity;import android.os.Bundle;import android.view.View;import a...
FONTSADDING EXTRA FLAVOR<?xml version="1.0" encoding="utf-8"?><TableLayoutxmlns:android="http://schemas.android.com/apk/re...
FONTSADDING EXTRA FLAVOR<TableRow><TextViewandroid:text="serif:"android:layout_marginRight="4px"android:textSize="20sp"/><...
ABOUT THE CLUBANDROCIDGoa’s Only ANDROID CLUBandIndia’s Only Android Community Blogwww.gaug.inwww.androcid.com
GET IN TOUCHCONTACT USAddress: SPM Softwares & Designers, Zarina Towers,St.Inez,Panaji GoaPhone: +91-9822987513Email: praj...
Upcoming SlideShare
Loading in...5
×

Android part1

556

Published on

summer school daiict

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
556
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Android part1"

  1. 1. Android Development LabBy – Mr.Prajyot Mainkar ( @prajyotm)!
  2. 2. I Don’t Have Specific TalentI am just Passionately Curious…About Android !!
  3. 3. About Me
  4. 4. SOWHAT’s IN PLATEKEY TOPICSTopics   Time  Dura.on  Introduc)on   15  mins  Ge2ng  Started   15  mins  Android  app  Fundamentals   15  mins  User  Interface  and  Controls   60  mins  Working  with  Text  Controls   60  mins  Graphic  and  Styling   30mins  Employing  Selec)on  Widgets   30mins  
  5. 5. THE FLAVORSABOUT ANDROID OSSource : developer.android.com
  6. 6. JELLY BEAN FEATURESDOYOU KNOW ANY ?
  7. 7. A Little About Jelly Bean• Everything in Jelly Bean feels fast, fluid, and smooth.• More reactive and uniform touch responses. Boot up time 34compared to Nexus’s 54• improved performance throughout the system, includingfaster orientation changes, faster responses when switchingbetween recent apps• Introduction of PDK, Project Butter, Google Now and manymore features
  8. 8. GOOGLE NOW
  9. 9. TALK TO TEXT• It too allows natural queries, providesequally natural responses (much likeSiri), and the voice output sounds muchmore human-like than any other.• Improved both in accuracy and turnaround time• Understands Indian accent to muchlarger scale• No data connection required as wholevocabulary library is ember red withinJelly Bean
  10. 10. SMART APP UPDATES• Starting with Android 4.1 Jelly Bean,each paid app is encrypted with adevice specific key. Google hasenabled “smart updates” – basically,they only send the part of the APK filethat has changed, not the whole app allover again.• Saves time and bandwidth
  11. 11. PROJECT BUTTER• Frame rate for animation is not set at60FPS• Reduces touch latency not only bysync, but now VSync timing• Triple buffering in graphic pipeline formore constancy in rendering thatmakes smoother from scroll to pagingand animation
  12. 12. ACTIONABLE NOTIFICATIONS• The new notifications come packed with moreinformation and actions, enough to help youperform all essential tasks from within thenotification drawer, without having to actuallylaunch each individual app.• You will be able to drag down on a notificationwith two fingers to expand it for extra info andoptions• Disable Notifications for individual apps
  13. 13. ANDROID PDK• PDK is hardware equivalent of an SDK for manufactures• PDK is supposed to help manufacturer to make devices for latestversions of android before that version actually launches• Fragmentation - would be tackled
  14. 14. TYPE PREDICTION• Yes !! It serves are Mini-Swiftkey of Android• Accuracy is yet unknown, but certainly is betterthan default keyboard.
  15. 15. SMARTER HOME SCREEN• The JB home screen takes a page out of theiOS book with the addition of auto-arrange. Thisfeature will automatically arrange both icons andwidgets for you as you move them around andbetween different home screens.• For example, if you move a widget to a homescreen that doesn’t have enough space for it,the widget will be resized to fit within the emptyspace on said screen.
  16. 16. IMPROVED CAMERA APP• The Camera app has been improved to facilitate faster switching betweenthe camera viewfinder and captured photos.• You can swipe in from the right of the screen to jump to your capturedphotos and pinch to switch to a new film strip view, where you can quicklyswipe a photo up off the screen to delete it. Accidental deletes can beundone.
  17. 17. ANDROID BEAM• you will be able to tap two NFC-enabled Android devices together to sharephotos and videos as well.
  18. 18. CHOOSEWHICH SUITSApp Designed Using Local Resourcesand is mobile os centric  NATIVE APPLICATIONIntegrating app functionality with webdevelopment techniques  MOBILE WEB APPLICATIONWri)ng  minimal  na)ve  UI  and  loading  web  services  for  data  transmission  over  server  NATIVE & WEB APPLICATIONUsing  the  respec)ve  model  to  create  cross  na)ve   apps   that   works   on   all   intended  targets  CROSS PLATFORM DEV TOOLSTYPES OF APPS
  19. 19. FINDING THEWAYANDROID ECOSYSTEM• Eclipse• SDK• Android Plug-in For Android• Other Components and Platform Integration
  20. 20. APP DEVELOPMENTKICKSTART APP STRUCTUREDefault Activity Other ActivityLibrariesServicesContent ProvidersAndroid ManifestLayout Values AssetsDrawableIntent
  21. 21. SOMETHINGABOUT ANDROIDFacts That very Few KnowAndroid  is  a  soJware  stack  for  mobile  device  which  includes  OS,  middleware  and  key  component/features.Google,  Google  Services,  IDE’s  and  Programming.Google  has  many  acquisi)on  and  it  is  soon  making  into  Cloud  Arena  
  22. 22. THE KICKSTARTABOUT FIRST ANDROIDSeptember 2008
  23. 23. THE TEXTVIEWEXECUTING TEXTVIEWFeatures of Edittext boxElement  to  View  Text  on  GUI.  textStyle,  textColor  are  some  of  its  element  type.  Import  android.widget.EditText  <?xml version="1.0" encoding="utf-8"?><TextView xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="wrap_content"android:text=”I’m at Goa University"/>  
  24. 24. THE EDITWAYEXECUTING EDITTEXTFeatures of Edittext boxEditText  is  a  thin  veneer  over  textview  that  configures  itself  to  be  editable    Import  android.widget.EditText  <?xml version="1.0" encoding="utf-8"?><EditText xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/field"android:layout_width="fill_parent"android:layout_height="fill_parent"android:singleLine="false"/>  
  25. 25. THE EDITWAYEXECUTING EDITTEXTFeatures of Edittext boxpackage com.edittext;importandroid.app.Activity;importandroid.os.Bundle;import android.widget.EditText;public class EdittextActivity extends Activity{@Overridepublic void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);setContentView(R.layout.main);EditText E=(EditText)findViewById(R.id.field);E.setText("Lets Have a Edit Text Demo.Have agreat day ahead. Cheers!");  
  26. 26. THE IMAGEVIEWEMPLOYING IMAGESFeatures of Edittext box<?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" ><ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/hello"android:src="@drawable/img"/></LinearLayout>  
  27. 27. THE CHECK(BOX)UNDERSTANDING CHECKBOXAdvance Checkbox FunctionsisChecked()  is  a  func)on  that  is  use  to  check  if  the  checkbox  has  been  checked.  CompoundBuDon.OnCheckedChangeListener()  interface  defini)on  for  a  callback  to  be  invoked  when  the  checked  state  of  a  compound  buTon  is  changed  <?xml version="1.0" encoding="utf-8"?><CheckBox xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/check"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="This checkbox is: unchecked" />  
  28. 28. THE CHECK(BOX)UNDERSTANDING CHECKBOXpackage com.CB;import android.app.Activity;import android.os.Bundle;import android.widget.CheckBox;import android.widget.CompoundButton;public class CheckboxActivity extends Activity implements CompoundButton.OnCheckedChangeListener {CheckBox cb;public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);cb=(CheckBox)findViewById(R.id.check);cb.setOnCheckedChangeListener(this);}public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {if (isChecked) {cb.setText("This checkbox is: checked");}else {cb.setText("This checkbox is: unchecked");}}}  
  29. 29. THE BUTTONUNDERSTANDING BUTTONSimplicity UnleasedThere  are  2  simple  buTon  controls  for  use  within  your  layouts:    BuTon  (android.widget.BuTon)    ImageBuTon  (android.widget.ImageBuTon)  <ImageBuTon                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:src="@drawable/skater"                    android:id="@+id/ImageBuTon01"                    android:layout_toRightOf="@+id/BuTon01"></ImageBuTon>    
  30. 30. THE BUTTONUNDERSTANDING BUTTONSimplicity Unleased<TextView android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/hello" /><Button android:id="@+id/button1"android:layout_height="wrap_content"android:text="Button 1"android:layout_weight="0.01"android:layout_width="96dp"/><Button android:id="@+id/button2"android:layout_height="wrap_content"android:text="Button 2"android:layout_weight="0.01"android:layout_width="97dp"/>  
  31. 31. THE BUTTONUNDERSTANDING BUTTONSimplicity Unleasedpackage com.Button;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.Toast;public class ButtonActivity extends Activity {public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);Button b1 = (Button) findViewById(R.id.button1);Button b2 = (Button) findViewById(R.id.button2);b1.setOnClickListener(new OnClickListener(){public void onClick(View v){Toast msg = Toast.makeText(getBaseContext(),"You haveclicked Button 1", Toast.LENGTH_LONG);msg.show();}});b2.setOnClickListener(new OnClickListener(){public void onClick(View v){Toast msg = Toast.makeText(getBaseContext(),"You haveclicked Button 2", Toast.LENGTH_LONG);msg.show();}});}}
  32. 32. THE RADIO BUTTONMONO SELECTSimple, yet effective<?xml version="1.0" encoding="utf-8"?><RadioGroupxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"><RadioButton android:id="@+id/radio1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Session" /><RadioButton android:id="@+id/radio2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="In" /><RadioButton android:id="@+id/radio3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text=“My Department" /></RadioGroup>  My Department
  33. 33. THE TOGGLE BUTTONUNDERSTANDING ON/OFFExtension to Button via 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" ><ToggleButtonandroid:id="@+id/toggleButton2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textOn="toggle_turn_on"android:textOff="toggle_turn_off"android:checked="true" /></LinearLayout>  
  34. 34. LINEAR LAYOUT CONCEPTVarious Linear Layout ParametersFill  Model  (  layout  :width  and  layout  :  height)    OrientaJon  (  Row  /  Colomn  )  Weight  (  How  are  the  spacing  between  two  widgets?)  Gravity(layout_gravity)  Padding(padding  leT,padding  right,padding  top,padding  boDom)  THE CONTAINERS
  35. 35. OTHER LAYOUT CONCEPTVarious Linear Layout ParametersRela.ve  Layout  Frame  Layout  Table  Layout  Absolute  Layout  
  36. 36. LINEAR LAYOUT<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent" ><RadioGroup android:id="@+id/orientation"android:orientation="horizontal"android:layout_width="wrap_content"android:layout_height="wrap_content"android:padding="5px"><RadioButtonandroid:id="@+id/horizontal"android:text="horizontal" /><RadioButtonandroid:id="@+id/vertical"android:text="vertical" /></RadioGroup><RadioGroup android:id="@+id/gravity"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:padding="5px"><RadioButtonandroid:id="@+id/left"android:text="left" /><RadioButtonandroid:id="@+id/center"android:text="center" /><RadioButtonandroid:id="@+id/right"android:text="right" /></RadioGroup></LinearLayout>
  37. 37. LINEAR LAYOUTpackage com.LinearLayout;import android.app.Activity;import android.os.Bundle;import android.view.Gravity;import android.widget.LinearLayout;import android.widget.RadioGroup;public class LinearLayoutActivity extends Activityimplements RadioGroup.OnCheckedChangeListener {RadioGroup orientation;RadioGroup gravity;public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);orientation=(RadioGroup)findViewById(R.id.orientation);orientation.setOnCheckedChangeListener(this);gravity=(RadioGroup)findViewById(R.id.gravity);gravity.setOnCheckedChangeListener(this);}public void onCheckedChanged(RadioGroup group, intcheckedId) {switch (checkedId) {case R.id.horizontal:orientation.setOrientation(LinearLayout.HORIZONTAL);break;case R.id.vertical:orientation.setOrientation(LinearLayout.VERTICAL);break;case R.id.left:gravity.setGravity(Gravity.LEFT);break;case R.id.center:gravity.setGravity(Gravity.CENTER_HORIZONTAL);break;case R.id.right:gravity.setGravity(Gravity.RIGHT);break;}}}
  38. 38. THE OUTPUT
  39. 39. LET’s MERGE<?xml version="1.0" encoding="utf-8"?><RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="wrap_content"android:padding="5px"><TextView android:id="@+id/label"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Name"android:layout_alignBaseline="@+id/entry"android:layout_alignParentLeft="true"/><EditTextandroid:id="@id/entry"android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_toRightOf="@id/label"android:layout_alignParentTop="true"/><Buttonandroid:id="@+id/ok"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@id/entry"android:layout_alignRight="@id/entry"android:text="OK" /><Buttonandroid:id="@+id/cancel"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_toLeftOf="@id/ok"android:layout_alignTop="@id/ok"android:text="Cancel" /></RelativeLayout>  
  40. 40. NOW,CHECK THE OUTPUT
  41. 41. SCROLL AND COLOR BACKGROUND<?xml version="1.0" encoding="utf-8"?><ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="wrap_content"><TableLayoutandroid:layout_width="fill_parent"android:layout_height="fill_parent"android:stretchColumns="0"><TableRow><Viewandroid:layout_height="80px"android:background="#ffffaa"/><TextView android:text="#ffffaa"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow><TableRow><Viewandroid:layout_height="80px"android:background="#884400" /><TextView android:text="#884400"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow><TableRow><Viewandroid:layout_height="80px"android:background="#ffffff" /><TextView android:text="#ffffff"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow><TableRow><Viewandroid:layout_height="80px"android:background="#aa8844" /><TextView android:text="#aa8844"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow><TableRow><Viewandroid:layout_height="80px"android:background="#ffaa88" /><TextView android:text="#ffaa88"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow>
  42. 42. LET’s MERGE<TableRow><Viewandroid:layout_height="80px"android:background="#ffffaa" /><TextView android:text="#ffffaa"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow><TableRow><Viewandroid:layout_height="80px"android:background="#aa8844" /><TextView android:text="#aa8844"android:paddingLeft="4px"android:layout_gravity="center_vertical" /></TableRow></TableLayout></ScrollView>
  43. 43. LETS USE FLIPPER<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"><Button android:id="@+id/flip_me"android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="Check This Out!!"/><ViewFlipper android:id="@+id/details"android:layout_width="fill_parent"android:layout_height="fill_parent"><TextViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:textStyle="bold"android:textColor="#FFFF0000"android:text="Thank you one and all"/><TextViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:textStyle="bold"android:textColor="#FF00FF00"android:text="For Joining in"/><TextViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:textStyle="bold"android:textColor="#FFFFFF33"android:text="For This Android Workshop"/></ViewFlipper></LinearLayout>
  44. 44. LETS USE FLIPPERpackage com.flipper;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.Button;import android.widget.ViewFlipper;public class FlipperActivity extends Activity {ViewFlipper flipper;public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);flipper=(ViewFlipper)findViewById(R.id.details);Button btn=(Button)findViewById(R.id.flip_me);btn.setOnClickListener(new View.OnClickListener() {public void onClick(View view) {flipper.showNext();}});}}
  45. 45. FONTSADDING EXTRA FLAVOR<?xml version="1.0" encoding="utf-8"?><TableLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:stretchColumns="1"><TableRow><TextViewandroid:text="sans:"android:layout_marginRight="4px"android:textSize="20sp"/><TextViewandroid:id="@+id/sans"android:text="Hello, Goa!"android:typeface="sans"android:textSize="20sp"/></TableRow>
  46. 46. FONTSADDING EXTRA FLAVOR<TableRow><TextViewandroid:text="serif:"android:layout_marginRight="4px"android:textSize="20sp"/><TextViewandroid:id="@+id/serif"android:text="Hello, Goa!"android:typeface="serif"android:textSize="20sp"/></TableRow><TableRow><TextViewandroid:text="monospace:"android:layout_marginRight="4px"android:textSize="20sp"/>
  47. 47. ABOUT THE CLUBANDROCIDGoa’s Only ANDROID CLUBandIndia’s Only Android Community Blogwww.gaug.inwww.androcid.com
  48. 48. GET IN TOUCHCONTACT USAddress: SPM Softwares & Designers, Zarina Towers,St.Inez,Panaji GoaPhone: +91-9822987513Email: prajyotm@msn.comhttp://facebook.com/prajyotmainkarhttp://twitter.com/prajyotmhttp://linkedin.com/in/prajyotm+ Prajyot Mainkar

×