[android-developers] Re: Help needed on BUtton CLick

2011-09-06 Thread DangerDaku
Try android:layout_marginRight=5dp attribute in ur xml file to get spacing on the right of the button. So somthing lik Button android:id=@+id/button1 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_marginRight=5dp/ On Sep 5, 2:57 am, sam

[android-developers] Re: Help needed on BUtton CLick

2011-09-06 Thread DangerDaku
In your screen1.xml file, add android:layout_marginTop=5dp, android:layout_marginBottom=5dp .. etc for top, bottom, left and right spacing. This is added as an attribute to ur Button tag. so you can have somthing like Button android:id=@+id/button1 android:layout_width=wrap_content

[android-developers] Re: Help needed on BUtton CLick

2011-09-05 Thread sam
Hi Michael , i was able to create two screen using Intent but i'm having a problem I have Screen1,Screen2,Screen3 In Screen1 i have two button, were clicking the button1 will take to the second screen and clicking the button2 will take to the third screen. When i click on the first button it

Re: [android-developers] Re: Help needed on BUtton CLick

2011-09-05 Thread Ratheesh Valamchuzhy
hi SAM public void onClick(View v) { switch(v.getId()) { case R.id.button1: startActivity(new Intent(Screen1.this,Screen2. class)); break; case R.id.button3:

[android-developers] Re: Help needed on BUtton CLick

2011-09-05 Thread sam
I got it fixed Ratheesh , i had a mistake in ma manifest file .. Can u please guide me how to set the space between the buttons ??? Regards, Sam On Sep 5, 11:53 am, Ratheesh Valamchuzhy android...@gmail.com wrote: hi SAM public void onClick(View v)        {                switch(v.getId())

Re: [android-developers] Re: Help needed on BUtton CLick

2011-09-05 Thread zheng wu
set the margin property of buttoneg:android:layout_margin='' 2011/9/5 sam hotdude...@gmail.com I got it fixed Ratheesh , i had a mistake in ma manifest file .. Can u please guide me how to set the space between the buttons ??? Regards, Sam On Sep 5, 11:53 am, Ratheesh Valamchuzhy