This probably depends on what you mean by "unchanging orientation." However, I think that the best place to start would be to create your own class for the part that should not change. So, the xml layout now has two files:
main_layout.xml
RelativeLayout (Parent) TextView MyNonChangingLayout
my_non_changing_layout.xml
RelativeLayout FrameLayout Button
Where did you create
MyNonChangingLayout extends FrameLayout { MyNonchangingLayout(Context content) { super(context); myContext = context; makeFromXML(); } private void makeFromXML() { LayoutInflater inflater = (LayoutInflater)myContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); topView = inflater.inflate(MyR.layout.my_non_changing_layout, this, false);
}
After that, you can effectively use whatever you want. If you can be more specific about what behavior you want to apply in the subregion, I could suggest a more specific code.
One thing you might want to do is save
source share