Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Load the new landscape layout for both fragment and adapter
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View newView = inflater.inflate(R.layout.fragment_payment_cards, null);
- ViewGroup rootView = (ViewGroup) getView();
- rootView.removeAllViews();
- rootView.addView(newView);
- initLayout(root);
- loadData();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement