先上图吧:
共有美工做好的4张图片,当浏览到最后一页时点击进入客户端。





点击第四涨图片之后进入客户端。
首先定义一个Gallery,我这里为了取消android系统的Gallery的惯性滚动实现短距离滚动,而自定义了一个SlowGallery.java
package com.test.gallery;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.widget.Gallery;
/**
* Gallery 取消惯性滚动 实现短距离滚动
* @author wenjie
*
*/
public class SlowGallery extends Gallery {
public SlowGallery(Context context, AttributeSet attrs, int

本文介绍如何模仿新浪微博,使用自定义的SlowGallery组件展示美工提供的4张图片,并在浏览完最后一页时引导用户进入客户端。通过定义Gallery的内部类ImageAdapter处理图片显示,设置点击事件监听来实现功能。
最低0.47元/天 解锁文章
508

被折叠的 条评论
为什么被折叠?



