Someone help me to do like below!.
I want to insert some list list.xml file bottom of the main.xml file. How to implement it?
----------------------------
| main.java |
| main.xml |
| |
| |
| |
| |
| ______ |
| |button| |
| |
| |
| |
| _________________________ |
| | list.java | |
| | list.xml | |
| | | |
| | | |
| | | |
| | | |
| | | |
|_|_______________________|_|
I called list.java by using intent on the main.java .I also include list.xml to main.xml. When I press button list.xml should pop up like above figure. But list.xml comes up new window. How to solve this problem?
As you want to re-use layout i.e. include existing layout inside another layouts, i would suggest you to go through this article: Re-using Layouts with
<include/>.Now as you want to include list.xml inside main.xml, write
<include/>inside main.xml as below: