庫實現問題
回答
我已經解決了這個問題,像這樣
1)通過在線性佈局中有兩個畫廊,一個用於圖像庫和其他點畫廊來實現這一點。
2),這是多麼我已經集成了兩個
iconGallery = (Gallery) view.findViewById(R.id.product_image_gallery_icon); iconGallery.setVisibility(View.VISIBLE); gallery = (Gallery) view.findViewById(R.id.product_image_gallery); GalleryImageAdapter adapter = new GalleryImageAdapter(getActivity(), urlList); gallery.setAdapter(adapter); gallery.setCallbackDuringFling(false); gallery.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { GalleryIconAdapter galleryIconAdapter= new GalleryIconAdapter(getActivity(), dotCount, position); iconGallery.setAdapter(galleryIconAdapter); } public void onNothingSelected(AdapterView<?> parent) { } });
PLS更新我有人發現一個更好的解決方案。
嗨簡單的檢查一樣的邏輯:在屏幕上基於該posiiton
當前項目可見:
if(selectedItem == currentPosition){
Then display Black dotted image
}
in else
if position not matched with current item shown in gallery{
then default image will be appear...
}
我希望它能幫助:)
- 1. 實現問題
- 2. mkl庫DCT函數實現問題
- 3. 從實現css庫實現水平卡的問題
- 4. 用實體框架實現存儲庫模式。問題庫
- 5. FancyBox實現問題
- 6. DateTime.TryParse實現問題
- 7. 實現perror() - 問題
- 8. 問題實現UINavigationControllerDelegate
- 9. A *實現問題
- 10. Observer實現問題
- 11. zoomToSpan實現問題
- 12. KendoUI實現問題
- 13. @BeforeMethod實現問題
- 14. Fermat的小實現問題的實現
- 15. 2-Satisfiability問題中的實現問題
- 16. Firebase + GTM + GA實現問題
- 17. 問題實現AJAX後
- 18. h:dataTable實現中的問題
- 19. 問題上實現Runnable
- 20. 實現AnyObject到NSString問題
- 21. Easyslider 1.7實現問題
- 22. Cakephp 2.0 ACL實現問題
- 23. IEnumerator的實現問題
- 24. Prism MasterDetail實現UI問題
- 25. 實現代碼問題
- 26. 迭代器實現問題
- 27. counter_cache實現的問題
- 28. JQuery滑塊實現問題
- 29. Java實現ActionListener問題
- 30. Java接口實現問題
見[這裏](https://開頭github.com/JakeWharton/Android-ViewPagerIndicator)它可能會幫助你 – MAC
@MAC:與視圖尋呼機我有更多的問題....與水平滾動..如果我的滾動包含甚至垂直組件的小amt它不能夠滾動但這不在畫廊裏。 –