버튼을 누르면
TextView word=new TextView(getActivity().getApplicationContext());
LinearLayout.LayoutParams llp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
llp.setMargins(20,20,20,20);
word.setLayoutParams(llp);
word.setBackgroundColor(Color.parseColor("#00FFFFFF"));
word.setTextColor(Color.parseColor("#000000"));
word.setTextSize(18);
word.setTypeface(typeface);
word.setGravity(Gravity.LEFT);
word.setText(et.getText().toString());
wordContainer.addView(word);
이런식으로 TextView를 동적으로 생성합니다!! 그런데 생성된 TextView를 클릭하게되면 삭제를 하고 싶은데요
xml에 아이디도 없고 어떤식으로 해당 View를 가져와서 삭제 처리해야할지 모르겠습니다..
도움 부탁드려요 ㅠㅠ