- 博客(8)
- 资源 (6)
- 收藏
- 关注
原创 Only the original thread that created a view hierarchy can touch its views.错误记录
Only the original thread that created a view hierarchy can touch its views.错误记录
2022-07-26 16:14:13
3554
原创 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader错误记录
错误分析:加载.so包报错,在这个错误后面一般还会跟一串路径,在这个路径下面没有找到当前需要的.so包.一般是程序在运行过程中调用System.loadLibrary(“xxxxxxxx”)的时候报错的.解决思路:检查自己是不是把libxxxxxx.so文件放在正确的位置,然后重新打包。so包放的位置分为两种,一种是放在libs文件夹下面(一般是兼容以前的Eclipse的工程),一种是放在jniLibs文件夹下(现在用AndroidStudio...
2022-04-11 10:32:23
843
1
原创 Android设置EditText键盘输入字母和数字
1.布局中设置: android:inputType="number" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"2.代码中设置: EditText editText = (EditText) findViewById(R.id.edittext); String digists = "0123456789abcdefghigklmnopqrstuv...
2020-11-30 09:39:36
2542
原创 Android List之间赋值的坑(深浅复制)
最近写了一个功能,里面有些关于list之间复制的问题,在网上查了很多最后才解决.虽然网上有很多方法了,但有些并不是能解决我的问题的,在这里做一个总结. 功能需求是从接口获取数据填充界面后,对界面进行修改,有个恢复默认的按钮,点击恢复到修改之前的样子,不再重新请求接口,而是在本地进行处理. 我这里使用两个list保存相同的数据,有一个list随着操作的改变而改变,有一个只...
2019-08-05 15:56:46
4067
1
原创 动态添加布局并设置点击事件
加载在线图片并点击预览功能实现。主界面布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" and...
2018-09-11 10:59:09
1196
原创 Android本地数据搜索实现
主界面布局:<LinearLayout xmlns:android =“http://schemas.android.com/apk/res/android” xmlns:tools =“http://schemas.android.com/tools” android:layout_width =“match_parent” android:layout_heigh...
2018-07-11 17:02:20
4975
1
原创 Android点击事件隐藏软键盘
方法一://如果显示则隐藏,如果隐藏则显示private void closeKeyboard() { InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // 得到InputMethodManager的实例 ...
2018-07-09 15:16:39
1638
android-support-v7-recyclerview
2017-10-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人