I want to create a page like this. these 7 buttons are already exist but if user want to add more categories (button) then he can do using + button and delete using - button. Any idea or tutorial for making this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
If you want to create dynamic view (like EditText,textview etc) then just use this code and run it in your application.
MyActivity.java://your java file
In XML File:
this is for create button dynamically in android
to remove is the same just change this "
mainLayout.addView(addButton)
" to removeView or setVisibility of button to View.GONECreate/Remove button
onClick
of+ button
and- button
as below:It's pretty simple.
Hope this helps you.