- 博客(11)
- 问答 (1)
- 收藏
- 关注
原创 图片缩放动画
AnimationSet animationSet = new AnimationSet(true);ScaleAnimation scaleAnimation = new ScaleAnimation(1,0.97f,1,0.97f, Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);//0.3秒
2017-10-31 15:50:33 305
原创 intent传bitmap
Intent intent = new Intent(getActivity(), QRcodeActivity.class);byte buf[] = new byte[1024 * 1024];buf = Bitmap2Bytes(mBitmap);intent.putExtra("photo_bmp", buf);startActivity(intent);
2017-10-31 15:49:18 591
原创 退出登录AlertDialog弹框
new AlertDialog.Builder(getActivity()) .setTitle("提示") .setMessage("确定退出登录?")// .setIcon(R.drawable.quit)
2017-10-31 15:47:59 320
原创 双击返回按钮退出App
/** * 点击退出键土司再按一次退出程序 */private long exitTime = 0;@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCOD
2017-10-31 15:44:51 446
原创 异步加载
public class Main2Activity extends AppCompatActivity { private ListView lv; //path路径String path="http://japi.juhe.cn/joke/content/list.from?key=94fbc7ec2262160140d71e1418322f34
2017-02-21 20:41:28 339
原创 自定义下载圆形进度条
public class Circle extends View{ OnClickListener onClickListener; //画整个圆圈的画笔 Paint paint; //画当前进度条的画笔 Paint cpaint; Paint percentpaint; //最大进度 int max
2017-01-03 19:00:51 281
原创 自己实现侧滑框
public class SildeMemuActivity extends AppCompatActivity implements View.OnTouchListener { LinearLayout ll_left; LinearLayout ll_main; /* * left 在第一次按下的时候获取左边距 * isf
2017-01-03 18:55:12 201
原创 自定义view画圆
import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.Rect;import android.util.AttributeSet;impo
2016-12-28 16:32:43 211
原创 自动轮播
import java.util.ArrayList;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.support.v4.view.PagerAdapter;import android.support.v4.view.ViewPag
2016-12-21 10:09:33 298
原创 Fragment复用Demo
import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;import java.util.ArrayList;import org.jso
2016-12-19 20:43:32 652
原创 xListview
package com.bwei.wenhuan;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.MalformedURLException;
2016-12-19 20:33:21 317
空空如也
哪位大神做过这个会议室预约的效果
2017-10-31
TA创建的收藏夹 TA关注的收藏夹
TA关注的人