本文整理汇总了Java中com.vlonjatg.progressactivity.ProgressActivity类的典型用法代码示例。如果您正苦于以下问题:Java ProgressActivity类的具体用法?Java ProgressActivity怎么用?Java ProgressActivity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProgressActivity类属于com.vlonjatg.progressactivity包,在下文中一共展示了ProgressActivity类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.vlonjatg.progressactivity.ProgressActivity; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
progress = (ProgressActivity) findViewById(R.id.progress);
if (BuildConfig.DEBUG)
ActiveAndroid.setLoggingEnabled(true);
grapttClient = new GrapttClient(this, getString(R.string.api_url), new GrapttClient.OnConnectListener() {
@Override
public void onConnect(String status) {
Log.d("GrapttClient", status);
}
@Override
public void onError(String message) {
Log.d("GrapttClient", message);
}
});
}
示例2: initViews
import com.vlonjatg.progressactivity.ProgressActivity; //导入依赖的package包/类
/**
* refresh and loadmore are disabled by default
*/
private void initViews() {
View rootView = LayoutInflater.from(getContext()).inflate(R.layout.base_swipe_refresh_layout, this);
progressLayout = (ProgressActivity) rootView.findViewById(R.id.base_progress_layout);
recyclerView = (RecyclerView) rootView.findViewById(R.id.base_recycler_view);
swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.base_swipe_layout);
disableRefresh();
disableLoadMore();
}
示例3: onCreateView
import com.vlonjatg.progressactivity.ProgressActivity; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mProgressActivity = (ProgressActivity) inflater.inflate(R.layout.fragment_base_loading_layout, container, false);
mProgressActivity.addView(onCreateContentView(inflater, mProgressActivity, savedInstanceState));
return mProgressActivity;
}