本文整理汇总了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);
}
});
}
示例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);
}
});
}
示例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();
}
示例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();
}
示例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();;
}
示例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);
}
});
}
示例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);
}
});
}