Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public class MainActivity extends SherlockActivity implements ActionBar.OnNavigationListener,
  2. OnItemClickListener {
  3.  
  4. @Override protected void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6.  
  7. setContentView(R.layout.activity_main);
  8.  
  9.  
  10. Context context = getSupportActionBar().getThemedContext();
  11. R.layout.sherlock_spinner_item);
  12. list.setDropDownViewResource(R.layout.sherlock_spinner_dropdown_item);
  13.  
  14. getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
  15. getSupportActionBar().setListNavigationCallbacks(list, this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement