- 博客(5)
- 收藏
- 关注
原创 欢迎使用CSDN-markdown编辑器
Android Kotlin 踩坑之旅 –> setOnTouchListener在写kotlin时,想自定义一个按钮,于是用setOnTouchListener,发现使用Kotlin时return 直接return 会退出外部类,而不是内部类,试了好几次发现原来不需要return…holder.view.setOnTouchListener { v, event -> if (ev
2017-07-31 15:08:43 190
转载 AlertDialog 简单自定义
<style name="MyAlertDialog"parent= "Theme.AppCompat.Light.Dialog.Alert"> //用于改变Button 的颜色 @color/colorAccent //用于改变Message 字的颜色 #000000 //用于改变Dialog 的背景颜色 #4CAF5012345678910 然后只需要在代码中这样声明,就可以使用自定
2016-05-16 13:33:08 318
原创 将图片切成圆形
public static Bitmap getcircleAvatar (Context context ,Bitmap avatr){ Bitmap bitmap =Bitmap . createBitmap( avatr .getWidth () , avatr .getHeight () , Bitmap .Config . ARGB_8888) ; Can
2016-05-16 13:27:55 441
转载 获取安卓音乐专辑图片
public class ArtworkUtils { private static final Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart"); private static final BitmapFactory.Options sBitmapOptions = new Bi
2016-05-16 13:23:27 504
原创 调用系统添加联系人界面的套路
调用系统添加联系人的套路(4.0.3)之后适用。 Intent intent=new Intent(ContactsContract.Intents.Insert.ACTION); intent.setType(ContactsContract.RawContacts.CONTENT_TYPE)
2016-05-03 19:39:56 331
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人