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


Java AVLoadingIndicatorView类代码示例

本文整理汇总了Java中com.wang.avi.AVLoadingIndicatorView的典型用法代码示例。如果您正苦于以下问题:Java AVLoadingIndicatorView类的具体用法?Java AVLoadingIndicatorView怎么用?Java AVLoadingIndicatorView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AVLoadingIndicatorView类属于com.wang.avi包,在下文中一共展示了AVLoadingIndicatorView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onPostExecute

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
protected void onPostExecute(List<AppBean> list) {
    super.onPostExecute(list);

    retainedFragment.setReqTopList(list);

    ((AVLoadingIndicatorView) contentView.findViewById(R.id.view_loading)).hide();

    reqStatsAdapter.refresh(list);

    swipeRefreshLayout.setRefreshing(false);

    if (getUserVisibleHint()) {
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                if (!isAdded() || lazyLoadTask != null) {
                    return;
                }
                lazyLoadTask = new LazyLoadTask();
                lazyLoadTask.execute(layoutManager.findFirstVisibleItemPosition(),
                        layoutManager.findLastVisibleItemPosition());
            }
        }, 400);
    }
}
 
开发者ID:homeii,项目名称:GxIconDIY,代码行数:27,代码来源:ReqStatsFragment.java

示例2: init

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
private void init(){

        findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

        tv_title = (TextView)findViewById(R.id.tv_title);
        tv_startDate = (TextView)findViewById(R.id.tv_take_period_start);
        tv_finishDate = (TextView)findViewById(R.id.tv_take_period_finish);

        li_medicineList = (LinearLayout)findViewById(R.id.li_medicine_list);

        loading = (AVLoadingIndicatorView)findViewById(R.id.loading);

        fillBasicInfo();

    }
 
开发者ID:pooi,项目名称:Nearby,代码行数:21,代码来源:ShowPatientMedicineDetailActivity.java

示例3: init

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
private void init(){

        findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

        tv_msg = (TextView)findViewById(R.id.tv_msg);
        tv_msg.setVisibility(View.GONE);

        mGridLayoutManager = new GridLayoutManager(this, 2);//new LinearLayoutManager(getApplicationContext());
//        mLinearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        rv = (RecyclerView) findViewById(R.id.rv);
        rv.setHasFixedSize(true);
        rv.setLayoutManager(mGridLayoutManager);
//        rv.addItemDecoration(new DividerItemDecoration(getApplicationContext(), DividerItemDecoration.VERTICAL_LIST));

        loading = (AVLoadingIndicatorView)findViewById(R.id.loading);

    }
 
开发者ID:pooi,项目名称:Nearby,代码行数:23,代码来源:InquiryPhotoActivity.java

示例4: getIndicator

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
private static Indicator getIndicator(String name) {
    if (name == null || name.isEmpty()) {
        return null;
    }
    final StringBuilder drawableClassName = new StringBuilder();
    if (!name.contains(".")) {
        final String defaultPackageName = AVLoadingIndicatorView.class.getPackage().getName();
        drawableClassName.append(defaultPackageName)
                .append(".indicators")
                .append(".");
    }
    drawableClassName.append(name);
    try {
        final Class<?> drawableClass = Class.forName(drawableClassName.toString());
        return (Indicator) drawableClass.newInstance();
    } catch (Exception e) {
        e.printStackTrace();
        return null;
    }
}
 
开发者ID:remerber,项目名称:FastEc,代码行数:21,代码来源:LoaderCreator.java

示例5: showLoading

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
public static void showLoading(Context context, String type) {

        final AppCompatDialog dialog = new AppCompatDialog(context, R.style.dialog);

        final AVLoadingIndicatorView avLoadingIndicatorView = LoaderCreator.create(context, type);
        dialog.setContentView(avLoadingIndicatorView);

        int deviceWidth = DimenUtil.getScreenWidth();
        int deviceHeight = DimenUtil.getScreenHeight();

        final Window dialogWindow = dialog.getWindow();
        if (dialog != null) {
            final WindowManager.LayoutParams lp = dialogWindow.getAttributes();
            lp.width = deviceWidth / LOADER_SIZE_SCALE;
            lp.height = deviceHeight / LOADER_SIZE_SCALE;
            lp.height = lp.height + deviceHeight / LOADER_OFFSET_SCALE;
            lp.gravity = Gravity.CENTER;
        }

        LOADERS.add(dialog);
        dialog.show();
    }
 
