Page 131 - MDP2022-2
P. 131

});


                            want_temp.setOnClickListener(new  View.OnClickListener()  {
                                    @Override
                                    public  void  onClick(View  view)  {
                                            GetData  task  =  new  GetData();
                                            task.execute(String.valueOf(temperature_want),  "2",  ID);
                                            want_temp.setTextColor(Color.parseColor("#000000"));
                                            Toast.makeText(infor.this,  "희망온도:  "+temperature_want,  Toast.LENGTH_SHOR
            T).show();
                                    }
                            });
                            up.setOnClickListener(new  View.OnClickListener()  {
                                    @Override
                                    public  void  onClick(View  view)  {
                                            want_temp.setTextColor(Color.parseColor("#808080"));
                                            tpwant=  Integer.parseInt(temperature_want);
                                            tpwant++;
                                            temperature_want=Integer.toString(tpwant);
                                            want_temp.setText(temperature_want);
                                    }
                            });
                            down.setOnClickListener(new  View.OnClickListener()  {
                                    @Override
                                    public  void  onClick(View  view)  {
                                            want_temp.setTextColor(Color.parseColor("#808080"));
                                            tpwant=  Integer.parseInt(temperature_want);
                                            tpwant--;
                                            temperature_want=Integer.toString(tpwant);
                                            want_temp.setText(temperature_want);
                                    }
                            });
                            logout.setOnClickListener(new  View.OnClickListener()  {
                                    @Override
                                    public  void  onClick(View  view)  {
                                            GetData  task  =  new  GetData();
                                            task.execute(String.valueOf(temperature_want),  "3",ID);
                                            Intent  intent  =  new  Intent(infor.this,  MainActivity.class);
                                            startActivity(intent);
                                            finish();
                                    }
                            });
                    }
                    private  class  GetData  extends  AsyncTask<String,  Void,  String>  {
                            ProgressDialog  progressDialog;
   126   127   128   129   130   131   132   133   134   135   136