
android
文章平均质量分 83
qa962839575
这个作者很懒,什么都没留下…
展开
-
andriod之有序广播
主显示布局以及代码:(总结:这里只是通过设置相同的action的name来启动多个接受者,通过设置的接受者等级,按顺序执行相应的reciever,还有就是可以中途传递参数值,还有就是要调用sendOrderedBroadcast这个方法)activity_main.xml: xmlns:tools="http://schemas.android.com/tools"原创 2014-12-21 18:33:13 · 393 阅读 · 0 评论 -
android第三天--AbsoluteLayout绝对布局
AbsoluteLayout绝对布局:layout/activity_main.xml <AbsoluteLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match...2014-11-14 11:18:00 · 130 阅读 · 0 评论 -
andriod之log打印
先设置自己的log打印:然后在activity类入口写log代码:3:结果:2014-11-14 12:37:00 · 134 阅读 · 0 评论 -
andorid之帧布局FrameLayout
FrameLayout(帧布局):layout/activity_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent...2014-11-16 18:40:00 · 91 阅读 · 0 评论 -
android之网格布局GridLayout
TableLayout(网格布局)需要注意的:网格布局需要最低版本支持:API 14 也就是最低andriod4.0:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_paren...2014-11-16 19:49:00 · 279 阅读 · 0 评论 -
android之线性布局LinearLayout以及weight权重使用
LinearLayout(线性布局)::layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_pa...2014-11-20 15:57:00 · 238 阅读 · 0 评论 -
android之网格布局和线性布局实现注册页面
android之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<?xml version="1.0" encoding="utf-...2014-11-21 17:00:00 · 164 阅读 · 0 评论 -
android之实现各个组件点击事件处理
android之实现各个组件点击事件处理:注意:(TextView这个组件要点击产生效果的话,要设置,android:clickable="true"这个属性)布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools...2014-11-22 13:09:00 · 172 阅读 · 0 评论 -
android之实现各个组件点击事件监听
注意:(TextView这个组件要点击产生效果的话,要设置,android:clickable="true"这个属性)布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.androi...2014-11-22 14:52:00 · 172 阅读 · 0 评论 -
eclipse中发布andriod应用时出现Error in an XML file: aborting build解决
当出现Error in an XML file: aborting build这个错误的时候,我们项目本身是没有问题的,但是还是报Error in an XML file: aborting build这个错了,所以我们要重新编译下:解决方案: project---》clean--》选中要发布的项目然后clean,就可以了哦,呵呵 ...2014-11-14 10:37:00 · 428 阅读 · 0 评论 -
andriod_第二天_表格布局
TableLayout(相对布局):layout/activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="ma...2014-11-14 10:09:00 · 97 阅读 · 0 评论 -
android第一天
RelativeLayout(相对布局):layout/activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match...2014-11-14 08:25:00 · 91 阅读 · 0 评论 -
andriod之BroadcastReciever--广播接受者,之初认识
主显示布局以及代码:activity_main.xml xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/原创 2014-12-21 14:22:19 · 568 阅读 · 0 评论 -
andriod之ContentProvider读取外部存储图片
java代码:package com.sxt.day07_08;import android.os.Bundle;import android.provider.MediaStore;import android.provider.MediaStore.Images;import android.app.Activity;import android.content原创 2014-12-21 19:30:04 · 3217 阅读 · 0 评论 -
andriod之ContentProvider读取外部存储视屏
主显示布局以及代码:activity_main.xml: android:layout_width="match_parent" android:layout_height="match_parent" > android:id="@+id/gallery" android:layout_width="ma原创 2014-12-21 19:40:49 · 770 阅读 · 0 评论 -
线程通信之handle用法
主显示布局以及代码:activity_main.xml: xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vert原创 2014-12-03 14:23:27 · 630 阅读 · 0 评论 -
andriod之手动下载更新package的文件
Android应用开发相关下载资源(1)Android SDK (Android SDK主安装包,包含SDK Manager、AVD Manager、工具包tools,释放后的根文件夹为android-sdk-windows):revision 22.6.2http://dl.google.com/android/android-sdk_r22.6.2-windows.ziph原创 2014-12-13 22:43:21 · 1197 阅读 · 0 评论 -
andriod之客户端连接服务端通信
主显示布局以及代码:activity_main.xml:(总结:1、这里犯了一个很大的错误:找了好久,真是血的教训啊,就是我写登陆事件的时候,本来是用一个工作线程去连接网络的,但是我没写new thread(),直接写代码了,但是andriod是不予许用主线程去连接网络的,所以就会报错,牢记啊。2、关于更改ui的操作之类的,是不能再工作线程操作的,必须在主线程中操作,因为Andro原创 2014-12-14 19:19:20 · 758 阅读 · 0 评论 -
Hybrid App
http://wex5.com/cn/wex5/?utm_source=Baiduhttp://www.appcan.cn/Hybrid App和phonegap分类: phonegap2014-04-11 10:45 1555人阅读 评论(0) 收藏 举报 随着基于HTML5的Web App的发展,这时候Hybrid原创 2015-09-03 17:13:24 · 789 阅读 · 0 评论 -
android之实现ProgressBar进度条组件
android之实现ProgressBar进度条组件:(注意:横向那个进度条要android4.0以上版本支持,也就是最低(android:minSdkVersion="14")支持)布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android...2014-11-23 14:25:00 · 167 阅读 · 0 评论 -
android之实现SeekBar拖动组件
android之实现SeekBar拖动组件:布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="mat...2014-11-23 14:48:00 · 139 阅读 · 0 评论 -
android之ArrayAdaper应用
listView页面布局:layout/activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"a...2014-11-30 10:18:00 · 108 阅读 · 0 评论 -
android之ArrayAdaper之Spinner
listView页面布局:layout/activity_main.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"and...2014-11-30 10:26:00 · 86 阅读 · 0 评论 -
android之GridView和Gallery
GridView:/activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:la...2014-11-30 23:11:00 · 94 阅读 · 0 评论 -
andriod之对话框--标准对话框、列表对话框、自定义对话框
activity_main.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"&...2014-11-30 23:32:00 · 127 阅读 · 0 评论 -
android之listView缓存机制
activity_main.xml:<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...2014-12-01 14:05:00 · 138 阅读 · 0 评论 -
android之listView之增删改查
主显示布局以及代码:activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:l...2014-12-02 22:24:00 · 759 阅读 · 0 评论 -
线程通信之handle用法
主显示布局以及代码:activity_main.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"androi...2014-12-03 14:23:00 · 277 阅读 · 0 评论 -
线程通信之looper之用法--主线程和工作线程
说明:(之前只用handle是因为主线程默认就加上Looper.prepare()和Looper.loop()的。所以主线程可以通过handle收发信息,但是如果在thread里面的话,就是工作线程,工作线程的话,默认是没有加上那两段代码的,所以要手动加上,然后再通过handle.sendMessage()发送信息到工作线程才能取到信息)主显示布局以及代码:activity_mai...2014-12-03 21:47:00 · 422 阅读 · 0 评论 -
android之simpleAdaper应用
listView页面布局:layout/activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"a...2014-11-30 09:40:00 · 106 阅读 · 0 评论 -
android之ListView和adapter配合显示图片和文字列表
listView页面布局:layout/activity_main.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"and...2014-11-29 13:00:00 · 2282 阅读 · 0 评论 -
android之启动桌面activity
主页面布局:layout\activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation...2014-11-27 21:04:00 · 216 阅读 · 0 评论 -
android之实现注册功能
android之实现注册功能:注意:(1、之前一直找不到不成功 的原因,经过调试,找到了,原来是:Toast.makeText(this, "用户名不能为空", 2000).show()没调用show方法;2、在switch下的case语句后一定要加break,不然他就会一直执行下一个case的)布局:layout/activity_main.xml<?xml version=...2014-11-23 17:32:00 · 182 阅读 · 0 评论 -
android之无返回结果跳转intent
android之无返回结果跳转intent:(注意跳转的时候要传像user的对象必须实现Serializable接口)登陆页面布局:layout/activity_login.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schema...2014-11-23 19:00:00 · 167 阅读 · 0 评论 -
android之有返回结果跳转intent
android之有返回结果跳转intent:(1、注意跳转的时候要传像user的对象必须实现Serializable接口,2、login的java代码中setResult(RESULT_OK, intent);后一定要调用finish()方法)主页面布局:layout/activity_main.xml:<RelativeLayout xmlns:android="http:/...2014-11-23 20:16:00 · 145 阅读 · 0 评论 -
android之activities的生命周期
生命周期图片:测试主页面布局::layout/activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_...2014-11-27 10:00:00 · 156 阅读 · 0 评论 -
android之bundle传递数据--两个activities之间
登陆页面布局:layout/activity_login.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:l...2014-11-27 13:12:00 · 131 阅读 · 0 评论 -
android之纵横屏幕切换时保存数据
java代码:package com.sxt.day04_05;import java.io.IOException;import java.io.InputStream;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import com.sxt.day04_05...2014-11-27 15:50:00 · 219 阅读 · 0 评论 -
android之隐示意图跳转启动另一个activity
主面板布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation...2014-11-27 16:41:00 · 374 阅读 · 0 评论 -
android之隐示意图--在一个 <intent-filter>意图中用两个action启动这个activity
主页面布局:layout/activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="...2014-11-27 17:03:00 · 149 阅读 · 0 评论