[android-developers] Re: Space widget in ADT Graphical Layout

2011-10-24 Thread Taf
e yet and that's why > it's not really mentioned anywhere yet. > > -- Tor > > > > > > > > On Sun, Oct 23, 2011 at 8:43 AM, Taf wrote: > > Hi, > > > I was just looking through some of the API demos for the latest > > release of Android. In

[android-developers] Space widget in ADT Graphical Layout

2011-10-23 Thread Taf
Hi, I was just looking through some of the API demos for the latest release of Android. In particular I was looking at the grid_layout_1.xml file Which is a GridLayout, and contains a Space widget. I'm looking at this in the ADT Graphical Layout view in eclipse. For me it doesn't seems to display

[android-developers] Re: ListActivity Memory leak with onConfigurationChanged

2011-04-23 Thread Taf
OK, that's a fair point. I've changed my code to use onRetainNonConfigurationInstance now, and this seems to work nicely. Thanks. On Apr 23, 12:28 pm, Mark Murphy wrote: > On Sat, Apr 23, 2011 at 7:19 AM, Taf wrote: > > Hi Mark, > > > Yes, I think I'll have to

[android-developers] Re: ListActivity Memory leak with onConfigurationChanged

2011-04-23 Thread Taf
I guess it circumnavigates all the Activity life cycle calls and hence you can end up getting memory leaks as I am seeing. Thanks for the quick response. On Apr 23, 12:05 pm, Mark Murphy wrote: > On Sat, Apr 23, 2011 at 6:55 AM, Taf wrote: > > I'm using a ListActivity, with onConfigu

[android-developers] ListActivity Memory leak with onConfigurationChanged

2011-04-23 Thread Taf
Hi, I'm using a ListActivity, with onConfigurationChanged. I'm doing this because I don't want onCreate to be called so i don't have to reload data in the list view every time I change orientation. I've found that when I call setListAdapter in the onCreate method of my ListActivity , after a Numb

[android-developers] Re: Lost libraries after updating ADT and SDK

2011-03-08 Thread Taf
the UI all ok. Would have been nice if the Add button worked though.. On Mar 8, 11:24 pm, TreKing wrote: > On Tue, Mar 8, 2011 at 5:22 PM, Taf wrote: > > Would be happy to have a go at hand editing the .projects files if any one > > has an example of a .project file for a Library

[android-developers] Lost libraries after updating ADT and SDK

2011-03-08 Thread Taf
Hi, I've Just updated my SDK and ADT to the latest versions. In the workspace I had two projects, one a normal Android project the other a project marked as a Library. The first project referenced the Lib and all was working fine. After the update, I could no longer see the Android lib reference

[android-developers] Re: Android Coverflow widget

2010-01-21 Thread Taf
                    matrix.preTranslate(-centerX, -centerY); >                         matrix.postTranslate(centerX, centerY); > >                         matrix.preScale(mMinUnselectedScale, > mMinUnselectedScale, centerX, > centerY); > >                 // within the rotating, scaling range >

[android-developers] Re: Android Coverflow widget

2010-01-08 Thread Taf
Thanks glad you like it :) On 8 Jan, 12:31, zero wrote: > good work, thanks for releasing as open source :) > > On Jan 8, 9:45 am, Taf wrote: > > > > > Hi, > > > I've had a go at creating a coverflow like widget. My results can be > > found here: >

[android-developers] Android Coverflow widget

2010-01-08 Thread Taf
Hi, I've had a go at creating a coverflow like widget. My results can be found here: http://www.inter-fuser.com/2010/01/android-coverflow-widget.html If you fancy giving it a try I'd been interested in your feedback. I've only tried it on a HTC G1 running Android 1.1 Thanks, Neil. -- You rece

[android-developers] Re: Alpha Gradient on Bitmap of PNG

2009-12-16 Thread Taf
Worked out how to do this. I then used it to create a reflection effect, for reference, and if anyone is interested, here's how to do it: http://www.inter-fuser.com/2009/12/android-reflections-with-bitmaps.html On Dec 11, 12:49 pm, Taf wrote: > Hi, > > I'm trying to apply an

[android-developers] Alpha Gradient on Bitmap of PNG

2009-12-11 Thread Taf
Hi, I'm trying to apply an Alpha gradient to a bitmap that I've created from a PNG. I want the image to be opaque at the top and fade to transparent at the bottom. I know this can be done be using getPixels and setPixels for Bitmap and iterating through each row of pixels in the Bitmap and setting

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-12-01 Thread Taf
t; > > I think this discourages people from making custom widgets. > > > > On Dec 1, 8:47 am, Dianne Hackborn wrote: > > > > It does, because it means the application can change it at any time, > > > without > > > > the framework knowing this has ha

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
variables are implementation details.  Exposing them for applications > to whack away on them as they want would make it much more difficult to > maintain the platform. > > > > > > On Mon, Nov 30, 2009 at 1:41 PM, Taf wrote: > > OK a better example would be: > > >

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
, but because my classes are not in the same package i cannot access mInLayout. even though I extend AbsSpinner and hence AdapterView, so should mInLayout be protected? If it was i could then access it and write a similar custom class to Gallery.. On Nov 30, 9:01 pm, Taf wrote: > Hi, > &

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
My mistake, there is a getter for mSelectedPosition, still think it would be nice if the scope was protected for this and others , it could then be accessed directly by custom classes that extend base classes such as AbsSpinner, as the Gallery class does.. On Nov 30, 9:01 pm, Taf wrote: >

[android-developers] scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread Taf
Hi, I was just trying to extend the AbsSpinner Class, to create my own custom widget. But the problem is that some of the member variables have a a default scope, so I can't access them just by extending the class (they can only be access directly by classes in the same package). Some are ok as th

[android-developers] Re: Multiple screens in one activity (like home screen)

2009-10-11 Thread Taf
Here's an example of how to do a horizontal slide animation with ViewFlipper, http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html it doesn't use swipe gestures, but that's something that can be added. On Oct 9, 4:29 pm, Marc Reichelt wrote: > Hi there! > > I am work

[android-developers] Re: custom animations for ViewAnimator/ViewFlipper?

2009-09-17 Thread Taf
Hi, I've done a slide in and slide out animation with the viewflipper. You can find the example code here: http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html In this example i've defined the animations in java. But you can also define them in XML: http://www.inter-

[android-developers] Re: custom animations for ViewAnimator/ViewFlipper?

2009-09-17 Thread Taf
Hi, I have an example of Using ViewFlipper with animations defined in Java you can see how I did this here: http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html Are you setting your out animation as well? On Sep 15, 11:30 pm, smallbug wrote: > Hi, > > I am wondering