
安卓
佐酒先生
往事随风,琐事佐酒,我是佐酒先生,我为自己代言!
展开
-
android 的四种枚举Context.MODE_PRIVATE
Context.MODE_PRIVATE:为默认操作模式,代表该文件是私有数据,只能被应用本身访问,在该模式下,写入的内容会覆盖原文件的内容,如果想把新写入的内容追加到原文件中。可以使用Context.MODE_APPENDContext.MODE_APPEND:模式会检查文件是否存在,存在就往文件追加内容,否则就创建新文件。Context.MODE_WORLD_READABLE和Cont转载 2015-09-28 19:30:49 · 1038 阅读 · 0 评论 -
安卓几种界面布局的详解
安卓布局原创 2015-09-23 20:53:48 · 3147 阅读 · 0 评论 -
android之sharedPreferences保存数据文件详细案例
android之sharedPreferences保存数据文件详细案例原创 2015-10-29 20:46:47 · 435 阅读 · 0 评论 -
安卓开发之AutoCompleteTextView(关键词自动匹配)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_par原创 2016-03-15 19:12:55 · 486 阅读 · 0 评论 -
安卓学习之获取QQ登录账户和密码并发送短信
布局代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat原创 2016-03-16 18:50:40 · 1156 阅读 · 1 评论 -
android studio中去掉默认的标题栏
我们先在已建立的项目下找到main/res/values/style.xml,打开style.xml文件2然后我们将看到项目引用的Theme,其中parent="Theme.AppCompat.Light.DarkActionBar",这里显示了主题的继承。3本菜鸟之前尝试了网上介绍的三种方法在Android 5.0下都失效了,以往很原创 2016-05-14 10:22:24 · 2602 阅读 · 0 评论 -
安卓实训之——页面滑动ViewPager
制作滑动页面第一步:新建四个布局文件:page1.xml;page2.xml;page3.xml;并在每个xml中添加pager1.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an原创 2016-04-24 11:00:11 · 427 阅读 · 0 评论