• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ViewFlipper in the widget.

Shelly22

Newbie
Hello Forum.

I can use a view flipper in my widget.

Look here:

[HIGH]
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/flipper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:animateFirstView="true"
android:autoStart="true"
android:flipInterval="1000" >

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/b1" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/b2" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/b3" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/b4" />

</ViewFlipper>
[/HIGH]

Its very nice. But how does it work in a one AppWidgetProvider?
FindViewById is not available in the AppWidgetProvider.
So how can i use or find the viewflipper?
 
Back
Top Bottom