java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html相关的知识,希望对你有一定的参考价值。
/**
* Created by weiyi on 2/23/16.
* http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
*/
public class SingleFragmentActivtiy extends BasicActivity {
@Override
protected String getActionBarTitle() {
return "Single Fragment Activity";
}
@NonNull
@Override
protected Fragment createContentFragment() {
return new SampleFragment();
}
private void updateView() {
if (mContentFragment != null && SampleFragment.class.isInstance(mContentFragment)) {
((SampleFragment)mContentFragment).updateView(...);
}
}
}
以上是关于java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html的主要内容,如果未能解决你的问题,请参考以下文章
Java 布尔运算
java [Java] Java常用代码#java
Java - 35 Java 实例
Java While 循环
Java 字符串
Java If ... Else