自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 利用data文件恢复MySQL数据库

1.拷贝data文件夹,找到mysql 数据库对应目录,放入文件2. 执行service mysqld restart如果有报错tail -n 100 /var/log/mysqld.log查看报错信息并解决错误1:mysql无法启动,日志文件显示“Ignoring the redo log”https://blog.csdn.net/baidu...

2019-05-05 15:07:08 1245

原创 关于sqlite查询cursor取值的问题

发现一个sql 查询的问题friend表中 字段名为 isBothersqlite是忽略大小写的查询的时候如果这样写查询条件 friends.isbother=1,从curcor 中取值的时候 必须这样写cursor.getColumnIndex("isbother") ,这样写cursor.getColumnIndex("isBother") 是取不到的,而如果 你使用 select * ...

2019-04-27 16:15:13 1599

转载 Android layout_margin 无效的解决办法

Android layout_margin 无效的解决办法1、如果LinearLayout中使用Android:layout_marginRight不起作用,通过测试原来在android2.x中,如果一个控件中有android:layout_gravity属性,就会出现android:layout_marginRight没有应有的效果,而是把左边距加到右边距上去,直接去掉android:...

2019-04-24 22:52:39 5670

原创 关于This usually happens when two views of different type have the same id in the same hierarchy

activity的onRestoreInstanceState 方法抛出This usually happens when two views of different type have the same id in the same hierarchyprotected void onRestoreInstanceState(Bundle savedInstanceState) 注意检...

2018-11-12 19:45:11 2357

原创 Fillder 使用记录

https://www.cnblogs.com/yyhh/p/5140852.html

2018-11-07 14:46:48 1274

原创 监听键盘弹出的方法总结(两个)

private View activityRootView; //屏幕高度 private int screenHeight = 0; //软件盘弹起后所占高度阀值 private int keyHeight = 0; @Override protected void onDestroy() { super.onDestro...

2018-03-28 11:08:19 455

转载 Android Studio:如何处理不同引用库(module)里jar的重复引用

Android Studio:如何处理不同引用库(module)里jar的重复引用将Module对jar的依赖关系从compile改为provided,这样jar文件将只能提供给对应的module使用,而外部无法通过编译获取。方法一:通过gradle配置123depe

2017-12-05 17:24:00 1478

原创 欢迎使用CSDN-markdown编辑器

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.andro

2017-10-14 15:19:51 152

原创 解决mysql插入中文乱码的问题

characterEncoding=gbk 加入这个就可以了private static Connection getConnection() { Connection conn = null; // 驱动程序名 String driver = "com.mysql.jdbc.Driver"; // URL指向要访问的数据库名mydat

2017-09-01 10:09:47 191

转载 Android使用react-native-video 播放视频一直重复播放的解决方法

问题描述,github里React native社区的react-native-video 插件,一直以来存在安卓平台下无论怎么设props的rate={0}和pause={true}都会自动播放,不用琢磨了代码写对不对,其实是这个插件自己的问题。这个插件的问题其实也老早就被发现了,就这个问题特么至少有5个pull request了吧,只是那个作者太懒得更新。截止今日,解决方案已经早被网友在#625

2017-08-11 20:51:58 2560

原创 AlertDialog更改按钮颜色

如果没有调用Show 方法AlertDialog.getButton(DialogInterface.BUTTON_POSITIVE) 为 null。AlertDialog 的逻辑是 show()方法 中初始化了 AlertDialog 上面的控件,然后展示出来,所以在 show()方法 执行之后才能得到 button。 final AlertDialog alertDialog = new Al

2017-07-06 11:26:15 2920

原创 Android 关于观察者模式使用代码总结

public class Person extends Observable { private int id; private String name; public int getId() { return id; } public void setId(int id) { this.id = id; setCha

2017-07-05 18:12:30 248

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除