当前位置: 首页>>代码示例>>Java>>正文


Java ProgressActivity类代码示例

本文整理汇总了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);
        }
    });
}
 
开发者ID:c910335,项目名称:PTR,代码行数:22,代码来源:MainActivity.java

示例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();
}
 
开发者ID:hjw541988478,项目名称:RefreshLoadMoreRecyclerView,代码行数:12,代码来源:HarvestRecyclerView.java

示例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;
}
 
开发者ID:xiongwei-git,项目名称:GankApp,代码行数:7,代码来源:BaseLoadingFragment.java


注:本文中的com.vlonjatg.progressactivity.ProgressActivity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。