@ Yume177, मैंने पाया है कि यह कैसे करना है:
@Override
public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub
super.onConfigurationChanged(newConfig);
RelativeLayout rl = (RelativeLayout) findViewById(R.id.about);
rl.removeAllViews();
rl.addView(View.inflate(myView.getContext(), R.layout.about, null));
}
मैं एक निर्देशिका में 2 RelativeLayout दोनों नाम "about.xml", एक लेआउट के साथ है रेस/लेआउट-sw720dp/मेरे लैंडस्केप ड्रॉइंग के साथ पोर्ट्रेट मोड और res/layout-sw720dp-land/about.xml के लिए मेरे ड्रॉबल के साथ about.xml। जब मैं अपना टैबलेट घुमाता हूं, तो मेरा लेआउट पूरी तरह से फिट बैठता है। उम्मीद है कि मैं आपकी मदद करूंगा
जब मैं ऐसा करता हूं तो यह nullpointerexception देता है? क्या कोई सेटकंटेंटिव नहीं है? –