- 博客(5)
- 收藏
- 关注
转载 android 按钮只能点击一次
private boolean isoncl=true;button01=(Button)findViewById(R.id.button01); button01.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { // TODO
2016-10-20 15:36:11
3182
转载 Android防止按钮连续点击
为了防止用户或者测试MM疯狂的点击某个button,写个方法防止按钮连续点击。public class Utils { private static long lastClickTime; public synchronized static boolean isFastClick() { long time = System.currentTimeMi
2016-10-20 15:28:09
127
原创 Activity向Fragment传值
activity fragment1.setArguments(bundle); fragmentBundle bundle = getArguments();//从activity传过来的Bundle
2016-10-20 14:43:28
160
原创 横竖屏切换监听 android
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // Checks the orientation of the screen if (newConfig.orien
2016-10-11 16:03:28
303
原创 动态添加 v4 fragment
//步骤一:添加一个FragmentTransaction的实例fragmentManager =getSupportFragmentManager(); transaction = fragmentManager.beginTransaction();//步骤二:用add()方法加上Fragment的对象rightFragmentPreLiveFragment preLiveFragme
2016-10-11 16:01:14
280
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人