![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 73
pioself
这个作者很懒,什么都没留下…
展开
-
android-----进度条
new Thread() { public void run() { while (status < 100) { // 获取耗时操作的完成百分比 status ++;//doWork(); try { Thread.sleep(100); } catch (InterruptedException e) {原创 2014-11-19 21:11:28 · 461 阅读 · 0 评论 -
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="match_p原创 2014-11-22 20:23:28 · 535 阅读 · 0 评论 -
android-----开关ActionBar,开关状态栏
package com.example.apptwo;import android.os.Bundle;import android.annotation.SuppressLint;import android.app.ActionBar;import android.app.Activity;import android.view.Menu;import android.view.原创 2014-11-19 20:12:58 · 595 阅读 · 0 评论 -
图片url转成Drawable
图片url转成Byte[],Byte[]转成Drawable 之所以要转成Byte[],是为了能方便的保存在本地InputStream is = (InputStream) new URL(source).getContent();ByteArrayOutputStream outStream = new ByteArrayOutputStream();int len=-1;byte原创 2015-04-12 14:20:26 · 4127 阅读 · 0 评论