自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

GoodLuckAC的博客

编程让我们拥有超能力

  • 博客(27)
  • 资源 (1)
  • 收藏
  • 关注

原创 android--内部存储写文件和使用API获取内部存储路径,sharedperferance获取原有的账号密码--简单的登陆(记录原有的账号和密码)--I/0流介绍

I/O流就是对文件的操作,按流来分类分为输入与输出二类,按字节和字符分类分为字节流和字符流。输出流:字符输出流,字节输出流。输入流:字符输入流,字节输入流。而按字节和字符分则是,字节流和字符流都有自己的输入输出方法。import java.io.FileInputStream;import java.io.FileNotFoundException;import j

2016-07-30 15:35:57 1014

原创 android--进度框(ProgressBar)

activity_main<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawa

2016-07-30 09:57:07 456

原创 android --webview控件 浏览器制作

activity.xlm<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertic

2016-07-29 19:22:23 567

原创 android----Spinner下拉列表控件

Spinner就是有下拉列表功能的控件1.在布局文件新建TextView,Spinner2.初始化它们3.新建一个数据源list  List  new Arraylist4.添加数据list.add();5.新建一个适配器数组适配器  arrayAdapter=new ArrayAdapter(this,android.R.layout.simple_list_item_1

2016-07-26 17:46:24 783

原创 android-一个简单的手机桌面(GridView+SimpleAdapter)

activity_main<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="verti

2016-07-26 16:12:55 462

原创 android—DatePicker 和TimePicker显示日期以及使用TimePickerDialog,DatePickerDialog来专门实现时间选择对话框

datePicker 和timePicker 显示日期和时间的控件1.二个控件初始化2.int定义 年 月 日 时 分3.Calendar  类时间操作 创建Calendar对象 要 Calendar.getinStance();4.    year=calendar.get(Calendar.Year);        Month=calendar.get(Calendar.

2016-07-26 10:35:00 1557

原创 android--ListView(控件+二种适配器+监听事件)

适配器就是大量数据源显示到视图上适配器分为简单适配器和数组适配器数组适配器:先在布局文件新建一个ListVi控件1.新建一个数组适配器 arrAdapter=new ArrAdapter(this,android.layout.simple_list_item_1,string)//string[] string={""""""}2.新建一个listview,并把它给初始化3.

2016-07-25 17:48:18 983

原创 android----菜单

菜单要重新二种构造方法public boolean onCraeatOptionMenu(Menu menu){动态构造菜单的方法MenuItem item = menu.add(1,100,1,"  菜单一")item.setTitle("菜单一的名字");//改变菜单的名字menu.add(1,100,1,"菜单二");menu.add(1,100,1,"菜单二")

2016-07-24 17:27:01 387

原创 android-----通知栏(Notification)

前端<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma

2016-07-23 19:43:09 358

原创 android——悬浮窗控件Toast

前端<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma

2016-07-23 10:30:36 1724

原创 android—小小的计算器

前端知识点 1.可以输入的文本框 2.线性布局 layout_width或layout_height其中一个为0dp,另一个为match_parent当是vertical排布的时候,一般都是layout_width为match_parent,layout_height=0dp,horizontal为相反的属性。 3.改变文本框颜色,边框可以在drawable里面创建一个xml文

2016-07-23 08:54:21 1071

原创 android-----有返回值的页面跳转

Factivitypackage com.example.wuzuo.app2;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Bundle;import android.view.View;import andro

2016-07-22 09:00:58 3614

原创 页面跳转(无结果返回值)(内部监听类事件)

activity就是一个新的布局页面,MainActivity就是继承Activity显示在我们手机的页面,初学的我们都是在一个页面上做文章,但是学过一段时间后,页面已经远远不能满足我们了,页面跳转就是我们新建二个FActivitty和SActivity之间相互跳转,都是新建一个类,继承Activity,创建布局protected void onCreate(Bundle savedInsta

2016-07-21 17:22:47 1169

原创 RadioGroup控件(接口类监听事件)

前端<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma

2016-07-21 15:49:29 11302

原创 android--checkbox(内部监听器)

前端<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="matc

2016-07-19 21:28:43 2388

原创 android——ToggleButton按钮

前段<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="matc

2016-07-19 20:24:05 383

原创 android控件—MuAutoCompleteTextView

package com.example.autocompletetextview;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.ArrayAdapter;import android.widget.AutoCompleteTextView;im

2016-07-19 17:27:52 345

原创 android autocompletetextview(自动匹配控件)类比listview

与listview一样都要有适配器前端<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi

2016-07-19 17:02:38 715

原创 android 跑马灯

就是让在手机显示的的文字或者是图片能滚动;如果是一个滚动页面,那就直接在textview中修改,添加四行代码 android:singleLine="true" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true"如果多行文字必须用text

2016-07-19 15:43:49 355

原创 android线性布局作业——计算器

把计算器分为1:6,文本框为一份,剩下的为6份;再把6份分为4:2,规则的文本框为4份,不规则位2份;再把不规则的竖直分为3:1,数字为三分,符号位一份;把数字分为1:1,上面一份,下面一份;在把每一份的按钮填上去就好了。需要注意的是按比例填充按钮时要把高度设为0dp,注意竖直划分与水平划分时,高度与宽度。<LinearLayout xmlns:android="http://schem

2016-07-19 11:38:16 3808

原创 android 作业1相对布局(拼图)

ing="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_h

2016-07-19 08:47:20 901

原创 简单的listview控件

package com.example.listview;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.ArrayAdapter;import android.widget.ListView;import android.widget.Simp

2016-07-18 16:00:13 373

原创 android五大布局之-RelativeLayout

2016-07-18 07:54:47 299

原创 android 快捷键

Ctrl+G / Ctrl+Alt+Shift+G:查询变量或者函数或者类在哪里被使用或被调用,后者是前者的复杂表现,可以选择查询范围等。Alt+H:查找功能,全局查找F4:查看类继承关系F2:查看文档说明(函数使用说明)Ctrl+E:查看最近打开过的文件Ctrl+Shift+E:查看最近编辑过的文件double Shift:全局查找,这个查看和Alt+H稍稍有些不同,这个

2016-07-17 20:35:03 288

原创 android 五大布局-线性布局(LinearLayout)

基本属性要求123456LinearLayout  android:layout_width="match_parent"  android:layout_height="match_parent"   android:orientation="vertical"> LinearLayout>

2016-07-17 20:30:59 396

原创 android 外部监听事件

前段<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma

2016-07-17 11:00:38 481

原创 android 监听按钮的点击事件 匿名内部类监听按钮点击事件

就是android 的后端,别人点击登陆,能在android studio 中显示出来,本人android小白 ,贴一下代码 纪念一下前段按钮代码<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/too

2016-07-15 21:37:18 836

内容中心网络安装包

介绍内容中心网络组织机理概念和背景的基础上,对内容中心网络的内容命名技术、缓存技术、路由与转发技术、移动性技术、安全分析、软件定义技术、参数化自适应内容管线结构及仿真平台进行了全面系统的介绍

2018-10-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除