johannilsson / android-actionbar

DEPRECATED Android Action Bar Implementation
1.3k stars 564 forks source link

Alling logo to the rigth #41

Closed rfermontero closed 8 years ago

rfermontero commented 13 years ago

What that i need modify to aling the logo to the right?Its apperead at center. I have this code:

  ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);    
   actionBar.setHomeLogo(R.drawable.logo); 
   actionBar.setDisplayHomeAsUpEnabled(true);
johannilsson commented 13 years ago

Reply by email does not work for issues?

Currently I don't think this is possible. But in theory you could make a custom action that aligns to the right. An action with the id R.id.actionbar_item_home is automatically set as the home action. This is only partly supported in the honeycomb branch though from getActionView on an action, https://github.com/johannilsson/android-actionbar/blob/honeycomb-support/actionbar/src/com/markupartist/android/widget/ActionBar.java#L1567

But with a few modifications on the Action implementation this should be possible to do.

rfermontero commented 12 years ago

Sorry, i want to aling to de left not right. I have

   ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);
   actionBar.setHomeLogo(R.drawable.logo);
   actionBar.setDisplayHomeAsUpEnabled(true);
   actionBar.setTitle("Lugares");

But mi action bar puts

Name Icon

Can i set the icon first and the name next to de icon?