[android-developers] change scroll speed in Gallery

2009-10-30 Thread Andy Droid
I made a gallery app inspired by the wallpaper chooser in the Launcher, using the Gallery class. However, one small swipe and it goes forever, can I slow it down, or add friction to my gallery object easily? thanks -- You received this message because you are subscribed to the Google Groups

[android-developers] change scroll speed in Gallery

2009-10-30 Thread Andy Droid
I made a gallery app inspired by the wallpaper chooser in the Launcher, using the Gallery class. However, one small swipe and it goes forever, can I slow it down, or add friction to my gallery object easily? thanks - sorry if this is on here twice, i'm having trouble verifying that my posts are

[android-developers] clipping in ViewGroup

2009-10-16 Thread Andy Droid
I have a ViewGroup with three children which are Views containing bitmaps. Two of the children are to the left and right (off screen) and one child is in the middle of the screen and visible. It is like a gallery, but my own flavor. When the user is dragging left or right, the ViewGroup

[android-developers] does linear interpolator work?

2009-10-08 Thread Andy Droid
I am creating a Translate Animation, and explicitly setting the Interpolator to LinearInterpolator (which is also the default), but it doesn't seem to be truly linear. It still accelerates and decelerates. Am I missing something? I am in Android 1.5. thanks

[android-developers] simple apk builder example

2009-09-30 Thread Andy Droid
There doesn't seem to be much documentation on the apkbuilder. There is, of course the command line help, but so far I'm not exactly sure how to do my task. I don't have a lot of experience building in ant or anything. I basically want to take an apk that I've made from eclipse, unzip it, swap

[android-developers] modify asset such as a .png

2009-09-25 Thread Andy Droid
Wondering if my app can modify an asset, such as myimage.png, that is in the res/drawable folder of my app? Say I want to change the color. So, perhaps I would get the bitmap, make a copy, make it mutable, modify the pixels, then save over it? Or can I just alter it directly? If so, how would

[android-developers] Re: Can a core class access resources at the app layer?

2009-09-24 Thread Andy Droid
to get a package's resources are the typical mechanism for this. On Tue, Sep 22, 2009 at 5:59 PM, Andy Droid andydroi...@gmail.com wrote: Can a core class such as AbsListView access resources, such as xml files, and .png's, in a 3rd party app installed in the normal way (at the app level

[android-developers] Re: Can a core class access resources at the app layer?

2009-09-24 Thread Andy Droid
do that.) On Thu, Sep 24, 2009 at 4:39 PM, Andy Droid andydroi...@gmail.com wrote: Thanks, Dianne.  I tested your suggestion with two apps, where one app gets resources from another app, and it worked.  Doing it at the framework layer is more difficult, but it may be more of a build

[android-developers] View pops to the left, at the end of animation

2009-09-16 Thread Andy Droid
I have a ViewGroup, which has three children, a TextView in the middle of the screen, a TextView off-screen-right, and a TextView off-screen- left. The user can swipe left or right, to bring either of those off- screen TextViews to the on-screen position. The ViewGroup then takes care of

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Andy Droid
, 2009 at 12:51 PM, Andy Droid andydroi...@gmail.com wrote: I know about LocationManagerService, AlarmManagerService, and BatteryService, from Android programming books, but is there a published list of all available services?  thanks -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Andy Droid
Yeah, that questions too vague. The link helped, though. On Sep 9, 10:41 am, Mark Murphy mmur...@commonsware.com wrote: Andy Droid wrote: That's a good point.  In addition to what I mentioned, I guess I'm really interested in ALL the API's, regardless of how they are implemented

[android-developers] change framework assets with alternate home screen

2009-09-09 Thread Andy Droid
Could an alternate home screen app replace the assets such as s menu_item_background_pressed.9.png or list_selector_background_focus.9.png, both found in frameworks/base/ core/res/res/drawable in the open source project? I have altered those by changing out the assets and recompiling. But can

[android-developers] Re: change framework assets with alternate home screen

2009-09-09 Thread Andy Droid
Thanks for the reply. So once the system.img is flashed to the phone, there is really no way to change the contents of framework-res.apk? Sorry for the redundant question, just verifying. And no way to change out a core app icon, such as Contacts? thanks On Wed, Sep 9, 2009 at 3:58 PM,

[android-developers] what services are available at the API level?

2009-09-04 Thread Andy Droid
I know about LocationManagerService, AlarmManagerService, and BatteryService, from Android programming books, but is there a published list of all available services? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] dynamically add view to view flipper

2009-09-04 Thread Andy Droid
Trying to dynamically add a view to a ViewFlipper. I want to extend ViewFlipper so I can modify it. Here is the code. The child does get added, but it doesn't show up. Any ideas? thanks public class DCMFlipper extends ViewFlipper { DCMFlipper(Context context){

[android-developers] how do I extract an AttributeSet from an xml file

2009-09-03 Thread Andy Droid
I would like to extend ViewFlipper, so that I can override some of the functions. I borrowed some code from the Flipper Demo in Murphy's Busy Coders book. I made my own class that extends it, but I have to pass in an AttributeSet, when I instantiate it. How do I get that from my xml? Here is

[android-developers] which content providers to apps have access to?

2009-09-02 Thread Andy Droid
What content providers in the cupcake android build do apps have access to? According to this: http://developer.android.com/guide/topics/providers/content-providers.html You can see some of them listed in the android.provider package... which is listed here:

[android-developers] problem animating a view object

2009-09-01 Thread Andy Droid
Attempting a fairly simple animation of a View. I'm trying to display a panel, and then just animate it if the user touches the screen. Code for my simplified test is below. The function animateMe() definitely gets called, but nothing happens. Any help greatly appreciated, thanks. MAIN

[android-developers] problem animating a view object

2009-08-31 Thread Andy Droid
Attempting a fairly simple animation of a View. I'm trying to display a panel, and then just animate it if the user touches the screen. Code for my simplified test is below. The function animateMe() definitely gets called, but nothing happens. Any help greatly appreciated, thanks. MAIN

[android-developers] problem animating view objects

2009-08-28 Thread Andy Droid
Having trouble animating some view objects. My main activity creates a DrawView class, which extends View. The DrawView class creates three ColorBalls, each of which which extend View. The onDraw function in DrawView calls drawBitmap on each of the ColorBalls. This seems to be required, if I

[android-developers] simple twitter query

2009-07-30 Thread Andy Droid
Just trying to search for a user's latest public twitter post. I have not worked with http in java before, so I don't know how it all comes together with http gets and requests, and such. I just want to get the latest post from a user (say Fred1000), in the form of a json object. If there is a

[android-developers] Re: simple twitter query

2009-07-30 Thread Andy Droid
=fooq=twitter again, just not sure how to put this into java, thanks. On Wed, Jul 29, 2009 at 6:40 PM, Andy Droid andydroi...@gmail.com wrote: Just trying to search for a user's latest public twitter post. I have not worked with http in java before, so I don't know how it all comes together

[android-developers] simple twitter query

2009-07-30 Thread Andy Droid
Just trying to search for a user's latest public twitter post. I have not worked with http in java before, so I don't know how it all comes together with http gets and requests, and such. I just want to get the latest post from a user (say Fred1000), in the form of a json object. If there is a

[android-developers] How does app change icon of core apps?

2009-07-30 Thread Andy Droid
Some of those Home apps such as Better Home, change the graphics for some of the core apps, such as contacts? How do they do that? Are they opening up the apk, and replacing resources, and then zipping it back up again? You can always go back to the original Home though, so I don't get how