private TextWatcher textWatcher; EditText editView = (EditText)view.findViewById(R.id.my_edittext); textWatcher= new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { } }; editView .addTextChanged..
LinearLayout myLinearLayout = (LinearLayout)findViewById(R.id.mylinear); LayoutInflater layoutInflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = (LinearLayout)layoutInflater.inflate(R.layout.mylayer, null); myLinearLayout.addView(view); 위에처럼 layoutInflater 를 생성하고 inflater를 이용해 타 레이아웃을 전개하여 현 레이아웃에 삽입시킬 수 있다. [작성자] devbible.tistory.com
- Total
- Today
- Yesterday