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 include HorizontalScrollView
and ViewPager
from the support library.
xml属性:
Attribute Name | Related Method | Description |
android:animationDuration | setAnimationDuration(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:spacing | setSpacing(int) | //spacing:间隔 |
android:unselectedAlpha | setUnselectedAlpha(float) | Sets the alpha on the items that are not selected. //alpha:希腊字母的第一个字母,;通道 |