![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
文章平均质量分 73
never123450
javaweb 自学还未成才
展开
-
Android广告和发布的市场
Android广告和发布市场转载 2015-11-26 15:44:48 · 675 阅读 · 0 评论 -
获取SD卡上所有的图片
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-11 09:31:22 · 542 阅读 · 0 评论 -
播放SD卡上全部音频文件
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-12 14:38:52 · 1623 阅读 · 0 评论 -
动画连续播放
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-10 15:11:40 · 368 阅读 · 0 评论 -
旋转平移,缩放,透明度渐变的补间动画
anim_alpha.xml <alpha android:duration="2000" android:fillAfter="true" android:fromAlpha="1" android:repeatCount="1" android:repeatMode="reverse"原创 2014-07-10 16:05:10 · 525 阅读 · 0 评论 -
创建上下文菜单
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-07 17:54:38 · 408 阅读 · 0 评论 -
简易涂鸦板
fragment_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout原创 2014-07-08 18:31:54 · 480 阅读 · 0 评论 -
原始XML资源
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5px" android原创 2014-07-07 14:26:57 · 296 阅读 · 0 评论 -
显示用户触摸持续的时间
MainActivity.javapackage com.xwy.shi;import android.support.v4.app.Fragment;import android.app.Activity;import android.os.Bundle;import android.view.LayoutInflater;import android.view.Menu;im原创 2014-07-07 09:27:54 · 955 阅读 · 0 评论 -
使用soundPool播放音频
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-11 16:18:37 · 419 阅读 · 0 评论 -
实现探照灯效果
activity_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/frameLayout1" android:layout_widt原创 2014-07-11 14:08:02 · 1414 阅读 · 0 评论 -
帧动画
motionleft.xml原创 2014-07-11 10:32:23 · 276 阅读 · 0 评论 -
网上常用免费的webservice
天气预报Web服务,数据来源于中国气象局 公用事业 http://www.webxml.com.cn/WebServices/WeatherWebService.asmx中国股票行情分时走势预览缩略图 http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx中国股票行情数据 WEB 服务(支持深圳和上海股市的基金、债券和股转载 2015-11-18 10:23:16 · 6124 阅读 · 0 评论 -
xUtils
xUtils转载 2015-11-17 18:56:25 · 353 阅读 · 0 评论 -
安卓笔记
一.任务栈&启动模式1.一个应用程序一般都是由多个activity组成的。2.任务栈(task stack)(别名back stack后退栈) 记录存放用户开启的activity的。3.一个应用程序一被开启系统就给他分配一个任务栈,当所有的activity都退出的时候,任务栈就清空了。4.任务栈的id是一个integer的数据类型 自增长的。5.在android操作系统里面会存转载 2015-09-11 15:50:54 · 263 阅读 · 0 评论 -
多线程下载
import java.io.File;import java.io.InputStream;import java.io.RandomAccessFile;import java.net.HttpURLConnection;import java.net.URL;public class MutitleThreadDownload { private static int th原创 2015-09-09 15:56:18 · 271 阅读 · 0 评论 -
多彩的霓虹灯
Color.xml #ffff0000 #ffff6600 #ffffff00 #ff00ff00 #ff00ffff #ff0000ff #ff6600ff原创 2014-07-14 09:33:26 · 306 阅读 · 0 评论 -
获取联系人的Id和姓名
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-13 18:16:17 · 366 阅读 · 0 评论 -
简易打地鼠
activity_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/f1" android:layout_width="match_p原创 2014-07-14 10:09:11 · 801 阅读 · 0 评论 -
实现闪烁灯星星动画
activity_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="原创 2014-07-11 14:33:58 · 1135 阅读 · 0 评论 -
Android URI简介
就Android平台而言,URI主要分三个部分:scheme, authority and path。其中authority又分为host和port。格式如下:scheme://host:port/path举个实际的例子:content://com.example.project:200/folder/subfolder/etc\---------/ \-------------转载 2014-07-06 09:26:23 · 268 阅读 · 0 评论 -
带头像的用户注册页面
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-02 16:27:05 · 2706 阅读 · 0 评论 -
按下图片和没按下图片的不同状态
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-06-29 12:56:33 · 315 阅读 · 0 评论 -
日期拾取器
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"原创 2014-06-29 12:12:07 · 369 阅读 · 0 评论 -
列表选择框spinner
MainActivity.javapackage com.xwy.a;import android.support.v7.app.ActionBarActivity;import android.support.v7.app.ActionBar;import android.support.v4.app.Fragment;import android.app.Activity;im原创 2014-06-28 22:23:24 · 276 阅读 · 0 评论 -
eclipse Adb启动不了的问题总结
找了很多原因,最终是这个原因:重启adb就可以了转载 2014-03-14 20:44:06 · 465 阅读 · 0 评论 -
保存数据到手机内存
main.xml xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddi转载 2014-04-12 18:25:41 · 417 阅读 · 0 评论 -
测试
根据测试 是否知道源代码:转载 2014-04-10 16:33:40 · 324 阅读 · 0 评论 -
多线程下的下载原理
*1.本地创建一个大小跟服务器文件相同大小的临时文件 *2.计算分配几个线程去下载服务器上的资源,知道每个线程下载的位置 *3.开启多(3)个线程,没个线程下载对于位置的文件 *4.如果所有的线程,都把自己的数据下载完毕了,服务器上的资源就被下载到本地原创 2014-05-11 10:48:47 · 319 阅读 · 0 评论 -
点击事件的4种写法
package com.itheima.adil;import android.net.Uri;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.text.TextUtils;import android.view.Men转载 2014-04-09 11:35:26 · 588 阅读 · 0 评论 -
计时器
MianActivity.javapackage com.xwy.a;import android.support.v4.app.Fragment;import android.app.Activity;import android.os.Bundle;import android.os.SystemClock;import android.view.LayoutInflater;原创 2014-06-29 12:08:59 · 191 阅读 · 0 评论 -
实现带图标的ListView
MainAcivity.javapackage com.xwy.b;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import android.support.v4.app.Fragment;import android.app.Act原创 2014-06-29 15:59:59 · 468 阅读 · 0 评论 -
singletask,singleInstance,singletop
android:launchMode="singleTop" android:name="com.xwy.testtaskstack.Activity02" android:label="@string/activity02" > singletask原创 2014-05-26 15:40:31 · 375 阅读 · 0 评论 -
使用Bundle在Activity之间交换数据
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-02 10:15:45 · 403 阅读 · 0 评论 -
使用AlertDialog创建对话框
MainActivity.javapackage com.mingrisoft;import android.app.Activity;import android.app.AlertDialog;import android.app.AlertDialog.Builder;import android.content.DialogInterface;import android.原创 2014-07-01 14:55:58 · 413 阅读 · 0 评论 -
根据身高计算体重
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-02 11:00:44 · 546 阅读 · 0 评论 -
带图标的列表对话框
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"原创 2014-07-01 15:12:12 · 515 阅读 · 0 评论 -
显示在标题上的进度条
fragment_main<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_he原创 2014-07-01 10:36:15 · 328 阅读 · 0 评论 -
小部件
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-06-30 14:08:06 · 269 阅读 · 0 评论 -
幻灯片式图片浏览器
fragment_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2014-07-01 12:27:00 · 576 阅读 · 0 评论