增加上传进度(目前只对接了:答案图片上传,问题图片上传)

This commit is contained in:
kehaoyuan
2018-08-03 18:28:32 +08:00
parent de71ebad52
commit 8a10dac03d
8 changed files with 272 additions and 91 deletions

View File

@ -21,6 +21,8 @@ public class WaitingDialogFragment extends BaseDialogFragment {
private OnDialogBackListener mBackListener;
private TextView message;
public static WaitingDialogFragment newInstance(String message) {
Bundle args = new Bundle();
args.putString(KEY_MSG, message);
@ -43,7 +45,7 @@ public class WaitingDialogFragment extends BaseDialogFragment {
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.set_wait_dialog, null);
final TextView message = (TextView) view.findViewById(R.id.set_wait_message);
message = (TextView) view.findViewById(R.id.set_wait_message);
message.setText(getArguments().getString(KEY_MSG));
return view;
}
@ -62,6 +64,10 @@ public class WaitingDialogFragment extends BaseDialogFragment {
this.mBackListener = backListener;
}
public void uploadWaitingHint(String hint) {
if (message != null) message.setText(hint);
}
@Override
public boolean onBack() {
if (mBackListener != null) {