05 2017 档案

//延迟两秒跳转 new handler().postDelayed
摘要://延迟两秒跳转 new Handler().postDelayed(new Runnable() { @Override public void run() { Intent intent=new Intent(MainActivity.this, Leansons.class); startAc 阅读全文

posted @ 2017-05-31 18:01 yaolunhui 阅读(163) 评论(0) 推荐(0) 编辑

Bitmap转圆形图片Bitmap
摘要:private Bitmap toRoundBitmap(Bitmap bitmap) { //--Bitmap转圆形图片Bitmap int width = bitmap.getWidth(); int height = bitmap.getHeight(); float roundPx; flo 阅读全文

posted @ 2017-05-31 15:41 yaolunhui 阅读(204) 评论(0) 推荐(0) 编辑

//--合并两张图片 BITMAP
摘要:private Bitmap toConformBitmap(Bitmap background, Bitmap foreground) { //--合并两张图片 if( background == null ) { return null; } int bgWidth = background.g 阅读全文

posted @ 2017-05-31 15:41 yaolunhui 阅读(402) 评论(0) 推荐(0) 编辑

在代码中修改TextView的DrawableRight图片
摘要:<TextView android:id="@+id/textciew1" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#000" android:drawa 阅读全文

posted @ 2017-05-31 14:38 yaolunhui 阅读(608) 评论(0) 推荐(0) 编辑

Android打开某个activity时自动弹出输入法键盘
摘要:最近在做一个可以让用户修改自己账户资料的activity,具体是打开后有一个EditText,然后用户可以在这里输入相关信息,但是做好后发现,进入这个activity时系统并没有自动弹出输入法键盘,于是上网搜索,发现一个很简单的方法,就是在manifest清单文件对应的activity配置中加入一句 阅读全文

posted @ 2017-05-02 10:16 yaolunhui 阅读(197) 评论(0) 推荐(0) 编辑

导航