Back to project page soundheap.
The source code is released under:
Copyright (c) 2014, Nicholas Wertzberger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
If you think the Android project soundheap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ideaheap.sound.control; /* w w w . ja v a 2 s . c o m*/ import java.util.List; import android.support.v4.app.Fragment; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.SherlockFragmentActivity; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.ideaheap.sound.R; public class MainController { private static final String TAG = MainController.class.toString(); public Fragment fragment; private final SherlockFragmentActivity activity; private final List<TabController> tabs; public MainController(SherlockFragmentActivity activity, List<TabController> tabs) { this.activity = activity; this.tabs = tabs; } public void setup() { activity.getSupportActionBar() .setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); for (TabController tab : tabs) { tab.buildTab(); } } public void inflateMenu(Menu menu) { MenuInflater inflater = activity.getSupportMenuInflater(); inflater.inflate(R.menu.main_menu, menu); } }