上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 60 下一页
摘要: 先简单看看 LiveEventBus 是怎么使用 LiveData 的。 public final class LiveEventBus { public synchronized <T> Observable<T> with(String key, Class<T> type) { if (!bu 阅读全文
posted @ 2019-08-20 18:07 水至清明 阅读(1912) 评论(0) 推荐(0)
摘要: LiveData.java public abstract class LiveData<T> { class LifecycleBoundObserver extends ObserverWrapper implements GenericLifecycleObserver { @NonNull 阅读全文
posted @ 2019-08-20 18:07 水至清明 阅读(655) 评论(0) 推荐(0)
摘要: 时间:2019年7月29日21:53:28解决办法:把 dependencies 中的 dependencies {(http://www.amjmh.com/v/) implementation 'com.github.bumptech.glide:glide:4.9.0' annotationP 阅读全文
posted @ 2019-08-20 18:07 水至清明 阅读(1109) 评论(2) 推荐(0)
摘要: LiveData.java @MainThread public void observe(@NonNull LifecycleOwner owner, @NonNull Observer<? super T> observer) { assertMainThread("observe"); if 阅读全文
posted @ 2019-08-20 18:06 水至清明 阅读(603) 评论(0) 推荐(0)
摘要: LiveData.java @MainThread public void observeForever(@NonNull Observer<? super T> observer) { assertMainThread("observeForever"); AlwaysActiveObserver 阅读全文
posted @ 2019-08-20 18:06 水至清明 阅读(4582) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xm 阅读全文
posted @ 2019-08-19 20:18 水至清明 阅读(172) 评论(0) 推荐(0)
摘要: import java.io.Serializable; //实现 Serializable 接口 表明当前类为 序列化类public class LoginBean implements Serializable { private String username; private String 阅读全文
posted @ 2019-08-19 20:18 水至清明 阅读(203) 评论(0) 推荐(0)
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); View childV 阅读全文
posted @ 2019-08-19 20:18 水至清明 阅读(62) 评论(0) 推荐(0)
摘要: 有了这个addRule方法就可以设置很多其他属性了,通过源码可知RelativeLayout是使用mRules这个数组来记录哪种属性使用到了,一共有22种属性: /** * Rule that aligns a child's right edge with another child's left 阅读全文
posted @ 2019-08-19 20:18 水至清明 阅读(225) 评论(0) 推荐(0)
摘要: 控件初始化状态使部分控件处于禁用状态代码禁用控件 BOOL CMyDlg::OnInitDialog(){ CDialog::OnInitDialog(http://www.amjmh.com); ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); AS 阅读全文
posted @ 2019-08-19 20:18 水至清明 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 60 下一页