自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 写一个二维码

Bitmap logo = BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher); try { Bitmap bitmap = CodeCreator.createQRCode(name,400,400,logo); image.setImageBitmap(bitmap); } catch (WriterExcepti...

2018-12-09 21:22:46 310 1

原创 POST 方式请求网络接口(带参)

public class HttpUtils { private static String inputStr; public static String post(String urlStr, String mobile, String password) throws Exception { URL url = new URL(urlStr); HttpUR...

2018-12-06 18:57:57 1066 1

原创 自定义View---------流式布局

public class MyView extends LinearLayout { //****************** private final int widthPixels; public MyView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); DisplayMet...

2018-12-02 19:57:37 104 1

原创 自定义View-----转盘抽奖

//该类继承View 实现点击 public class MyView extends View implements View.OnClickListener{ //颜色集合 private int[] colors = new int[]{Color.RED,Color.YELLOW,Color.GREEN, Color.BLUE,Color.CYAN,Color.LTGRAY}; //扇形...

2018-12-02 19:54:30 110

原创 侧拉

xml布局 private DrawerLayout drawer_layout; private ActionBarDrawerToggle toggle; private void initActionBar() { //给main布局定义的id drawer_layout = findViewById(R.id.drawer_layout); //new一个actionBar Action...

2018-10-24 19:39:58 119 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除