The following classes could not be found:
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)
xml代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/xi"
android:orientation="vertical" > <ImageSwitcher
android:id="@+id/switch2"
android:layout_width="320dp"
android:layout_height="wrap_content" /> <Gallery
android:id="@+id/mygallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:spacing="3pt"
android:unselectedAlpha="0.5" /> <Button
android:id="@+id/viewgoback"
style="@style/btn1" /></LinearLayout>求解
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)
xml代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/xi"
android:orientation="vertical" > <ImageSwitcher
android:id="@+id/switch2"
android:layout_width="320dp"
android:layout_height="wrap_content" /> <Gallery
android:id="@+id/mygallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:spacing="3pt"
android:unselectedAlpha="0.5" /> <Button
android:id="@+id/viewgoback"
style="@style/btn1" /></LinearLayout>求解
不过这个类真心没必要用了 用不好一直oom