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@googlegroup
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 and
>
> 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
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 wrote:
> By View im sure he meant
>
> android:layout_height="fill_parent"/>
>
> set ur base activity's view to that and handle onClick in ur
By View im sure he meant
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 wrote:
> If that is all our app does is move from A to B then just put a view with
> height and w
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 wrote:
> try making the
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 wrote:
> 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 n
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 wrote:
> Is there any other way that u know i can achieve that .. cozz i dnt
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 wrote:
> There is also a method onTap() . I dono much about its functionalities . y
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 wrote:
> wat u mean by put a view??
>
> Can u give
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 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() method for
> that view.
>
11 matches
Mail list logo