RE: [android-developers] Scrolling ListView manually by pixels

2010-07-14 Thread Ericson, Anders
Hi, You can inject motion events to your ListView that corresponds to a 10 pixel drag. Create an ACTION_DOWN event and then an ACTION_UP event 10 pixels apart and then send them to the ListView using onTouchEvent(). You might need to have a ACTION_MOVE event as well. /Anders -Original Me

RE: [android-developers] Re: Bounce animation

2010-07-14 Thread Ericson, Anders
Bouncing as you describe it is not supported in ListView. It is possible to lift the ListView class from the platform and modify it to support it (most of the necessary changes are in AbsListView btw), but I don't recommend that approach. Instead, I would recommend that you implement your own li

RE: [android-developers] Re: Carousel like Gallery.

2010-06-23 Thread Ericson, Anders
I don't think that is possible. You probably need to write your own gallery like view to do that. /Anders -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of RANJAN BANIK Sent: den 23 juni 2010 17:05 To: Android Develope

RE: [android-developers] How to launch browser from wallpaper?

2010-06-17 Thread Ericson, Anders
Hi, Doing Activity activity = new Activity() is probably not a good idea. instead, get the application context from the wallpaper: getApplicationContext().startActivity(i); That will probably work better. /Anders -Original Message- From: android-developers@googlegroups.com [mailto:an

RE: [android-developers] Placing a bitmap image in ImageView

2010-06-09 Thread Ericson, Anders
Sounds like you want to change the scale type on the image view. http://developer.android.com/reference/android/widget/ImageView.ScaleType.html /Anders -- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of pawan nimje Sent: den 9

RE: [android-developers] Dynamically obtaining several instance of a view item defined in layout/xml file

2010-06-09 Thread Ericson, Anders
Hi, Just inflate from the xml each time you want a new instance of that particular view. Like this: View innerRL = LayoutInflater.from(context).inflate(R.layout.inner_view, null); /Anders -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegro

RE: [android-developers] Is Android's onTouchEvent() dispatching accurate??

2010-06-09 Thread Ericson, Anders
I would say that this is normal behavior. The up-event can definitely have (and often has) another coordinate than the last move-event. But I don't think it has anything to do with inaccuracy in the touch event handling, it's simply the way it works... /Anders -Original Message- From:

RE: [android-developers] Re: Android graphical capabilities

2010-06-04 Thread Ericson, Anders
finishing touches from part 3! On Jun 3, 2:18 pm, "Ericson, Anders" wrote: > The reference app on market has minSdkVersion set to 4 (=1.6) and the main > reason is to enable the support for different screen sizes (mdpi, ldpi, > hdpi). The code itself has very little (if any)

RE: [android-developers] how to enable onItemClick for custom list view

2010-06-03 Thread Ericson, Anders
Hi, The way it works is that if your list item (or a part of your list item) is clickable (like the button) it will "steal" the touch event from the ListView, so the ListView will not be able to call onItemClick(). One way to solve it is to set a click listener to the button in each item view.

RE: [android-developers] Re: Android graphical capabilities

2010-06-03 Thread Ericson, Anders
uld you resolve that if you wanted your app to reach all devices? On Jun 3, 11:37 am, "Ericson, Anders" wrote: > Hi, > > I recently wrote a tutorial on how to do a cool 3D list. You can find the > latest part on: > > http://blogs.sonyericsson.com/developerworld/catego

RE: [android-developers] Android graphical capabilities

2010-06-03 Thread Ericson, Anders
Hi, I recently wrote a tutorial on how to do a cool 3D list. You can find the latest part on: http://blogs.sonyericsson.com/developerworld/category/tutorials/ There you can also find a tutorial on how to do a cool zoom written by a colleague of mine. /Anders -Original Message- From:

RE: [android-developers] Set wallpaper as background

2010-06-02 Thread Ericson, Anders
Hi, In your "AndroidManifest.xml" you can add this to your activity: android:theme="@android:style/Theme.Wallpaper" /Anders -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of AndroidNewbie Sent: den 3 juni 2010 05:49 To

RE: [android-developers] sendWallpaperCommand() behavior changed in 2.2

2010-06-01 Thread Ericson, Anders
Hi, Why should only the Home application send commands to the wallpaper? Shouldn't any application that displays the wallpaper as background be able to send commands? Also, the documentation for WallpaperManager.sendWallpaperCommand() is a bit unclear. The documentation for the parameter windo