Jim Jim -4 years ago 136
Android Question

Android: set view style programmatically

Here's XML:

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/LightStyle"
android:layout_width="fill_parent"
android:layout_height="55dip"
android:clickable="true"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" />

</RelativeLayout>


How to set param style programmatically?

Answer Source

You cannot set a view's style programmatically yet, but you may find this thread useful.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download