[android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread DangerDaku
By View im sure he meant View android:id=@+id/top_view android:layout_height=fill_parent android:layout_height=fill_parent/ set ur base activity's view to that and handle onClick in ur activity. then in onClick u can do startActivity to bring up the next activity. On Sep 6, 2:07 pm, Appaholics

[android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread sam
DangerDaku , see i'm able to startactivity by onClick but i need to startactivity by onTap ... Hope ma doubt is clear now On Sep 7, 7:45 pm, DangerDaku shub.kan...@gmail.com wrote: By View im sure he meant View android:id=@+id/top_view android:layout_height=fill_parent

[android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread rich friedel
See nrmally when we have a button in a page in the onClick(View v ){ if(btn1==v) { startActivity(new Intent(FirstScreenActivity.this,SecondScreenActivity.class)); } } If that is the way you are doing it then I would (as others have) recommend reading up on how to listen and

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread sai krishna
Thanks a lot rich .. i got worked this way package pack.GestureSampleThree; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.GestureDetector.OnGestureListener; import

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread rich friedel
Nice! as a side note... you might want to throw the @Override annotation on your overridden methods from OnGestureListener -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread sam
wat u mean by put a view?? Can u give a brief explanation please ?? i'm new to android On Sep 6, 11:07 pm, Appaholics raghavs...@appaholics.in wrote: If that is all our app does is move from A to B then just put a view with height and width set the fill_parent and implement the onClick()

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread Appaholics
Your layout is basically an extension of the view class. Read the docs up. In your onClick method you will need to pass the view as a parameter. See the documentation at http://developer.android.com/ Thanks On Tue, Sep 6, 2011 at 11:52 PM, sam hotdude...@gmail.com wrote: wat u mean by put a

[android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread sam
Is there any other way that u know i can achieve that .. cozz i dnt want to keep a button the first screen .. i just need to touch the screen to get into the second screen .. On Sep 6, 11:31 pm, Logesh rajendren loges...@gmail.com wrote: There is also a method onTap() . I dono much about its

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread Appaholics
This will work. Read up on android:id. Check the id of the click. If it is the button then do what you need to with the button, otherwise do what you need to with the screen. Thanks On Wed, Sep 7, 2011 at 12:05 AM, sam hotdude...@gmail.com wrote: Is there any other way that u know i can

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread Logesh rajendren
try making the whole first page as a button , so that it looks better . But I dono if its feasible because me too new to android. On Tue, Sep 6, 2011 at 11:35 AM, sam hotdude...@gmail.com wrote: Is there any other way that u know i can achieve that .. cozz i dnt want to keep a button the first

[android-developers] Re: How to use Tap Gesture???

2011-09-06 Thread sam
See nrmally when we have a button in a page in the onClick(View v ){ if(btn1==v) { startActivity(new Intent(FirstScreenActivity.this,SecondScreenActivity.class)); } } for a touch how will can we co-ordinate .. this is ma doubt .. On Sep 6, 11:40 pm, Logesh rajendren loges...@gmail.com