- 博客(6)
- 收藏
- 关注
原创 git 全局配置文件
1 [user] 2 name = xxxxxx 3 email = xxx@xxx.com 4 [color] 5 ui = auto 6 [color] 7 diff = true 8 status = true 9 branch = true 10 [colo...
2018-04-17 14:58:20 2591
原创 ScrollView 和 软件键盘弹出 整体布局上移问题
问题描述:在ScrollView 设置了android:scrollbars="none" 之后 再弹出软键盘 整体布局上移这样以来我们没法再用 android:scrollbars="none" 解决办法:在代码中设置隐藏 mChatScrollView.setVerticalScrollBarEnabled(false);或设置滚动条为透明色即可:android:scrollbarThu...
2018-04-16 16:53:33 4838
原创 FileProvider 和 ContentProvider 联合使用
介绍:这里只是我的使用 只是一个思路而已 遇到一个需求需要共享私有目录的文件,供其他APP使用。不能跳转获取,我看网上大部分说FileProvider 的使用都是通过Intent 跳转 在 onActivityResult() 方法获取返回的Uri。本方法主要利用的是ContentProvider 来对外提供方法使用。还利用Uri 本身可以使用String 相互转换。FileProvider的使...
2018-04-13 11:31:45 2638
原创 Android 使用replaceAll() 替换“+” 或 "*"报java.util.regex.PatternSyntaxException
源代码String s = newText.toString();s = s.replaceAll("+", "\n +");s = s.replaceAll("-", "\n - ");s = s.replaceAll("*", "\n * ");s = s.replaceAll("/", "\n / ");运行时,出现异常,具体信息如下:
2018-04-10 14:37:59 1781
原创 Android 仿苹果siri语音动效
import android.animation.Animator;import android.animation.AnimatorListenerAdapter;import android.animation.ValueAnimator;import android.content.Context;import android.graphics.Canvas;import ...
2018-04-03 16:11:06 9140 5
原创 Android 系统自带的社会化分享
分享到朋友圈 /** * 分享信息到朋友圈 */ private void shareToFriendsQuan(String file) { Intent intent = new Intent(); ComponentName componentName = new ComponentName("com.tencent.mm",...
2018-04-03 15:42:22 445
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人