I am creating a user form in android. I want to display an edit text box on click of a button. below that button, while simultaneously the contents originally present below that button to move more down.
How can this be done?
I am creating a user form in android. I want to display an edit
Share
If you just want to “display an edit text box on click of a button” why don’t you just..
Keep the EditText in your XML layout file for that activity below the Button where you want it..
XML set it’s
android:visibility = "gone"and making instance of that
EditText et=(EditText)findViewById(R.id.thatEditText);in activity…in your button click event set
et.setVisibility(View.VISIBLE);