private void populateBottomMenu(LinearLayout bottomMenu) {
   mBottomMenuListener = new BottomMenuClickListener();
   AtomicInteger counter = new AtomicInteger(0);
   createBottomMenuItem(
       bottomMenu,
       mBottomMenuListener,
       counter,
       new FunFragment(),
       R.id.button1,
       R.string.fun,
       R.drawable.fun_logo);
   createBottomMenuItem(
       bottomMenu,
       mBottomMenuListener,
       counter,
       new FoodFragment(),
       R.id.button2,
       R.string.food,
       R.drawable.food_logo);
   createBottomMenuItem(
       bottomMenu,
       mBottomMenuListener,
       counter,
       mMapFragment,
       R.id.button3,
       R.string.map,
       R.drawable.map_logo);
   createBottomMenuItem(
       bottomMenu,
       mBottomMenuListener,
       counter,
       new SchemeFragment(),
       R.id.button4,
       R.string.scheme,
       R.drawable.scheme_logo);
   createBottomMenuItem(
       bottomMenu,
       mBottomMenuListener,
       counter,
       new OtherFragment(),
       R.id.button5,
       R.string.other,
       R.drawable.other_logo);
   mBottomMenuListener.first(get(bottomMenu, R.id.button3, ViewGroup.class));
 }
 public void focusBottomItem(int nbr) {
   mBottomMenuListener.deselectItem(getResources());
   final View child = find(R.id.bottom_frame_menu, LinearLayout.class).getChildAt(nbr);
   mBottomMenuListener.selectItem(child, getResources());
 }
 public void allBottomsUnfocus() {
   mBottomMenuListener.deselectItem(getResources());
   mBottomMenuListener.selected = null;
 }