title: Android ActionBar custom layout styling
body: <p>I'm just starting android development coming from IOS and again stubbled onto a problem.
  And after 1 day of trying i decided that i will ask the people of stack overflow.</p>
  
  <p>So my problem:</p>
  
  <p>I have an app and in the action bar (default no sherlock) i want 1 logo and 2 lines of text.
  And trough the internet i fount the setCustomView for the action bar.
  And the custom xml is loaded but i can't get the layout right.</p>
  
  <p>So first i setup the action bar:</p>
  
  <pre><code>private void setupActionBar() {
      ActionBar actionBar = getSupportActionBar();
      actionBar.setDisplayShowTitleEnabled(false);
      actionBar.setDisplayUseLogoEnabled(false);
      actionBar.setDisplayHomeAsUpEnabled(false);
      actionBar.setDisplayShowCustomEnabled(true);
      actionBar.setDisplayShowHomeEnabled(false);
  
      LayoutParams lp1 = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
      View customNav = LayoutInflater.from(this).inflate(R.layout.actionbar, null); // layout which contains your button.
  
      actionBar.setCustomView(customNav, lp1);
  }
  </code></pre>
  
  <p>Than the xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="fill_horizontal"
      android:orientation="horizontal"
      android:background="@color/Blue"&gt;
  
      &lt;TextView
          android:id="@+id/text_left"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/title_menu"
          android:textColor="@color/White"
          android:paddingLeft="5dp"
          android:layout_gravity="left"/&gt;
  
      &lt;ImageView
          android:id="@+id/icon"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/Icon"
          android:layout_gravity="center"/&gt;
  
      &lt;TextView
          android:id="@+id/text_right"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/title_help"
          android:layout_gravity="right"
          android:textColor="@color/White"
          android:paddingRight="5dp"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But the result is something what i'm not looking for:</p>
  
  <p><img src="https://i.stack.imgur.com/0MHhx.png" alt="Problem in an image"></p>
  
  <p>So what am i forgetting/doing wrong/or should i do?</p>