Search in sources :

Example 1 with CustomDialog

use of com.yuxuan.admin.expression.view.CustomDialog in project expression by happy-yuxuan.

the class UMyInfomationActivity method initView.

// 初始化布局
private void initView() {
    dialog = new CustomDialog(this, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_loading, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    dialog.setCancelable(false);
    et_nichen = (EditText) findViewById(R.id.et_nichen);
    et_phoneNumber = (EditText) findViewById(R.id.et_phoneNumber);
    et_idCard = (EditText) findViewById(R.id.et_idCard);
    et_mail = (EditText) findViewById(R.id.et_mail);
    et_real_name = (EditText) findViewById(R.id.et_real_name);
    setEditTextEnable(false);
    btn_modify = (Button) findViewById(R.id.btn_modify);
    btn_modify.setOnClickListener(this);
    btn_modify.setVisibility(View.VISIBLE);
    btn_updata = (Button) findViewById(R.id.btn_updata);
    btn_updata.setOnClickListener(this);
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog)

Example 2 with CustomDialog

use of com.yuxuan.admin.expression.view.CustomDialog in project expression by happy-yuxuan.

the class UMyOrdersActivity method initView.

private void initView() {
    dialog = new CustomDialog(this, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_loading, R.style.loading_dialog, Gravity.CENTER, R.style.pop_anim_style);
    dialog.setCancelable(true);
    int width = (int) (UtilTools.getWindowWidth(this) * 0.7);
    int height = (int) (UtilTools.getWindowHeigth(this) * 0.5);
    // 显示详细信息的dialog
    displayList = new CustomDialog(this, width, height, R.layout.dialog_display_list, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    tv_username = (TextView) displayList.findViewById(R.id.tv_username);
    tv_addr = (TextView) displayList.findViewById(R.id.tv_addr);
    tv_phone = (TextView) displayList.findViewById(R.id.tv_phone);
    bt_end = (Button) displayList.findViewById(R.id.bt_end);
    bt_end.setOnClickListener(this);
    tv_sum = (TextView) findViewById(R.id.tv_sum);
    lv_orders = (ListView) findViewById(R.id.lv_orders);
    queryData();
    lv_orders.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            displayList.show();
            tv_username.setText(data.get(position).getUsername());
            tv_addr.setText(data.get(position).getAddr());
            tv_phone.setText(data.get(position).getPhoneNumber());
        }
    });
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog) AdapterView(android.widget.AdapterView) View(android.view.View) AdapterView(android.widget.AdapterView) TextView(android.widget.TextView) ListView(android.widget.ListView) SuppressLint(android.annotation.SuppressLint)

Example 3 with CustomDialog

use of com.yuxuan.admin.expression.view.CustomDialog in project expression by happy-yuxuan.

the class KDDQInfomationActivity method initView.

private void initView() {
    dialog = new CustomDialog(this, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_loading, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    dialog.setCancelable(false);
    et_phoneNumber = (EditText) findViewById(R.id.et_phoneNumber);
    et_name = (EditText) findViewById(R.id.et_name);
    et_addr = (EditText) findViewById(R.id.et_addr);
    et_status = (EditText) findViewById(R.id.et_status);
    et_other = (EditText) findViewById(R.id.et_other);
    btn_dq_ok = (Button) findViewById(R.id.btn_dq_ok);
    btn_dq_ok.setOnClickListener(this);
    String mPhone = BmobUser.getCurrentUser().getMobilePhoneNumber();
    et_phoneNumber.setText(mPhone);
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog)

Example 4 with CustomDialog

use of com.yuxuan.admin.expression.view.CustomDialog in project expression by happy-yuxuan.

the class KDPersonDQActivity method initView.

private void initView() {
    loadDialog = new CustomDialog(this, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_loading, R.style.loading_dialog, Gravity.CENTER, R.style.pop_anim_style);
    loadDialog.setCancelable(true);
    int width = (int) (UtilTools.getWindowWidth(this) * 0.8);
    int height = (int) (UtilTools.getWindowHeigth(this) * 0.6);
    dialog = new CustomDialog(this, width, height, R.layout.dialog_team_dq, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    et_nichen = (EditText) dialog.findViewById(R.id.et_nichen);
    et_mail = (EditText) dialog.findViewById(R.id.et_mail);
    et_property = (EditText) dialog.findViewById(R.id.et_property);
    et_phoneNumber = (EditText) dialog.findViewById(R.id.et_phoneNumber);
    bt_ok = (Button) dialog.findViewById(R.id.bt_ok);
    bt_ok.setOnClickListener(this);
    iv_individula = (ListView) findViewById(R.id.iv_individula);
    iv_individula.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            String team_name = data.get(position).getTeam_name();
            setDataToView(team_name);
            dialog.show();
        }
    });
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog) AdapterView(android.widget.AdapterView) View(android.view.View) AdapterView(android.widget.AdapterView) ListView(android.widget.ListView)

