예제 #1
0
 /** 初始化滑动 */
 public void initGallery() {
   mGallery.setIsGalleryCircular(false);
   mGallery.setPaddingWidth(10);
   mGallery.setLights(lights);
   mGallery.setAdapter(
       new ArrayAdapter<String>(
           getApplicationContext(), android.R.layout.simple_list_item_1, mLabelArray) {
         @Override
         public View getView(int position, View convertView, ViewGroup parent) {
           return new GalleryViewItem(getApplicationContext(), position);
         }
       });
   mGallery.setPosition(1);
 }
예제 #2
0
 @Override
 public boolean onTouchEvent(MotionEvent event) {
   return mGallery.onGalleryTouchEvent(event);
 }