• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Loading类的典型用法和代码示例

java 2次浏览

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

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

示例1: init

点赞 3

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
private void init(AttributeSet attrs, int defStyle) {
    inflate(getContext(), R.layout.lay_empty, this);
    mEmptyImg = (ImageView) findViewById(R.id.im_empty);
    mStatusText = (TextView) findViewById(R.id.txt_empty);
    mLoading = (Loading) findViewById(R.id.loading);

    // Load attributes
    final TypedArray a = getContext().obtainStyledAttributes(
            attrs, R.styleable.EmptyView, defStyle, 0);

    mDrawableIds[0] = a.getInt(R.styleable.EmptyView_comEmptyDrawable, R.drawable.status_empty);
    mDrawableIds[1] = a.getInt(R.styleable.EmptyView_comErrorDrawable, R.drawable.status_empty);
    mTextIds[0] = a.getInt(R.styleable.EmptyView_comEmptyText, R.string.prompt_empty);
    mTextIds[1] = a.getInt(R.styleable.EmptyView_comErrorText, R.string.prompt_error);
    mTextIds[2] = a.getInt(R.styleable.EmptyView_comLoadingText, R.string.prompt_loading);

    a.recycle();
}
 

开发者ID:FZZFVII,
项目名称:pipe,
代码行数:19,
代码来源:EmptyView.java

示例2: initSyncItem

点赞 3

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
private void initSyncItem() {
    MenuItem sync = mToolbar.getMenu().findItem(R.id.action_sync);

    View view = sync.getActionView();
    if (view != null) {
        ImageView shareImage = (ImageView) view.findViewById(R.id.iv_action_share);
        Loading loading = (Loading) view.findViewById(R.id.loading_action_share);
        if (shareImage != null && loading != null) {
            mLoading = loading;
            view.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    mPresenter.sync();
                }
            });
        }
    }
}
 

开发者ID:qiujuer,
项目名称:UPMiss,
代码行数:19,
代码来源:MainActivity.java

示例3: onCreate

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_account);

    mTxtWhether = (TextView) findViewById(R.id.account_txt_whether);
    mTxtTitle = (TextView) findViewById(R.id.account_txt_title);
    mViewAnimator = (ViewAnimator) findViewById(R.id.account_output);
    mEditLoginEmail = (EditText) findViewById(R.id.account_edit_login_email);
    mEditLoginPassword = (EditText) findViewById(R.id.account_edit_login_password);
    mEditRegisterPasswordConfirm = (EditText) findViewById(R.id.account_edit_register_password_confirm);
    mEditRegisterPassword = (EditText) findViewById(R.id.account_edit_register_password);
    mEditRegisterEmail = (EditText) findViewById(R.id.account_edit_register_email);
    mBtnSubmit = (Button) findViewById(R.id.account_btn_submit);
    mBtnChange = (Button) findViewById(R.id.account_btn_change);
    mLoading = (Loading) findViewById(R.id.loading);

    mViewAnimator.setInAnimation(AnimationUtils.loadAnimation(getApplicationContext(),
            R.anim.anim_in_slide_right));
    mViewAnimator.setOutAnimation(AnimationUtils.loadAnimation(getApplicationContext(),
            R.anim.anim_out_slide_left));

    mBtnSubmit.setOnClickListener(this);
    mBtnChange.setOnClickListener(this);

    mRegisterPresenter = new AccountRegisterPresenterAccount(this);
    mAccountLoginPresenter = mRegisterPresenter;
}
 

开发者ID:qiujuer,
项目名称:UPMiss,
代码行数:29,
代码来源:AccountActivity.java

示例4: showLoading

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
public void showLoading() {
    if (mLoadingDialog == null) {
        View view = View.inflate(this, R.layout.lay_loading, null);
        mLoadingDialog = createDialog(view);
    }
    mLoadingDialog.show();
    Loading loading = (Loading) (mLoadingDialog.getWindow().getDecorView().findViewById(R.id.loading));
    loading.start();
}
 

开发者ID:PowerBack,
项目名称:AnKey,
代码行数:10,
代码来源:SuperActivity.java

示例5: hideLoading

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
public void hideLoading() {
    AlertDialog dialog = mLoadingDialog;
    if (dialog != null) {
        Loading loading = (Loading) (dialog.getWindow().getDecorView().findViewById(R.id.loading));
        loading.stop();
        mLoadingDialog.dismiss();
    }
}
 

开发者ID:PowerBack,
项目名称:AnKey,
代码行数:9,
代码来源:SuperActivity.java

示例6: showLoading

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
@Override
public void showLoading() {
    setEnabled(false);
    findViewById(R.id.lay_title).setVisibility(GONE);
    findViewById(R.id.lay_scroll).setVisibility(GONE);
    findViewById(R.id.lay_loading).setVisibility(VISIBLE);
    Loading loading = (Loading) findViewById(R.id.loading);
    loading.start();
}
 

开发者ID:PowerBack,
项目名称:AnKey,
代码行数:10,
代码来源:DetailView.java

示例7: hideLoading

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
@Override
public void hideLoading() {
    setEnabled(true);
    Loading loading = (Loading) findViewById(R.id.loading);
    loading.stop();
    findViewById(R.id.lay_loading).setVisibility(GONE);
    findViewById(R.id.lay_title).setVisibility(VISIBLE);
    findViewById(R.id.lay_scroll).setVisibility(VISIBLE);
}
 

开发者ID:PowerBack,
项目名称:AnKey,
代码行数:10,
代码来源:DetailView.java

示例8: onCreate

点赞 2

import net.qiujuer.genius.ui.widget.Loading; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    setCenterTitle(true);

    mStatus = findViewById(R.id.text_status);
    mLoading = (Loading) findViewById(R.id.loading);
    mRecycler = (RecyclerView) findViewById(R.id.recycler);

    initFloatActionButton();
    initRecyclerView();

}
 

开发者ID:PowerBack,
项目名称:AnKey,
代码行数:15,
代码来源:MainActivity.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)