android icon indicating copy to clipboard operation
android copied to clipboard

코드 리팩토링

Open 0pyaq0 opened this issue 3 years ago • 4 comments

0pyaq0 avatar Jun 12 '22 17:06 0pyaq0

bottom navigation bar 다시 수정하면 좋을 거 같아요!

byulla avatar Jun 27 '22 03:06 byulla

bottom navigation bar 다시 수정하면 좋을 거 같아요!

네 네임 수정하겠습니다!

0pyaq0 avatar Jun 27 '22 03:06 0pyaq0

아 그냥 bottom navigation bar 제가 수정해서 브랜치에 푸쉬 할게요!!

byulla avatar Jun 27 '22 03:06 byulla

/* final Context context = viewGroup.getContext(); if(view == null){ LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); view = inflater.inflate(R.layout.item_posts, viewGroup, false); } TextView title = view.findViewById(R.id.post_title); TextView content = view.findViewById(R.id.post_content); TextView nickname = view.findViewById(R.id.post_nickname); TextView likecnt = view.findViewById(R.id.postlikeCount); TextView chatcnt = view.findViewById(R.id.postchatCount); final CheckBox checked = view.findViewById(R.id.post_like_check); ImageView chat = view.findViewById(R.id.postChat); checked.setChecked(false);

    title.setText(postItemList.get(i).getTitle());
    content.setText(postItemList.get(i).getContent());
    nickname.setText(postItemList.get(i).getUser_nick());
    //likecnt.setText(postItemList.get(i).getLike_cnt());
    //chatcnt.setText(postItemList.get(i).getComment_cnt());
    chat.setImageResource(R.drawable.chat);

    detail = view.findViewById(R.id.post_item);
    detail.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = new Intent(v.getContext(), PostDatailActivity.class);
            context.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
        }
    });
    
    checked.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if(checked.isChecked()){
                // 찜하기 메소드 필요
                checked.setChecked(true);
            }else {
                
                checked.setChecked(false);
            }
        }
    });

*/

0pyaq0 avatar Jul 08 '22 05:07 0pyaq0