- 博客(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关注的人