开发者ID:remerber,项目名称:FastEc,代码行数:23,代码来源:LatteLoader.java

示例6: showLoading

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
private static void showLoading(Context context, String type) {

        final AppCompatDialog dialog = new AppCompatDialog(context, R.style.dialog);

        final AVLoadingIndicatorView avLoadingIndicatorView = LoaderCreator.create(type, context);
        dialog.setContentView(avLoadingIndicatorView);

        int deviceWidth = DimenUtil.getScreenWidth();
        int deviceHeight = DimenUtil.getScreenHeight();

        final Window dialogWindow = dialog.getWindow();

        if (dialogWindow != null) {
            final WindowManager.LayoutParams lp = dialogWindow.getAttributes();
            lp.width = deviceWidth / LOADER_SIZE_SCALE;
            lp.height = deviceHeight / LOADER_SIZE_SCALE;
            lp.height = lp.height + deviceHeight / LOADER_OFFSET_SCALE;
            lp.gravity = Gravity.CENTER;
        }
        LOADERS.add(dialog);
        dialog.show();
    }
 
开发者ID:organizationAllink,项目名称:wzyx-android-user,代码行数:23,代码来源:WzyxLoader.java

示例7: onCreate

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    setContentView(R.layout.activity_tutorias);
    //Action bar
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    if (Build.VERSION.SDK_INT >= 21) {
        getWindow().setNavigationBarColor(getResources().getColor(R.color.colorPrimaryDarkGreen));
        getWindow().setStatusBarColor(getResources().getColor(R.color.colorPrimaryDarkGreen));
    }
    app = (App) this.getApplication();
    //SetView
    viewPager = (ViewPager) findViewById(R.id.viewpager);
    tabLayout = (TabLayout) findViewById(R.id.tabs);
    progress = (AVLoadingIndicatorView) findViewById(R.id.material_progress);
    title = (TextView) findViewById(R.id.toolbar_title);
    fabTut = (FloatingActionButton) findViewById(R.id.fabTut);
    setYearAdapters();
    request = new TutoriasRequest(this);
    updateYear(true, app.getPublicPreferenceI(Common.GLOBAL_FILTER_YEAR));
    doRequest();
}
 
开发者ID:Onelio,项目名称:ConnectU,代码行数:26,代码来源:TutoriasActivity.java

示例8: onViewCreated

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    mLayoutManager = new LinearLayoutManager(getContext());
    mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    recyclerView = (RecyclerView) view.findViewById(R.id.materialesRecycler);
    emptyView = (LinearLayout) view.findViewById(R.id.materiales_blank);
    recyclerView.setLayoutManager(mLayoutManager);
    progress = (AVLoadingIndicatorView) view.findViewById(R.id.material_progress);
    location = (TextView) view.findViewById(R.id.materialesLoc);
    request = new MaterialesRequest(getContext());
    url = new ArrayList<>();
    urlName = new ArrayList<>();
    files = new ArrayList<>();
    MaterialesActivity.mOnBackPressed = this;

    loadNewLocation();
}
 
开发者ID:Onelio,项目名称:ConnectU,代码行数:18,代码来源:MaterialesMenuFragment.java

示例9: onCreateView

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    View v = inflater.inflate(R.layout.fragment_podcast, container, false);

    mActivity = (Home) getActivity();
    mContext = getContext();

    podcastList = (ListView) v.findViewById(R.id.podcastlist);
    noElements = (TextView) v.findViewById(R.id.no_elements);

    avi = (AVLoadingIndicatorView) v.findViewById(R.id.avi);
    avi.show();

    // Get Programs
    new GetPrograms(mContext, this).execute();

    App application = (App) getActivity().getApplication();
    Tracker mTracker = application.getDefaultTracker();
    mTracker.setScreenName(getString(R.string.podcast_view));
    mTracker.send(new HitBuilders.ScreenViewBuilder().build());

    return v;
}
 
开发者ID:ficiverson,项目名称:radiocom-android,代码行数:25,代码来源:PodcastPageFragment.java

