Added in API level 11

AdapterViewAnimator


abstract class AdapterViewAnimator : AdapterView<Adapter!>, Advanceable
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.AdapterView<android.widget.Adapter>
   ↳ android.widget.AdapterViewAnimator

Base class for a AdapterView that will perform animations when switching between its views.

Summary

XML attributes
android:animateFirstView Defines whether to animate the current View when the ViewAnimation is first displayed.
android:inAnimation Identifier for the animation to use when a view is shown.
android:loopViews Defines whether the animator loops to the first view once it has reached the end of the list.
android:outAnimation Identifier for the animation to use when a view is hidden.
Inherited XML attributes
Inherited constants
Public constructors

AdapterViewAnimator(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

AdapterViewAnimator(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Unit

Called by an android.appwidget.AppWidgetHost in order to advance the current view when it is being used within an app widget.

open Unit

This defers a notifyDataSetChanged on the pending RemoteViewsAdapter if it has not connected yet.

open Unit

Called by an android.appwidget.AppWidgetHost to indicate that it will be automatically advancing the views of this AdapterViewAnimator by calling AdapterViewAnimator.advance() at some point in the future.

open CharSequence!

open Adapter!

open Int

open View!

Returns the View corresponding to the currently displayed child.

open Int

Returns the index of the currently displayed child view.

open ObjectAnimator!

Returns the current animation used to animate a View that enters the screen.

open ObjectAnimator!

Returns the current animation used to animate a View that exits the screen.

open View!

open Boolean

Called back when the adapter connects to the RemoteViewsService.

open Unit

Called back when the adapter disconnects from the RemoteViewsService.

open Unit

open Parcelable?

open Boolean

open Unit
setAdapter(adapter: Adapter!)

open Unit

Indicates whether the current View should be animated the first time the ViewAnimation is displayed.

open Unit
setDisplayedChild(whichChild: Int)

Sets which child view will be displayed.

open Unit

Specifies the animation used to animate a View that enters the screen.

open Unit
setInAnimation(context: Context!, resourceID: Int)

Specifies the animation used to animate a View that enters the screen.

open Unit

Specifies the animation used to animate a View that exit the screen.

open Unit
setOutAnimation(context: Context!, resourceID: Int)

Specifies the animation used to animate a View that exit the screen.

open Unit

Sets up this AdapterViewAnimator to use a remote views adapter which connects to a RemoteViewsService through the specified intent.

open Unit
setSelection(position: Int)

open Unit

Manually shows the next child.

open Unit

Manually shows the previous child.

Protected methods
open Unit
onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Inherited functions