Example 5 with CustomDialog

use of com.yuxuan.admin.expression.view.CustomDialog in project expression by happy-yuxuan.

the class MyInfoFragment method findView.

// 初始化布局
private void findView(View view) {
    dialog = new CustomDialog(getActivity(), WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_photo, R.style.Theme_dialog, Gravity.BOTTOM, R.style.pop_anim_style);
    dialog.setCancelable(true);
    dialog.setCanceledOnTouchOutside(true);
    listview = (ListView) view.findViewById(R.id.list_myinfo);
    cv_head = (CircleImageView) view.findViewById(R.id.cv_head);
    cv_head.setBorderColor(Color.BLUE);
    cv_head.setOnClickListener(this);
    // 初始化头像
    initImgHead();
    btn_cancel = (Button) dialog.findViewById(R.id.btn_cancel);
    btn_cancel.setOnClickListener(this);
    btn_camera = (Button) dialog.findViewById(R.id.btn_camera);
    btn_camera.setOnClickListener(this);
    btn_picture = (Button) dialog.findViewById(R.id.btn_picture);
    btn_picture.setOnClickListener(this);
    listview.setAdapter(new MyInfoAdapter(getData(), getActivity()));
    // 设置listview Item 点击事件
    listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
            String itemTextString = data.get(arg2).getTv_item_myinfo();
            switch(itemTextString) {
                // 我的订单
                case "我的订单":
                    startActivity(new Intent(getActivity(), UMyOrdersActivity.class));
                    break;
                // 我的信息
                case "我的信息":
                    startActivity(new Intent(getActivity(), UMyInfomationActivity.class));
                    break;
                // 我去派件
                case "我去派件":
                    startActivity(new Intent(getActivity(), UMyPaiJianActivity.class));
                    break;
                // 历史订单
                case "历史订单":
                    startActivity(new Intent(getActivity(), UHistoryRecordActivity.class));
                    break;
                // 关于我们
                case "关于我们":
                    startActivity(new Intent(getActivity(), UAboutWeActivity.class));
                    break;
                // 设置
                case "设置":
                    startActivity(new Intent(getActivity(), USetingActivity.class));
                    break;
                default:
                    break;
            }
        }
    });
}
Also used : MyInfoAdapter(com.yuxuan.admin.expression.adapter.MyInfoAdapter) CustomDialog(com.yuxuan.admin.expression.view.CustomDialog) AdapterView(android.widget.AdapterView) Intent(android.content.Intent) CircleImageView(de.hdodenhof.circleimageview.CircleImageView) View(android.view.View) AdapterView(android.widget.AdapterView) ListView(android.widget.ListView)

Aggregations

CustomDialog (com.yuxuan.admin.expression.view.CustomDialog)10 View (android.view.View)6 AdapterView (android.widget.AdapterView)6 ListView (android.widget.ListView)6 SuppressLint (android.annotation.SuppressLint)3 TextView (android.widget.TextView)2 Intent (android.content.Intent)1 ImageView (android.widget.ImageView)1 MyInfoAdapter (com.yuxuan.admin.expression.adapter.MyInfoAdapter)1 CircleImageView (de.hdodenhof.circleimageview.CircleImageView)1