/** Calls two helper methods that setup the tabs and the setting controls */ @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_receipt_settings, container, false); setupTabs(rootView); receiptAccounts = tabHost.getReceiptAccounts(); return rootView; }