Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="wrap_content"
- android:id="@+id/llAddView"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- </LinearLayout>
- LinearLayout linearLayout = (LinearLayout) findViewById(R.id.llAddView);
- EditText newET= new EditText (this);
- newET.setText("");
- newET.setLayoutParams(new LayoutParams(
- LayoutParams.MATCH_PARENT,
- LayoutParams.WRAP_CONTENT));
- linearLayout.addView(newET);
Add Comment
Please, Sign In to add comment