Android
lk_Empathy
有没有勇气,摸着自己的心说一句:我的青春,不抱怨社会,不埋怨不公,只努力 ,超越自己。挺住,意味着一切!
展开
-
CheckBox在控件 两种方式实现
布局代码详情:(下配效果图)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_hei...原创 2018-04-12 17:12:37 · 3207 阅读 · 0 评论 -
项目——游戏手柄
一个以前用过的类型的游戏手柄直接代码<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi...原创 2018-05-29 21:52:37 · 596 阅读 · 0 评论 -
Intent数据传递
Intent数据传递一个简单的利用Intent数据传递,仅供参考。注意: 1.创建两个XML文件和JAVA文件 2.在JAVA里面获取布局文件 3.在第一个布局文件里面创建输入的EditText 4.在第二个布局文件里面创建获取显示的TextView 5.在AndroidManifest.xml加入创建的第二个Java文件 6.写第一个Java代码 7.在第二个Java代...原创 2018-05-24 18:19:27 · 215 阅读 · 0 评论 -
项目——单击事件
这里给大家说一下常用的三种点击事件:页面代码页面布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"...原创 2018-05-25 21:20:23 · 518 阅读 · 1 评论 -
Android开发工具
常用开发工具(校园里)简单说一下,在学校里面常用的开发工具有两种: 一个是Eclipse+ADT+SDK三个组件整合开发; 另一个是 Android Studio,该工具是一个全新的 Android 开发环境,基于IntelliJ IDEA. 类似 Eclipse ADT,Android Studio 提供了集成的 Android 开发工具用于开发和调试。其实开发工...原创 2018-05-25 20:55:33 · 366 阅读 · 0 评论 -
Android的简单介绍
定义Android早期由”Android之父”之称的Andy Rubin创办,Google于2005年并购了成立仅22个月的高科技企业Android,展开了短信、手机检索、定位等业务,基于Linux的通用平台进入了开发。Google公司在2007年11月5日正式公布这个操作系统,2008年,Patrick Brady于Google I/O演讲”Anatomy & Physiology ...转载 2018-05-25 20:43:13 · 1509 阅读 · 0 评论 -
三种点击事件
第一种点击事件:界面代码:`这里写代码片<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...原创 2018-04-28 13:36:00 · 364 阅读 · 0 评论 -
常用的对话框事件(3种)
//常用的对话框事件 点击事件是用android:onClick=”xxx” public void xxx(View v){…} 页面布局这里写代码片&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android...原创 2018-05-17 19:34:15 · 436 阅读 · 0 评论 -
简易Android计算器(有bug)
简易Android计算器(有bug)页面概括:1.整体采用线性布局 2.该计算器没有小数点计算 3.存在的BUG比较多 4.仅供参考 5.布局没有代码注释布局代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http:/...原创 2018-05-10 20:37:47 · 737 阅读 · 0 评论 -
AutoCompleteTextView自动输入提示
布局代码:这里写代码片<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...原创 2018-04-30 13:04:37 · 126 阅读 · 0 评论 -
Spinner下拉列表控件
布局代码:这里写代码片<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...原创 2018-04-30 10:33:44 · 249 阅读 · 1 评论 -
LIstView垂直显示列表控件
布局代码:这里写代码片<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:orien...原创 2018-04-30 09:41:46 · 942 阅读 · 0 评论 -
BMI项目
一个小程序项目:计算体重指数(BMI)界面效果:整体是线性布局,里面嵌套一个相对布局,用到了三种控件,<TextView />、<EditText />和<Button />。效果图:框架代码:<TextView android:id="@+id/tv1" android:layout_width="match_parent" a...原创 2018-04-19 09:29:28 · 1272 阅读 · 0 评论 -
项目——音乐播放
音乐播放 服务service: 1.特点: ①service不能够自动运行需要通过对象来调用 开启服务:startService() 关闭服务:stopService() ②service没有界面,不用添加布局,在后台运行Android的组件 2.生命周期: onCreate...原创 2018-06-02 00:17:37 · 588 阅读 · 0 评论