- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 Android Studio权限问题,以读取联系人列表为例
废话不多说直接上代码package com.example.administrator.callpermission;import android.Manifest;import android.content.Intent;import android.content.pm.ComponentInfo;import android.content.pm.PackageManage...
2018-12-28 16:37:39 2204
原创 AndroidStudio中Activity之间intent传递数据方法汇总
第一种:传递简单的字符串,或者数字:发送:String ss="这是一个字符串"Intent intent=new Intent();intent.setClass(A.this,B.Class)intent.putExtra("data",ss);startActivity(intent);接收:Intent intent=getIntent();String...
2018-12-27 13:53:24 8113 1
原创 android studio 通过左滑右滑屏幕实现界面跳转
宏观来说;我要实现四个界面的跳转name就需要四个类 分别继`承Fragment 在这四个类中分别重写onCreateView,添加如下代码 View view =inflater.inflate(R.layout.firstfragment,container,false); return view;代码中对应的的layout分别为四个类对应的布局文件,这四个布局文件中的:...
2018-12-04 13:50:41 7245
原创 android studio 添加控件的三种方式
写在这里以作笔记。第一种:布局文件中添加布局文件中:<android.support.percent.PercentFrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText ...
2018-12-03 19:49:23 7840 1
防止RadioButton在RecyclerView中滑动出现错乱
2019-01-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人