[android-developers] Re: Animation seems slow

2008-11-11 Thread Rohit Mordani
imation is expensive. > > > > On Tue, Nov 11, 2008 at 2:29 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > Is there a particular reason as to why it will be slow? I have a grid > > of only 6 images (each image (png) is about 40Kb). > > > Rohit > >

[android-developers] Re: Animation seems slow

2008-11-11 Thread Rohit Mordani
x27;s gonna be slow on the G1 (unfortunately.) > > > > On Tue, Nov 11, 2008 at 1:27 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > Hmmm...ok - I thought that it might be trying to set the view to > > invisible while the animation is going on and that might cause

[android-developers] Re: Animation seems slow

2008-11-11 Thread Rohit Mordani
ROTECTED]> wrote: > Actually the way you did it earlier is simpler and is meant to work. > No need for a listener. > > > > On Tue, Nov 11, 2008 at 1:14 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > I moved to using an AnimationListener to make the view inv

[android-developers] Re: Animation seems slow

2008-11-11 Thread Rohit Mordani
01 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > I have a Grid View and it has 6 jpeg images. I am applying a scale and > alpha animation to that grid and then at the end of the animation i > set the visibility of that view to invisible. The animation seems > slow. I tried to use an

[android-developers] Animation seems slow

2008-11-11 Thread Rohit Mordani
I have a Grid View and it has 6 jpeg images. I am applying a scale and alpha animation to that grid and then at the end of the animation i set the visibility of that view to invisible. The animation seems slow. I tried to use an AccelerateInterpolator but that doesnt seem to help. Is there a way t

[android-developers] Re: Layout like android's Home Screen

2008-11-03 Thread Rohit Mordani
How do I attach this scroller to the ViewGroup? Does the constructor with the context do this? Rohit On Nov 3, 2:20 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > Hey Romain Guy, >         Can you tell me how to use a scroller? I tried to create a > scroller and then I called

[android-developers] Re: Layout like android's Home Screen

2008-11-03 Thread Rohit Mordani
Hey Romain Guy, Can you tell me how to use a scroller? I tried to create a scroller and then I called the startScroll() method on it but it didn't do anything. I am trying to scroll a Viewgroup (that is larger than the screen size) and has multiple children laid out side by side.

[android-developers] Re: Mouse Gesture for Navigation?

2008-11-03 Thread Rohit Mordani
Event(). Rohit On Oct 31, 1:05 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > In addition you need to do the following in your view: > > @Override > public boolean dispatchTouchEvent(MotionEvent ev){ >         return mGestureDetector.onTouchEvent(ev); > > } > > Thanks

[android-developers] Re: OnTouchListener

2008-11-03 Thread Rohit Mordani
Event(). Rohit On Oct 31, 1:05 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > In addition you need to do the following in your view: > > @Override > public boolean dispatchTouchEvent(MotionEvent ev){ >         return mGestureDetector.onTouchEvent(ev); > > } > > Thanks

[android-developers] Re: Gesture detection

2008-11-03 Thread Rohit Mordani
de a dispatch method, especially doing so and never calling > through to the super class. > > The correct thing is almost always to override onTouchEvent(). > > On Oct 31, 2:05 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > In addition I had to do the follow

[android-developers] Re: Mouse Gesture for Navigation?

2008-10-31 Thread Rohit Mordani
In addition you need to do the following in your view: @Override public boolean dispatchTouchEvent(MotionEvent ev){ return mGestureDetector.onTouchEvent(ev); } Thanks Rohit On Oct 31, 2:01 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > I got fling/swipe to work. In one of

[android-developers] Re: OnTouchListener

2008-10-31 Thread Rohit Mordani
In addition you need to do the following in your view: @Override public boolean dispatchTouchEvent(MotionEvent ev){ return mGestureDetector.onTouchEvent(ev); } Thanks Rohit On Oct 31, 2:02 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > I got fling/swipe to work. In one of

[android-developers] Re: Gesture detection

2008-10-31 Thread Rohit Mordani
In addition I had to do the following in my view: @Override public boolean dispatchTouchEvent(MotionEvent ev){ return mGestureDetector.onTouchEvent(ev); } Thanks Rohit On Oct 31, 1:59 pm, Rohit Mordani <[EMAIL PROTECTED]> wrote: > Hey Adam and Jason - thanks ! I tried out t

[android-developers] Re: OnTouchListener

