原文:微信小程序把玩(二十四)toast组件 toast消息提示框,可用在提示一些信息,比如清楚缓存给用户一个友好的提示!或操作一些请求不想让用户有什么操作,toast也可以做到因为toast显示时其他操作是无效的 主要属性: wxml 点击显示toast OK! js Page({ data:{ ... ...
分类:
微信 时间:
2017-02-26 17:36:47
阅读次数:
283
import android.content.Context; import android.os.Handler; import android.os.Looper; import android.widget.Toast; /** * Created by zhengping on 2017/1... ...
分类:
其他好文 时间:
2017-02-23 20:57:53
阅读次数:
138
由OpenDigg出品的安卓开源项目周报第九期来啦。我们的安卓开源周报集合了OpenDigg一周来新收录的优质的安卓开源项目,方便安卓开发人员便捷的找到自己需要的项目工具。Alerter克服Toast和Snackbar的限制SopCastComponent安卓直播开源项目mkloader优美又流畅的自定义加载视图Cha..
分类:
移动开发 时间:
2017-02-23 14:27:05
阅读次数:
371
最近做项目,遇到了Toast一直不消失的问题,activity都退出了,还是没有消失 代码实现public void onBackPressed() { if (mStop) return; MiniLog.i(TAG,"onBackPressed"); if (System.currentTime ...
分类:
其他好文 时间:
2017-02-20 13:57:02
阅读次数:
187
闹钟的原理可用下面我自己画的一幅图来概括:(不对的地方,尽管吐槽) 我们来看看新建闹钟到闹钟响铃的步骤: 1、新建一个闹钟: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 // 获得AlarmManager实例 fi ...
分类:
移动开发 时间:
2017-02-15 18:42:55
阅读次数:
274
public class CustomToast implements OnTouchListener { private Context mContext; private View view; private WindowManager windowManager; private int st... ...
分类:
其他好文 时间:
2017-02-13 00:04:48
阅读次数:
196
private void showSetPswDialog() { AlertDialog.Builder builder = new Builder(this); // 将设置密码对话框界面,搭建成布局,添加到dialog中显示 View view = View.inflate(this, R.l... ...
分类:
其他好文 时间:
2017-02-12 22:47:40
阅读次数:
195
<Button
android:id="@+id/send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SendSMS"
android:onClick="onClick"/>publicvoidonClick(Viewview){
sendSMS("5556","Hello...");
Toast.makeText(this,"hello",Toast.LENGTH..
分类:
其他好文 时间:
2017-02-09 23:59:48
阅读次数:
257
MVC全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写,一种软件设计典范,用一种业务逻辑、数据、界面显示分离的方法组织代码,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务逻辑。 M ...
分类:
移动开发 时间:
2017-02-04 18:04:55
阅读次数:
215