67 lines
2.1 KiB
Java
67 lines
2.1 KiB
Java
package com.sl.house_property;
|
|
|
|
import android.app.Dialog;
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
/**
|
|
* Created by 蔡雅楠 on 2018/4/24.
|
|
*/
|
|
|
|
public class MarkingFinishAwardDialong extends Dialog implements View.OnClickListener{
|
|
private ImageView mIvClose;
|
|
private TextView mTvMoney;
|
|
private String awardMoney;
|
|
private Button btn_oreder_back;
|
|
|
|
public MarkingFinishAwardDialong(@NonNull Context context, int themeResId, String moneyStr) {
|
|
super(context, themeResId);
|
|
this.awardMoney = moneyStr;
|
|
}
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
this.setContentView(R.layout.marking_award_activity);
|
|
mIvClose = (ImageView) findViewById(R.id.close);
|
|
btn_oreder_back = (Button) findViewById(R.id.btn_oreder_back);
|
|
// mTvMoney = findViewById(R.id.tv_award_money);
|
|
mIvClose.setOnClickListener(this);
|
|
btn_oreder_back.setOnClickListener(this);
|
|
// mTvMoney.setText(awardMoney);
|
|
}
|
|
|
|
@Override
|
|
public void onClick(View v) {
|
|
switch (v.getId()) {
|
|
case R.id.close:
|
|
MarkingFinishAwardDialong.this.dismiss();
|
|
break;
|
|
case R.id.btn_oreder_back:
|
|
// takeMyPhoto(1000);
|
|
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
// private void takeMyPhoto(int userImgeREQUST) {
|
|
// //拍照
|
|
// Intent intent = new Intent(getActivity(),
|
|
// SelectPicDanimicActivity.class);
|
|
// intent.putExtra("photoid", userImgeREQUST);
|
|
// intent.putExtra("crop", true);
|
|
// intent.putExtra("cropx", 100);
|
|
// intent.putExtra("cropy", 100);
|
|
// intent.putExtra("entertype", 100);
|
|
// startActivityForResult(intent, userImgeREQUST);
|
|
// getActivity().overridePendingTransition(R.anim.slide_from_bottom,
|
|
// R.anim.slide_out_bottom);
|
|
// }
|
|
}
|