2008-10-31 Thread Rohit Mordani
I got fling/swipe to work. In one of my other posts someone told me to do the following to make fling/swipe work 1) Set View.setLongClickable to true for the view you are using 2) Set GestureHandler.setIsLongpressEnabled to true 3) Return true in your onDown method Thanks Rohit On Oct 13, 4:55

[android-developers] Re: Mouse Gesture for Navigation?

2008-10-31 Thread Rohit Mordani
I and APIs have been > developed in the emulator.) > > > > On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > I THINK the problem is that in the emulator, pressing the left mouse > > button is more like a tap and that sets the MotionEv

[android-developers] Re: Gesture detection

2008-10-31 Thread Rohit Mordani
on > > On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > I am facing the same problem. The onFling() method is never called. > > > I THINK the problem is that in the emulator, pressing the left mouse > > button is more like a tap and t

[android-developers] Re: Gesture detection

2008-10-30 Thread Rohit Mordani
wrote: > Fling works perfectly in the emulator. It is also normal for onDown() > to be invoked. A fling is simply an onDown() followed by several > ACTION_MOVE MotionEvent then an onUp(). > > > > On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote: > &

[android-developers] Re: Gesture detection

2008-10-30 Thread Rohit Mordani
I am facing the same problem. The onFling() method is never called. I THINK the problem is that in the emulator, pressing the left mouse button is more like a tap and that sets the MotionEvent.Action to be ACTION_DOWN. As a result the onDown() method of the OnGestureListener is called instead of

[android-developers] Re: Mouse Gesture for Navigation?

2008-10-30 Thread Rohit Mordani
I THINK the problem is that in the emulator, pressing the left mouse button is more like a tap and that sets the MotionEvent.Action to be ACTION_DOWN. As a result the onDown() method of the OnGestureListener is called instead of onFling(). There might be a way to emulate the fling in the emulator

[android-developers] Re: Install Apps on G1

2008-10-17 Thread Rohit Mordani
Do you have a development G1? I have heard that you cannot install apps (via adb) on a production G1 phone Rohit On Oct 17, 2:38 am, Ari Block <[EMAIL PROTECTED]> wrote: > Hi All, > > I got the G1 and am having somw issues to install an app, > when i run this : "adb install  test.apk" > and get

[android-developers] Vertical tabs

2008-10-15 Thread Rohit Mordani
I have the following layout for tabs: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">

[android-developers] Re: Replacing Dialer, IM, and SMS Apps

2008-10-13 Thread Rohit Mordani
What I meant is - if I were to ship a device with the replacement app as the default (out of the box), rather than confusing the user. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: Replacing Dialer, IM, and SMS Apps

2008-10-13 Thread Rohit Mordani
r > to see, what it means to replace an app is that you handle the various > Intent activities etc that the built-in one does, so the user can > decide to use your app instead of the built-in one. > > On Oct 13, 11:36 am, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > > How

[android-developers] Re: Replacing Dialer, IM, and SMS Apps

2008-10-13 Thread Rohit Mordani
How about replacing the contacts app with your own - Is there any way to do that? Rohit On Sep 29, 8:00 pm, Xolotl Loki <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > > 2) Hidden Content Providers. The open access guarantees don't > > necessarily grant acce

[android-developers] Re: Overriding Contacts View

2008-10-09 Thread Rohit Mordani
Can you tell me how can you replace the entire app/activity? Rohit On Aug 29, 10:17 am, hackbod <[EMAIL PROTECTED]> wrote: > This isn't supported in 1.0.  You can only replace the entire > Dialtacts activity. > > On Aug 29, 6:44 am, chokoreto <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am tryi

[android-developers] Re: How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani
What do I need to override in that ListAdapter? If you know how to do this can you please elaborate? Thanks Rohit On Oct 2, 6:20 am, MrSnowflake <[EMAIL PROTECTED]> wrote: > Implement your own ListAdapter. > > On 2 okt, 01:06, Rohit Mordani <[EMAIL PROTECTED]> wrote: &g

[android-developers] How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani
Hi, I am accessing Contacts data and passing that into a list. I want to modify the data that I get from the database and then pass it to the list view. Is there a way to do that ? This is what my OnCreate() looks like. public void onCreate(Bundle savedInstanceState) { super.onCreat

[android-developers] Modifying data before passing it to a list

2008-10-02 Thread Rohit Mordani
Hi, I have an app that reads Contacts and displays them in a list. I want to modify some of the data before passing it to the list. Is that possible? Here is my applications OnCreate() method public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);