I have a (RelativeLayout) layout xml that was designed to work for 10 inch tablets. I now want the very same layout to be displayed when the app runs on a phone. Instead of it being only displayed partly, I want it to be scaled, so that the structure is the same, just everything a bit smaller.
I have already:
- Searched the web - without a result
- Read about LayoutInflaters - but have no idea where I could set a scale there
- Tried to "override" the defaultWindow's density using Reflection - without a result
Please note that I am aware that this is bad practice, but it's just a personal project and I am curious to know if this is possible.
Any help is highly appreciated!
EDIT: What I want is to really scale the screen as a whole. I am not the author of the original layout, as it's an open source project for tablets that I want to use on my phone. Here is the source: https://github.com/amigold/Gui2Go The layout I am talking about is main.xml.