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


Java ProgressGenerator类代码示例

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


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

示例1: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_message);

    final EditText editMessage = (EditText) findViewById(R.id.editMessage);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final SubmitProcessButton btnSend = (SubmitProcessButton) findViewById(R.id.btnSend);
    btnSend.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnSend);
            btnSend.setEnabled(false);
            editMessage.setEnabled(false);
        }
    });
}
 
开发者ID:xmlxin,项目名称:AndroidLogin,代码行数:19,代码来源:MessageActivity.java

示例2: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_upload);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final GenerateProcessButton btnUpload =
            (GenerateProcessButton) findViewById(R.id.btnUpload);
    btnUpload.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnUpload);
            btnUpload.setEnabled(false);
        }
    });
}
 
开发者ID:xmlxin,项目名称:AndroidLogin,代码行数:17,代码来源:UploadActivity.java

示例3: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_message);

    final EditText editMessage = (EditText) findViewById(R.id.editMessage);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final SubmitProcessButton btnSend = (SubmitProcessButton) findViewById(R.id.btnSend);
    btnSend.setOnClickNormalState(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnSend);
            btnSend.setEnabled(false);
            editMessage.setEnabled(false);
        }
    }).build();
    final ArrowButton btn = (ArrowButton) findViewById(R.id.arrowBtn);
    btn.build();
}
 
开发者ID:jjhesk,项目名称:hkm-progress-button,代码行数:21,代码来源:MessageActivity.java

示例4: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_upload);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final GenerateProcessButton btnUpload =
            (GenerateProcessButton) findViewById(R.id.btnUpload);
    btnUpload.setOnClickNormalState(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnUpload);
            btnUpload.setEnabled(false);
        }
    }).build();
}
 
开发者ID:jjhesk,项目名称:hkm-progress-button,代码行数:17,代码来源:UploadActivity.java

示例5: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_sign_in);

    final EditText editEmail = (EditText) findViewById(R.id.editEmail);
    final EditText editPassword = (EditText) findViewById(R.id.editPassword);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final ActionProcessButton btnSignIn = (ActionProcessButton) findViewById(R.id.btnSignIn);
    Bundle extras = getIntent().getExtras();
    if(extras != null && extras.getBoolean(EXTRAS_ENDLESS_MODE)) {
        btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
    } else {
        btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
    }
    btnSignIn.setOnClickNormalState(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnSignIn);
            btnSignIn.setEnabled(false);
            editEmail.setEnabled(false);
            editPassword.setEnabled(false);
        }
    }).build();;
}
 
开发者ID:jjhesk,项目名称:hkm-progress-button,代码行数:27,代码来源:SignInActivity.java

示例6: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_sign_in);

    final EditText editEmail = (EditText) findViewById(R.id.editEmail);
    final EditText editPassword = (EditText) findViewById(R.id.editPassword);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final ActionProcessButton btnSignIn = (ActionProcessButton) findViewById(R.id.btnSignIn);
    Bundle extras = getIntent().getExtras();
    if(extras != null && extras.getBoolean(EXTRAS_ENDLESS_MODE)) {
        btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
    } else {
        btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
    }
    btnSignIn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnSignIn);
            btnSignIn.setEnabled(false);
            editEmail.setEnabled(false);
            editPassword.setEnabled(false);
        }
    });
}
 
开发者ID:dmytrodanylyk,项目名称:android-process-button,代码行数:27,代码来源:SignInActivity.java

示例7: onCreate

import com.dd.sample.utils.ProgressGenerator; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_sign_in);

    final EditText editEmail = (EditText) findViewById(R.id.editEmail);
    final EditText editPassword = (EditText) findViewById(R.id.editPassword);

    final ProgressGenerator progressGenerator = new ProgressGenerator(this);
    final ActionProcessButton btnSignIn = (ActionProcessButton) findViewById(R.id.btnSignIn);

    Bundle extras = getIntent().getExtras();
    if(extras != null && extras.getBoolean(EXTRAS_ENDLESS_MODE)) {
        btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
    } else {
        btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
    }
   /* Intent intent = getIntent();
    if(intent != null && intent.getBooleanExtra("EXTRAS_ENDLESS_MODE",false)) {
        btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
    } else {
        btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
    }*/
    btnSignIn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            progressGenerator.start(btnSignIn);
            btnSignIn.setEnabled(false);
            editEmail.setEnabled(false);
            editPassword.setEnabled(false);
        }
    });
}
 
开发者ID:xmlxin,项目名称:AndroidLogin,代码行数:34,代码来源:SignInActivity.java


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