How to make a LinearLayout fousable and its children change foreground color

by n179911 » Thu, 19 Nov 2009 12:46:46 GMT


Sponsored Links
 Hi,

I have a LinearLayout with 2 text View as its children.
How can I make the children of LinearLayout to change foreground color
(in this case, the text color of the text view) when the linearlayout
has focus?

<LinearLayout>
        <TextView android:id="@+id/name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="?android:attr/textColorInverse"
        />
      <TextView android:id="@+id/value"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="?android:attr/textColorInverse"
        />

</LinearLayout>

Thank you.

--



How to make a LinearLayout fousable and its children change foreground color

by surya prakash » Thu, 19 Nov 2009 14:54:08 GMT


 


Thank you.


>


Sponsored Links


Other Threads

1. ADC2 [tools] Mezzofanti - Augmented reality through text recognition

Great work.
I previously had a similar idea for an application for ADC2 using OCR
engine but no one figured out how to incorporate the Tesseract engine.

Btw, is the apk available for download somewhere?

Cheers
Eric



--~--~---------~--~----~------------~-------~--~----~

2. Need help with MediaStore

Hi guys,

I am trying to make an application which will upload pictures to a
website. I need to let the user browse through the pictures they want
to upload and select them. However, when I try to use the MediaStore I
always get an empty cursor.

I created an SD CARD image and used that with the emulator. I know one
image exists in /sdcard/media. I copied it using an image manipulation
tool (winimage). And, I can see the image when I use the command "ls /
sdcard/media" in the terminal application of the phone.

The code I am using is this :

=============
                // Here we set up a string array of the thumbnail ID column we 
want
to get back
                String [] proj={MediaStore.Images.Thumbnails._ID};
                // Now we create the cursor pointing to the external thumbnail 
store
                cursor = managedQuery
( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
                                proj, // Which columns to return
                                null,       // WHERE clause; which rows to 
return (all rows)
                                null,       // WHERE clause selection arguments 
(none)
                                null); // Order-by clause (ascending by name)
                // We now get the column index of the thumbnail id
                Log.i(tag, "size: ");
                Log.i(tag, "size: "+cursor.getCount());
==============

Am I missing something here?

Thanks in advance for the help,

Moazzam
--~--~---------~--~----~------------~-------~--~----~

3. Error generating final archive ... post Apple Software Update

4. SDCARD images/audio/video not reflected in gallery.

5. Problem in Listview with Checkbox

6. getting crash stack....

7. Activity.isForeground()