Search in sources :

Example 6 with CustomDialog

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

the class RegiestActivity method initView.

private void initView() {
    et_user_name = (EditText) findViewById(R.id.et_user_name);
    et_password = (EditText) findViewById(R.id.et_password);
    et_again_password = (EditText) findViewById(R.id.et_again_password);
    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);
    bt_ok = (Button) findViewById(R.id.bt_ok);
    bt_ok.setOnClickListener(this);
    mauthCodeView = (AuthCodeView) findViewById(R.id.bt_check);
    et_check = (EditText) findViewById(R.id.et_check);
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog)

Example 7 with CustomDialog

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

the class KDFragment method findView.

// 初始化布局
private void findView(View view) {
    loadDialog = new CustomDialog(getActivity(), 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);
    bt_find_collection = (Button) view.findViewById(R.id.bt_find_collection);
    bt_find_collection.setOnClickListener(this);
    bt_give_money = (Button) view.findViewById(R.id.bt_give_money);
    bt_give_money.setOnClickListener(this);
    bt_card = (Button) view.findViewById(R.id.bt_card);
    bt_card.setOnClickListener(this);
    // 获取屏幕宽高
    int width = (int) (UtilTools.getWindowWidth(getActivity()) * 0.8);
    int height = (int) (UtilTools.getWindowHeigth(getActivity()) * 0.6);
    dialog = new CustomDialog(getActivity(), width, height, R.layout.dialog_team_dq, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    dialog.setCancelable(true);
    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);
    lv_deliveTeam = (ListView) view.findViewById(R.id.lv_team);
    getData();
    lv_deliveTeam.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) ImageView(android.widget.ImageView) View(android.view.View) AdapterView(android.widget.AdapterView) ListView(android.widget.ListView) SuppressLint(android.annotation.SuppressLint)

Example 8 with CustomDialog

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

the class KDTeamDQActivity 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);
    lv_team = (ListView) findViewById(R.id.lv_team);
    lv_team.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            L.i("data size" + data.size());
            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) SuppressLint(android.annotation.SuppressLint)

Example 9 with CustomDialog

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

the class LoginActivity method initView.

private void initView() {
    dialog = new CustomDialog(this, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, R.layout.dialog_login, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    dialog.setCancelable(false);
    tv_regiest = (TextView) findViewById(R.id.bt_register);
    tv_regiest.setOnClickListener(this);
    bt_login = (Button) findViewById(R.id.bt_login);
    bt_login.setOnClickListener(this);
    et_acconut = (EditText) findViewById(R.id.et_acconut);
    et_userpassword = (EditText) findViewById(R.id.et_userpassword);
    cb_remberPWD = (CheckBox) findViewById(R.id.cb_remberPWD);
    iv_head = (CircleImageView) findViewById(R.id.iv_head);
    iv_head.setBorderWidth(2);
    iv_head.setBorderColor(Color.BLUE);
    // 初始化头像
    initImgHead();
    ib_qq = (ImageButton) findViewById(R.id.ib_qq);
    ib_qq.setOnClickListener(this);
    // 初始化用户名和密码(如果记住密码勾选)
    if (ShareUtils.getBoolean(this, "checkboxBoolean", false)) {
        String username = ShareUtils.getString(LoginActivity.this, "username", "");
        String password = ShareUtils.getString(LoginActivity.this, "password", "");
        et_acconut.setText(username);
        et_userpassword.setText(password);
        cb_remberPWD.setChecked(true);
    }
}
Also used : CustomDialog(com.yuxuan.admin.expression.view.CustomDialog)

Example 10 with CustomDialog

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

the class UMyPaiJianActivity 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);
    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_send_display_list, R.style.Theme_dialog, Gravity.CENTER, R.style.pop_anim_style);
    tv_send_sum = (TextView) findViewById(R.id.tv_send_sum);
    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);
    tv_other = (TextView) displayList.findViewById(R.id.tv_other);
    tv_status = (TextView) displayList.findViewById(R.id.tv_status);
    lv_send_orders = (ListView) findViewById(R.id.lv_send_orders);
    lv_send_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());
            tv_status.setText(data.get(position).getStatus());
            tv_other.setText(data.get(position).getOther());
        }
    });
}
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)

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