0
我剛剛爲Gallary做了一些代碼,現在它的工作正常。我已按照此鏈接查詢了該http://developer.android.com/resources/tutorials/views/hello-gallery.html。但我的概念仍然不清楚。我曾經在那裏使用過stylable,這是什麼?還有一件事,是否可以改變gallary顯示模式(我的意思是默認模式是LR或RL,我們可以改變它的頂部或底部-最佳)。Android Gallary示例
TypedArray attr = mContext
.obtainStyledAttributes(R.styleable.HelloGallery);
mGalleryItemBackground = attr.getResourceId(
R.styleable.HelloGallery_android_galleryItemBackground, 0);
attr.recycle();
感謝@Arun的這個建議,但我沒有得到如何改變。所以你可以給我一些例子或任何鏈接? – Jay
看看那個鏈接,這可能會幫助你... http://stackoverflow.com/questions/10280909/remove-swipe-effect-in-gallery-from-top-to-bottom-in-android –