This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class NoDoubleClickListener implements View.OnClickListener { | |
private long lastClickTime; | |
private static final long MIN_CLICK_DELAY_TIME = 500; | |
@Override | |
public void onClick(View v) { | |
long currentTime = Calendar.getInstance().getTimeInMillis(); | |
if (currentTime - lastClickTime > MIN_CLICK_DELAY_TIME) { | |
lastClickTime = currentTime; | |
onNoDoubleClick(v); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Stack; | |
import android.app.Activity; | |
import android.content.Context; | |
/** | |
* activity堆栈式管理 | |
* | |
* @author FireAnt(http://my.oschina.net/LittleDY) | |
* @created 2014年10月30日 下午6:22:05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.out.println("Hello,World"); |