android.widget.Gallery

来源:互联网 发布:铁拳3知乎 编辑:程序博客网 时间:2024/06/01 08:20

                              android.widget.Gallery

 

java.lang.Object--->android.view.View--->android.view.ViewGroup--->android.widget.AdapterView<T extends android.widget.Adapter>----->android.widget.AbsSpinner---->android.widget.Gallery

 

This class was deprecated //不赞成,反对     in API level 16.
    This widget is no longer supported. Other horizontally//水平地 scrolling //卷轴widgets includeHorizontalScrollView andViewPager from the support library.

 

 

xml属性:

Attribute NameRelated MethodDescriptionandroid:animationDurationsetAnimationDuration(int)                    Sets how long a transition//过度,转变 animation//动画 should run (in milliseconds)             when layout has changed. android:gravity//重力,引力setGravity(int)                    Specifies how an object should position its content, on both the X and Y axes,  //axes:轴   within its own bounds. android:spacingsetSpacing(int)                    //spacing:间隔android:unselectedAlphasetUnselectedAlpha(float)                    Sets the alpha on the items that are not selected. //alpha:希腊字母的第一个字母,;通道