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. VFY: arbitrarily rejecting large method

After building my project with Java debug information, I get the
following "warning" from dalvikvm when launching my application:

VFY: arbitrarily rejecting large method

It seems the Dalvik VM's verifier is rejecting one of my methods. The
method is named in the warning, and it is indeed very large,
consisting of a long switch statement. I'd like to avoid breaking it
up if I can.

Is there a way to get the verifier to accept this method, including
debug information?

-- 

2. Corrupted SharedPreference file

I haven't been able to reproduce that. But some of my app users
complained that after upgrade to the latest version of the software,
the app force closes because app stopped unexpected. It worked before.
SharedPreferences.Editor.PutString and
SharedPreferences.Editor.Commit, one of the call throws exception.
Even I have try... catch(throwable) around them, I can't catch it.

Also, how could the SharedPreference file got corrupted to start with?
If I ask the user to uninstall and install again, the app will work
just fine. So, feels like the file got corrupted, and I can't access
to it anymore.

Any ideas?

-- 

3. How do you copy a SQLite database from the device to your PC

4. Call Recording.

5. 2 ListViews in one Activity?

6. Voice conferencing in Android2.1

7. getElementsByTagName or loop