[android-developers] Grey appears pink when scrolling - ListView scrollCache

2011-04-19 Thread Richard Leggett
Hi all, I think I could be out of luck with this one, but does anyone know whether ListView does anything to colors when using scrolling cache? I have a ListView with a background color of #F3F3F3, opaque light grey. When scrolling the list, the grey turns a grey-pink and usually resets to grey

Re: [android-developers] Grey appears pink when scrolling - ListView scrollCache

2011-04-19 Thread Richard Leggett
that can be rendered well at 16bpp, such as #f2f2f2. You want to do this anyway because if your app is running on a 16bpp screen you will also get these kinds of artifacts. On Tue, Apr 19, 2011 at 9:20 AM, Richard Leggett richard.legg...@gmail.com wrote: Hi all, I think I could be out

Re: [android-developers] Re: Unable to start activity ComponentInfo during TabActivity initialization

2011-02-16 Thread Richard Leggett
I'm afraid you may have to post your layout XML, or as much of it as you can. This error is usually related to an incorrectly names/qualified custom control or something along these lines. On 16 Feb 2011, at 08:28, MerlinBG wrote: Sorry, forgot to mention - in the activiry that should be

Re: [android-developers] Re: Unable to start activity ComponentInfo during TabActivity initialization

2011-02-16 Thread Richard Leggett
...but it can also be the referenced control throwing an error in onCreate(), so a few things to look into, I'd start by looking at the XML, and then stepping through any custom controls' onCreate() methods. On 16 Feb 2011, at 10:07, Richard Leggett wrote: I'm afraid you may have to post your

Re: [android-developers] bug in bitmap tileMode=repeat / within layer-list ?

2011-02-15 Thread Richard Leggett
I've also experienced tileMode on drawables being ignored (1.6 SDK), generally when extending the existing height of a ViewGroup by adding children after the initial layout pass. It doesn't always exhibit the behaviour. I didn't have time to fully investigate the problem at the SDK code level

Re: [android-developers] Density independent values through code for views

2011-02-15 Thread Richard Leggett
You can look into writing a utility method e.g. : public class Util { private static float DIP_SCALE = -1; public static int dipsToPx(int dips, Context context) { if(DIP_SCALE == -1) DIP_SCALE = context.getResources().getDisplayMetrics().density;

Re: [android-developers] Re: Poor relevancy in Android market since yesterday.

2011-02-12 Thread Richard Leggett
Something weird is going on here, for example if you search on the Market website for twitter you get the official app, and also games like Radiant HD, but you don't get TweetDeck which has Twitter in the title and does appear as the 2nd related app for Twitter (official). Very strange. On 12

Re: [android-developers] Re: SoundPool - sample XXX not READY

2011-01-27 Thread Richard Leggett
This doesn't solve your 256 limit problem but I just wanted to point out you can still see sample XXX not READY even if you're only using 2 or 3 very short sound samples. I've seen this with a 1 second OGG file on the Nexus One. Now I'm not suggesting this is the best way to deal with it, but I

Re: [android-developers] Re: Count of activities in App's stack

2011-01-18 Thread Richard Leggett
You might try along the lines of using: android.permission.GET_TASKS In your manifest and then code similar to: http://davanum.wordpress.com/2007/12/18/android-task-manager-primitive-prototype/ But I would strongly recommend you don't ask for that permission and instead do what Kumar

Re: [android-developers] Re: image background - how to repeat an image rather than strech it

2011-01-14 Thread Richard Leggett
An easy way of making a bitmap repeat is to create an XML file in the drawable folder which looks something like this: ?xml version=1.0 encoding=utf-8? bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/background android:tileMode=repeat / background

Re: [android-developers] Re: Is there a Horizontal ListView?

2010-12-29 Thread Richard Leggett
I did some digging around this a while back and Mark is on the money, it'll take a big chunk of time. But I would agree there are plenty of uses for things like horizontal lists, in fact there's a very prominent one in the core SMS app which allows you to choose a word from a list of

[android-developers] ADT is no longer launching APK on device

2010-12-03 Thread Richard Leggett
Hi all, I've had a very strange thing happen here, one minute I'm debugging my app (on a Nexus One), no problems, the next it refuses to launch after installation every time. My logcat contains the following (hopefully the relevant parts, trimmed out GC logs etc): D/PackageParser(21026):

Re: [android-developers] Re: Sony Ericsson LiveView ™ micro display SDK is released

2010-11-30 Thread Richard Leggett
If I remember rightly you don't need a SE phone to use with the LiveView, I'll be testing with a Nexus One in the next week (should it arrive). Regards, Richard On 29 Nov 2010, at 20:33, Leon Moreyn-Android Development wrote: Ba hum bug. Its not good for US developers as most of the Xperia

Re: [android-developers] Re: how to implement Two line text with different colors on one button

2010-11-24 Thread Richard Leggett
You can also use a SpannableStringBuilder. Here's a contrived example, but it shows the basics: TextAppearanceSpan span = new TextAppearanceSpan(mContext, R.style.MyTextAppearance); SpannableStringBuilder builder = new SpannableStringBuilder(); builder.append(First line\nSecond line);

[android-developers] iOS UI Patterns Bleeding into Android apps

2010-11-04 Thread Richard Leggett
Twitter for Android is an excellent app, but the lastest update shows how a lot of iOS UI patterns are bleeding over to Android apps, potentially confusing things. To note a couple: 1. Pull down ListView (beyond top) to refresh. 2. Swipe finger across a ListView row to bring up actions/edit.

Re: [android-developers] physics engine with great demos

2010-10-24 Thread Richard Leggett
Rokon is a good engine with physics and some commercial apps/demos: http://www.rokonandroid.com/ On 24 Oct 2010, at 11:05, noob_boy wrote: Hi, I am a newbie thinking of writing a physics game app. I did see some engines, but most of them have no good demos or docs. So can you guys

Re: [android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-20 Thread Richard Leggett
: On Tue, Oct 19, 2010 at 11:00 AM, Richard Leggett richard.legg...@gmail.com wrote: I'm keen to see if anyone has a better solution to this problem? Get rid of the background. You are taking on a fairly substantial maintenance headache for the sake of a background image. -- Mark Murphy

Re: [android-developers] Android Activity stack

2010-10-20 Thread Richard Leggett
Are you saying when you press back from Activity A you are somehow going back to Activity B? If so it sounds like you have multiple instances of Activity B already on the stack, when starting Activity B you can add the intent flag Intent.FLAG_ACTIVITY_CLEAR_TOP to make sure you only ever have

Re: [android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-20 Thread Richard Leggett
. Regards, Richard On 20 Oct 2010, at 10:40, Richard Leggett wrote: Hi Mark, Thanks for your advice. I'd really like to do that as I know that will simplify things, unfortunately the scrolling nature of the background behind the 3 UI widgets is integral to the design (a port of an iPhone app

Re: [android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-20 Thread Richard Leggett
, at 13:32, Mark Murphy wrote: There is no particular reason why Google needs to write this. Anybody can write this and make it a reusable component. A knee-jerk reaction of if it's lime green, Google must write it is a sad statement. On Wed, Oct 20, 2010 at 8:26 AM, Richard Leggett richard.legg

Re: [android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-20 Thread Richard Leggett
Apologies to Stakka the original poster, looks like I hijacked a thread unintentionally (replying to an email and changing subject rather than creating a new email doesn't create a new Thread on this group). On 20 Oct 2010, at 13:39, Richard Leggett wrote: There's no reason for them to write

[android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-19 Thread Richard Leggett
Hi All, I know this has come up a few times in the past, and the best advice is to avoid having ListViews inside a ScrollView entirely (instead using addHeaderView()/addFooterView() or doing it manually with a LinearLayout, but I just wanted to see what best practices people might put forward

[android-developers] Is a TextView background included in wrap_content measurement?

2010-10-05 Thread Richard Leggett
I have a PNG being used for a TextView background. The TextView is set to wrap_content for width/height. The problem is, I cannot get it to be smaller than the original pixel dimensions of the background PNG, this leaves my text floating in the middle, as if I've used padding. TextView

[android-developers] Bold and regular custom fonts within a TextView

2010-09-23 Thread Richard Leggett
I've done quite a lot of digging around the 1.6 SDK source code for this one. My aim is simply to have 2 StyleSpans within a TextView, one containing bold text, the other normal, both using a custom font. I'm setting the typeface to a custom font which was created in this fashion: // utility

[android-developers] Re: Bold and regular custom fonts within a TextView

2010-09-23 Thread Richard Leggett
I should point out that the faux bold probably looks terrible because of how thin this font is. I tried a different TTF file and it looked OK. Either way, using two completely different fonts in the same TextView would be another use-case. On Sep 23, 3:42 pm, Richard Leggett richard.legg

[android-developers] Re: Froyo 2.2 disables requestWindowFeature(Window.FEATURE_NO_TITLE);

2010-05-27 Thread Richard Leggett
Thanks for confirming, I must have something missing from my manifest then, strange. On May 27, 11:22 am, String sterling.ud...@gmail.com wrote: On May 27, 9:39 am, gjs garyjamessi...@gmail.com wrote: No seems ok to me on Nexus1 with 2.2 and an app that uses

[android-developers] Froyo 2.2 disables requestWindowFeature(Window.FEATURE_NO_TITLE);

2010-05-26 Thread Richard Leggett
Just trying to get a confirmation, has anyone else found that since updating to 2.2 the following line has no effect: requestWindowFeature(Window.FEATURE_NO_TITLE); Is there a new permission required? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Reg: Android Game API

2010-02-16 Thread Richard Leggett
Take a look at Rokon (rokonandroid.com). Very active, version 2.0 is underway with lots of big changes. On Feb 15, 1:14 pm, TomM tomm.m...@gmail.com wrote: Hi All, I am new to android games development on mobiles.  can any one suggest me which API suitable to develop game. I am using Android

[android-developers] Re: Preparing for Droid OpenGL issues

2010-01-14 Thread Richard Leggett
I've heard the Droid having problems with PNGs that are not 24bit (alpha). It's worth checking out the Rokon mailing list and forum for more info on this. Also if you post in the forums there I'll be happy to test on a Nexus One. On Jan 14, 3:14 pm, markusn82 markus...@gmail.com wrote: Hi,

[android-developers] Re: How To Install SDK Behind Authenticated Proxy

2010-01-12 Thread Richard Leggett
You may have some luck in using a third party tool like Charles (xk72.com) to set up the proxy, it has some advanced options and has served me well in all kinds of situations. This way you don't need to do anything special in the AVD manager. On Jan 12, 1:10 pm, bklik brenton.k...@gmail.com