![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓开发
小菜安卓
这个作者很懒,什么都没留下…
展开
-
simpleAdapter 简单实用方法
private int [] name = {R.string.kaoqin,R.string.chuangyikejian,R.string.lianxiyuanzhang,R.string.kecheng, R.string.shipu,R.string.xueshengzuopin,R.string.huodong,R.string.studentinformation,R原创 2016-10-09 15:28:12 · 330 阅读 · 0 评论 -
popupwindow
private void showPopupWindow(View view){ popupWindow = new PopupWindow(view, LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT); popupWindow.setBackgroundD原创 2016-11-12 14:14:23 · 274 阅读 · 0 评论 -
activity的4种启动方式
standard默认模式,可以不用写配置。在这个模式下,都会默认创建一个新的实例。因此,在这种模式下,可以有多个相同的实例,也允许多个相同Activity叠加。singleTop可以有多个实例,但是不允许多个相同Activity叠加。即,如果Activity在栈顶的时候,启动相同的Activity,不会创建新的实例,而会调用其onNewIntent方法。si原创 2016-10-08 17:02:01 · 203 阅读 · 0 评论 -
android设置本地图片到imageview
通过将图片路径转换成为bitmap 或者uri,然后设置到控件上String s = Environment.getExternalStorageDirectory().getAbsolutePath() + "/downdown/123.jpg"; Bitmap bitmap = BitmapFactory.decodeFile(s);原创 2016-10-30 16:55:25 · 12212 阅读 · 1 评论 -
逍遥安卓连接androidstudio
cmd 命令D:\sdk\platform-tools>adb connect 127.0.0.1:21503原创 2016-10-27 09:49:09 · 5503 阅读 · 0 评论 -
致新手 android中ScrollView嵌套listview
先看效果 画质有点垃圾 格式工厂转换的布局文件<ScrollView android:layout_height="match_parent" android:layout_width="match_parent" android:fillViewport="true" android:id="@+id/sv" xmlns:andro原创 2016-10-15 15:47:47 · 410 阅读 · 0 评论 -
安卓6.0运行时权限,终极答案
//打电话方法public void doCall() { Intent intentPhone = new Intent(Intent.ACTION_CALL, Uri.parse("tel:15538307513")); startActivity(intentPhone);}//检查打电话权限,点击就会回调下面的方法哦public void checkCallPe原创 2016-09-29 14:02:35 · 474 阅读 · 0 评论 -
DatePickerDialog的实现
DatePickerDialog dialog = new DatePickerDialog(StudentInfoActivity.this,// new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, i原创 2016-10-11 12:23:24 · 359 阅读 · 0 评论 -
使用GSON解析json成Bean
//解析jsonObjectJSONObject data = jsonObject.getJSONObject("data");Gson gson = new Gson();Type type = new TypeToken(){}.getType();Bean bean = gson.fromJson(String.valueOf(data), type);//解析原创 2016-10-09 19:52:34 · 1781 阅读 · 0 评论 -
图片加边框
LinearLayout android:id="@+id/linear_studentphoto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/shape_photo_bg" > Im原创 2016-11-14 13:21:06 · 423 阅读 · 0 评论