上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 49 下一页
摘要: //java代码: public class CountrySelectDialog extends AppCompatDialogFragment{ public static CountrySelectDialog newInstance() { Bundle args = new Bundle(); CountrySelectDialog fragment = new... 阅读全文
posted @ 2019-01-31 14:33 yongfengnice 阅读(699) 评论(0) 推荐(0)
摘要: 使用AppCompatDialogFragment 或者 DialogFragment 的过程中遇到java.lang.IllegalStateException: Fragment already added: 的解决方法: 阅读全文
posted @ 2019-01-31 14:17 yongfengnice 阅读(8572) 评论(0) 推荐(1)
摘要: Android双向数据绑定DataBinding没有自动生成setXXX的方法的原因可能如下: 1.布局文件需要以 <layout></layout> 标签作为根标签,DataBind才能自动生成对应的方法 2.布局文件不能有语法错误,否则编译都不过肯定不会生成的 3. mBinding成员变量不要 阅读全文
posted @ 2019-01-25 15:53 yongfengnice 阅读(883) 评论(0) 推荐(0)
摘要: private void setToolBarCenterTitle() { TextView titleTv = new TextView(this); titleTv.setTextColor(ContextCompat.getColor(this, R.color.black)); title 阅读全文
posted @ 2019-01-25 15:38 yongfengnice 阅读(1562) 评论(0) 推荐(0)
摘要: 如果项目构建时遇到了 Task 'assembleXXXDebug' not found in project ':app'.的问题,原因可能如下: 项目gradle配置文件里面设置了 productFlavors,比如改为了YYY,然后对应的debug的assemble应该是assembleYYY 阅读全文
posted @ 2019-01-25 11:44 yongfengnice 阅读(16622) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-01-13 23:59 yongfengnice 阅读(232) 评论(0) 推荐(0)
摘要: 在前一个EditText里添加如下内容:android:imeOptions="actionNext"android:nextFocusRight="@+id/et_next_input" 阅读全文
posted @ 2019-01-08 19:38 yongfengnice 阅读(2464) 评论(0) 推荐(0)
摘要: 让git记住账号和密码的方法: 在git bash 中执行命令:git config --global credential.helper store 输入一次账号密码就可以保存,下次不再提示。 如果输错了需要重新输入。看这里:https://www.cnblogs.com/yongfengnice 阅读全文
posted @ 2019-01-08 11:21 yongfengnice 阅读(11244) 评论(0) 推荐(2)
摘要: //compose:对Observabl进行变换,加工处理Observable.just(1, 2, 3, 4, 5) .compose(new ObservableTransformer() { @Override public ObservableSource apply(Observable observable) { /... 阅读全文
posted @ 2019-01-06 18:06 yongfengnice 阅读(1209) 评论(0) 推荐(0)
摘要: Subject:它既是Observable,又是observer。也就是既可以发送事件,也可以接收事件。 下面是四个子类PublishSubject、ReplaySubject、BehaviorSubject、AsyncSubject的区别: 阅读全文
posted @ 2019-01-06 17:16 yongfengnice 阅读(9764) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 49 下一页