示例10: onCreateView

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    View v = inflater.inflate(R.layout.fragment_transmissions, container, false);

    mActivity = (Home) getActivity();
    mContext = getContext();

    transmissionList = (ListView) v.findViewById(R.id.transmissionsList);
    noElements = (TextView) v.findViewById(R.id.no_elements);

    avi = (AVLoadingIndicatorView) v.findViewById(R.id.avi);
    avi.show();

    // Get Transmissions
    new GetTransmissions(mContext, this, getArguments().getString(KEY_DAY)).execute();

    App application = (App) getActivity().getApplication();
    Tracker mTracker = application.getDefaultTracker();
    mTracker.setScreenName(getString(R.string.transmisions_view));
    mTracker.send(new HitBuilders.ScreenViewBuilder().build());

    return v;
}
 
开发者ID:ficiverson,项目名称:radiocom-android,代码行数:25,代码来源:LiveBroadcastPageFragment.java

示例11: onCreate

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {

    getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_splash);

    mContext = this;
    mActivity = this;

    avi = (AVLoadingIndicatorView) findViewById(R.id.avi);
    avi.show();

    snackView = (View) findViewById(R.id.snackView);

    launchGetStations(mContext, mActivity);

    App application = (App) getApplication();
    Tracker mTracker = application.getDefaultTracker();
    mTracker.setScreenName(getString(R.string.splash_activity));
    mTracker.send(new HitBuilders.ScreenViewBuilder().build());

}
 
开发者ID:ficiverson,项目名称:radiocom-android,代码行数:25,代码来源:Splash.java

示例12: showLoading

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
public static void showLoading(LoadingView fragment) {
//    View spinner = new ProgressBar(fragment.getContext());

    AVLoadingIndicatorView spinner = new AVLoadingIndicatorView(fragment.getContext());
    spinner.setIndicator("PacmanIndicator");
    spinner.setIndicatorColor(4);
    spinner.show();

    ViewGroup.LayoutParams layoutParams =
            new ViewGroup.LayoutParams(
                    ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.MATCH_PARENT);

    spinner.setLayoutParams(layoutParams);

    fragment.getLoadingContainer().removeAllViews();
    fragment.getLoadingContainer().addView(spinner);

    fragment.getLoadingContainer().setVisibility(View.VISIBLE);
    fragment.getContentContainer().setVisibility(View.GONE);
  }
 
开发者ID:TelerikAcademy,项目名称:Mobile-Applications-for-Android,代码行数:22,代码来源:FragmentUtils.java

示例13: viewInitialize

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
private void viewInitialize()
{
    editText = (EditText) findViewById(R.id.findText);
    listView = (ListView) findViewById(R.id.listview);
    button = (Button) findViewById(R.id.commit);
    loadingbar = (AVLoadingIndicatorView) findViewById(R.id.loadingBar);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    getSupportActionBar().setTitle(getString(R.string.search_user));

}
 
开发者ID:icaynia,项目名称:pracler,代码行数:13,代码来源:FindUserActivity.java

示例14: onActivityCreated

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    avLoading = (AVLoadingIndicatorView) getView(R.id.av_loading);
    rlLoading = (RelativeLayout) getView(R.id.rl_loading);
    rlError = (RelativeLayout) getView(R.id.rl_error);
    showLoading();
}
 
开发者ID:monkeywiiu,项目名称:Discover,代码行数:9,代码来源:BaseFragment.java

示例15: onPostExecute

import com.wang.avi.AVLoadingIndicatorView; //导入依赖的package包/类
@Override
protected void onPostExecute(List<AppBean> list) {
    super.onPostExecute(list);

    retainedFragment.setAppList(list);

    ((AVLoadingIndicatorView) contentView.findViewById(R.id.view_loading)).hide();

    appAdapter.refresh(list);

    swipeRefreshLayout.setRefreshing(false);

    if (getUserVisibleHint()) {
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                if (!isAdded() || lazyLoadTask != null) {
                    return;
                }
                lazyLoadTask = new LazyLoadTask();
                lazyLoadTask.execute(layoutManager.findFirstVisibleItemPosition(),
                        layoutManager.findLastVisibleItemPosition());
            }
        }, 400);
    }

    if (onLoadDoneListener != null) {
        onLoadDoneListener.onLoadDone(pageId, list.size());
    }
}
 
开发者ID:homeii,项目名称:GxIconDIY,代码行数:31,代码来源:AppsFragment.java


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