0

我刚刚为 Gallary 做了一些代码,现在它工作正常。我已经按照这个链接访问了http://developer.android.com/resources/tutorials/views/hello-gallery.html。但是我的概念仍然不清楚。我在那里使用了样式,这是什么?还有一件事,是否可以更改画廊显示模式(我的意思是它的默认模式是 LR 或 RL 我们可以将其更改为 Top-Bottom 或 Bottom -最佳)。

TypedArray attr = mContext
                .obtainStyledAttributes(R.styleable.HelloGallery);
        mGalleryItemBackground = attr.getResourceId(
                R.styleable.HelloGallery_android_galleryItemBackground, 0);
        attr.recycle();
4

1 回答 1

0

Jay,您无法更改 Android 中图库的默认行为。

如果您仍然想让画廊作品上下移动,您需要专门为您的应用程序定制画廊。

于 2012-06-09T11:44:12.713 回答