[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] 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 "A

[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 tells

[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
n't do that.) > > > > On Thu, Sep 24, 2009 at 4:39 PM, Andy Droid 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 m

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

2009-09-24 Thread Andy Droid
for example this is > how home and other such things show icons or labels associated with other > applications.  Context.createPackageContext() or the PackageManager API to > get a package's resources are the typical mechanism for this. > > > > On Tue, Sep 22, 2009 at 5:59 PM,

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

2009-09-23 Thread Andy Droid
That's a great tip, I hadn't know about that. But, I'm trying to make it so that the default list selector will be changeable, at the app layer. On Sep 22, 9:31 pm, "Mark Murphy" wrote: > > Can a core class such as "AbsListView" access resources, such as xml > > files, and .png's, in a 3rd part

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

2009-09-22 Thread Andy Droid
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)? I realize this is a change in framework code, and that is fine for my purposes. So, for example, if I know that I am going to install an app

[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 disposi

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

2009-09-09 Thread Andy Droid
, Romain Guy wrote: > > No, it cannot do this. > > On Wed, Sep 9, 2009 at 3:55 PM, Andy Droid wrote: > > > > Could an alternate home screen app replace the assets such as s > > "menu_item_background_pressed.9.png" or > > "list_selector_background_foc

[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 c

[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 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 &

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

2009-09-09 Thread Andy Droid
vice() can return. > > On Fri, Sep 4, 2009 at 12:51 PM, Andy Droid wrote: > > > I know about LocationManagerService, AlarmManagerService, and > > BatteryService, from Android programming books, but is there a > > published list of all available services?  thanks >

[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){ super

[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 Gr

[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 t

[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: http://developer.android.com/re

[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 FILE:

[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 FILE:

[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 d

[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 that

[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
ack=foo&q=twitter again, just not sure how to put this into java, thanks. On Wed, Jul 29, 2009 at 6:40 PM, Andy Droid 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 > t

[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