
android
文章平均质量分 68
地瓜鼠
遇见更好的地瓜
展开
-
Button按钮的4种点击事件的方法
思路:设置两个按钮,用于按钮点击事件的实现<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/one" android:layout_width="wrap_原创 2016-11-03 14:10:15 · 20847 阅读 · 0 评论 -
简易短信发送器
效果图:1.main_activity.xmlxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="ve原创 2016-11-03 15:21:51 · 506 阅读 · 0 评论 -
在内部存储中写文件
效果图:1.main_activity.xmlxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation原创 2016-11-03 17:10:48 · 240 阅读 · 0 评论 -
自动弹出简易对话框
效果图:弹出登录成功小框代码:Toast toast = Toast.makeText(this,"登陆成功",Toast.LENGTH_LONG);toast.show();原创 2016-11-04 13:55:39 · 333 阅读 · 0 评论 -
从外部存储卡存入并且读取内容
效果图:1.activity_main.xmlxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="ve原创 2016-11-04 16:37:07 · 639 阅读 · 0 评论 -
使用键值对进行本地存储(分类存储、获取)
做法:activity_two.xmlxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">原创 2016-11-08 21:55:40 · 1348 阅读 · 0 评论 -
sqlite 数据库的创建以及单元测试插入、删除、更改数据库信息
//创建数据库package com.liyulei.sqlite;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public class MyOpenHelper extend原创 2016-11-16 14:01:48 · 878 阅读 · 0 评论 -
调用系统自带的拨号功能打电话
效果图:具体实施如下:1.layout中 activity_main.xmlxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" androi原创 2016-11-02 15:17:59 · 411 阅读 · 0 评论