0

I'm developing an Android app and I want to have 2 ActionBar (one on the top and another on the bottom) like this: http://developer.android.com/design/media/action_bar_pattern_considerations.png

I'm using Actionbar Sherlock and for now I created only the top ActionBar. I serched in the web, but I didn't find a solution yet, only some piece of code.

Can anyone help?

Rajesh Omanakuttan
  • 6,788
  • 7
  • 47
  • 85
LPirro
  • 214
  • 1
  • 3
  • 3

2 Answers2

0

try this...

public class MainActivity extends SherlockActivity {

    private View contentView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        contentView = getLayoutInflater().inflate(R.layout.activity_main, null);
        setContentView(contentView);
        LinearLayout layout = (LinearLayout) contentView.getParent().getParent();
        View view = layout.getChildAt(0);
        layout.removeViewAt(0);
        layout.addView(view);
    }
CRUSADER
  • 5,486
  • 3
  • 28
  • 64
Gopal Gopi
  • 11,101
  • 1
  • 30
  • 43