Divide the screen into SurfaceView and xml layout
问题 MyActivity has setContentView(MySurfaceView) that covers all the screen. I would like to divide the screen into two parts: the first 2/3 of the screen must be occupied by MySurfaceView and the last 1/3 by my_activity_layout.xml . How can I do that? Thanks. EDIT Thanks for your answers, but I don't have how to apply them in my case. To be clear, these are my objects: 回答1: Solution: To attach an xml file in your layout, you can make use of the <include> tag. Reusing layouts is particularly