Aren't focus states supposed to bubble to child Views?

by patbenatar » Mon, 19 Apr 2010 16:31:45 GMT

Sponsored Links
 Hey all-

When using a View within a View, for example an ImageView within a
LinearLayout, both of which have xml drawable resources (the
LinearLayout as a background) specifying PNG drawables to use for the
on/off states, shouldn't children Views receive the focus state when
their parent gets focus? So as far as I understand, both my
LinearLayout and ImageView should be switching to their focus
states...right? Apparently not... Or, more likely, apparently my
implementation is incorrect..

The focus state works on the LinearLayout but my ImageView never
receives focus.. I have both Views set to android:focusable="true".



Other Threads

1. StackOverflow Exception while using TabActivity

You have way too many nested viewsgroups/layout. Remove some of them :)

On Mon, Jul 20, 2009 at 10:04 PM, Dexter's

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


2. Is there a way to backup and restore a Cursor?

Hello all,

I'm always get stuck when I want to do some testing with my Classes  
which are working against the default providers.

For example, one method of my class meant to get all audio from  

That's ok for implementation, but when I want to test it, problem comes.

I want to insert a data into  
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, and get all audio from it  
to see whether the data I inserted has been got by my method.

In order not to break the existed data on emulator/device, I want to  
back up the data first.

But when I look at the Cursor returned by query that URI, I found  
there are 27 columns!
Even I can list these columns and get the correct data to backup,  
there is still a problem of maintenance of this test.

At first I tried to use getBlob to get data from each column, but the  
SQL checks failed.

Is there a way to easy back the data from a cursor?

Thanks for your consideration,

3. Age of GPS data (continued)

4. PendingIntent / addProximityAlert problem

5. PendingIntent ProximityAlert problem

6. Add space between elements in a TableRow.

7. Some G1 phones getting "device not found" with adb...