Monday, May 7, 2012

[android-developers] Switch Widget

Hi,

I am new to Android..
my problem is "Switch button in android generating an
error".please help me.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:android1="http://
schemas.android.com/apk/res/android">

<Switch
android1:id="@+id/switch1"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android1:text="Switch" />

</LinearLayout>

The Error is
"Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout,
or fix the theme style references."

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate