自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 React Native物理back键详解

componentWillMount() { if (Platform.OS === 'android') { BackAndroid.addEventListener('hardwareBackPress', this.onBackAndroid); } } componentWillUnmount() { if (Platform.OS === 'a

2016-08-10 11:26:11 5730

转载 Android点击EditText文本框之外任何地方隐藏键盘的解决办法

通过dispatchTouchEvent每次ACTION_DOWN事件中动态判断非EditText本身区域的点击事件,然后在事件中进行屏蔽。@Override public boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { V

2016-08-10 11:22:10 390

原创 ReactJS组件生命周期

1.创建阶段 getDefaultProps:处理props的默认值在React.createClass调用 2.实例化阶段 React.render(启动之后 getInitialState、componentWillMount、render、componentDidMount state:组件的属性,主要是用来存储组件自身需要的数据,每次数据的更新都

2016-08-01 10:52:19 739

原创 Android studio更新到2.2之后出现的问题

提示的错误是Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (22.2.1) and test app (23.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for det

2016-07-20 16:10:30 446

原创 React-native报错ERROR Watcher took too long to load解决方法

运行react-native start时报错ERROR  Watcher took too long to loadTry running `watchman version` from your terminalhttps://facebook.github.io/watchman/docs/troubleshooting.htmlError: Watcher

2016-07-20 10:53:00 815

空空如也

空空如也

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

TA关注的人

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