Page 307 - MDP2020-1
P. 307

················································································  명장양성프로젝트  【MDP】  과제발표회  자료집  Ⅰ    |  301


            import  java.io.FileNotFoundException;
            import  java.io.IOException;
            import  java.io.InputStream;
            import  java.util.ArrayList;



            public  class  ManageActivity  extends  AppCompatActivity  {


                    Button  button_change;

                    ImageView  imageView;
                    TextView  textView_name,textView_explaination;
                    ArrayList<ClothesData>  clothesData  =  new  ArrayList<>();


                    protected  void  onCreate(@Nullable  Bundle  savedInstanceState)  {
                            super.onCreate(savedInstanceState);

                            setContentView(R.layout.activity_manage);


                            button_change  =  findViewById(R.id.button_clothes_change);
                            imageView  =  findViewById(R.id.imageView_clothes);

                            textView_name  =  findViewById(R.id.explaination_name);
                            textView_explaination  =  findViewById(R.id.explaination_explaination);


                            clothesData  =  getIntent().getParcelableArrayListExtra("clothesData");


                            button_change.setOnClickListener(new  View.OnClickListener()  {

                                    @Override
                                    public  void  onClick(View  v)  {
                                            Intent  intent  =  new  Intent();
                                            intent.setType("image/*");
                                            intent.setAction(Intent.ACTION_GET_CONTENT);

                                            startActivityForResult(intent,  1);
                                    }
                            });
                    }



                    public  void  deleteClothes(View  view)  {
                            textView_name.setText("error");
                            textView_explaination.setText("error");
                    }



                    @Override
                    protected  void  onActivityResult(int  requestCode,  int  resultCode,  @Nullable  Intent
   302   303   304   305   306   307   308   309   310   311   312