public Gallery(android.content.Context context, android.util.AttributeSet attrs) : this(context, attrs, [email protected]) { mFlingRunnable = new android.widget.Gallery.FlingRunnable(this); mDisableSuppressSelectionChangedRunnable = new _Runnable_122(this); }
public Gallery(android.content.Context context, android.util.AttributeSet attrs, int defStyle) : base(context, attrs, defStyle) { mFlingRunnable = new android.widget.Gallery.FlingRunnable(this); mDisableSuppressSelectionChangedRunnable = new _Runnable_122(this); mGestureDetector = new android.view.GestureDetector(context, this); mGestureDetector.setIsLongpressEnabled(true); android.content.res.TypedArray a = context.obtainStyledAttributes(attrs, [email protected] .styleable.Gallery, defStyle, 0); int index = a.getInt([email protected]_gravity, -1); if (index >= 0) { setGravity(index); } int animationDuration = a.getInt([email protected]_animationDuration , -1); if (animationDuration > 0) { setAnimationDuration(animationDuration); } int spacing = a.getDimensionPixelOffset([email protected]_spacing , 0); setSpacing(spacing); float unselectedAlpha = a.getFloat([email protected]_unselectedAlpha , 0.5f); setUnselectedAlpha(unselectedAlpha); a.recycle(); // We draw the selected item last (because otherwise the item to the // right overlaps it) mGroupFlags |= FLAG_USE_CHILD_DRAWING_ORDER; mGroupFlags |= FLAG_SUPPORT_STATIC_TRANSFORMATIONS; }
public Gallery(android.content.Context context) : this(context, null) { mFlingRunnable = new android.widget.Gallery.FlingRunnable(this); mDisableSuppressSelectionChangedRunnable = new _Runnable_122(this); }