Guest User

Untitled

a guest
Oct 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <LinearLayout
  2. android:layout_width="wrap_content"
  3. android:id="@+id/llAddView"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical">
  6. </LinearLayout>
  7.  
  8. LinearLayout linearLayout = (LinearLayout) findViewById(R.id.llAddView);
  9. EditText newET= new EditText (this);
  10. newET.setText("");
  11. newET.setLayoutParams(new LayoutParams(
  12. LayoutParams.MATCH_PARENT,
  13. LayoutParams.WRAP_CONTENT));
  14.  
  15. linearLayout.addView(newET);
Add Comment
Please, Sign In to add comment