title: Use multiple Orb buttons or other buttons in the leanback's title view
body: <p>Is it possible to use multiple SearchOrb buttons or another focusable buttons in custom title view of leanback showcase app? The problem is that I can focus only one button...</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>What I've done:</p>
  
  <p>There is custom title view class, which contains Search Orb, title text view, Custom Orb and Analog clock.</p>
  
  <p>The problem is that when I try to focus Search Orb, the focus goes to custom Orb... And that's all. Focuses only Custom Orb.</p>
  
  <p>Click Listener for main Search Orb is set. I don't know where the problem is. If it is needed I can post other code on demand.</p>
  
  <p>Thanks for helping!</p>
  
  <p>titleview.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;com.olegmart.smart.base.CustomTitleView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/browse_title_group"
      android:padding="16dp"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>CustomTitleView.java:</p>
  
  <pre><code>package com.olegmart.smart.base;
  
  import android.content.Context;
  import android.graphics.drawable.Drawable;
  import android.support.v17.leanback.widget.SearchOrbView;
  import android.support.v17.leanback.widget.TitleViewAdapter;
  import android.util.AttributeSet;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.widget.RelativeLayout;
  import android.widget.TextView;
  import android.widget.ImageView;
  
  import com.olegmart.smart.R;
  
  public class CustomTitleView extends RelativeLayout implements TitleViewAdapter.Provider {
      private final TextView mTitleView;
      private final View mAnalogClockView;
      private final View mGridOrbView;
      private final View mSearchOrbView;
  
  private final TitleViewAdapter mTitleViewAdapter = new TitleViewAdapter() {
      @Override
      public View getSearchAffordanceView() {
          return mSearchOrbView;
      }
  
      @Override
      public void setTitle(CharSequence titleText) {
          CustomTitleView.this.setTitle(titleText);
      }
  
      @Override
      public void setBadgeDrawable(Drawable drawable) {
          //CustomTitleView.this.setBadgeDrawable(drawable);
      }
  
      @Override
      public void updateComponentsVisibility(int flags) {
          /*if ((flags &amp; BRANDING_VIEW_VISIBLE) == BRANDING_VIEW_VISIBLE) {
              updateBadgeVisibility(true);
          } else {
              mAnalogClockView.setVisibility(View.GONE);
              mTitleView.setVisibility(View.GONE);
          }*/
  
          int visibility = (flags &amp; SEARCH_VIEW_VISIBLE) == SEARCH_VIEW_VISIBLE
                  ? View.VISIBLE : View.INVISIBLE;
          mSearchOrbView.setVisibility(visibility);
      }
  
      private void updateBadgeVisibility(boolean visible) {
          if (visible) {
              mAnalogClockView.setVisibility(View.VISIBLE);
              mGridOrbView.setVisibility(View.VISIBLE);
              mTitleView.setVisibility(View.VISIBLE);
  
          } else {
              mAnalogClockView.setVisibility(View.GONE);
              mGridOrbView.setVisibility(View.GONE);
              mTitleView.setVisibility(View.GONE);
          }
      }
  };
  
  public CustomTitleView(Context context) {
      this(context, null);
  }
  
  public CustomTitleView(Context context, AttributeSet attrs) {
      this(context, attrs, 0);
  }
  
  public CustomTitleView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
      View root  = LayoutInflater.from(context).inflate(R.layout.custom_titleview, this);
      mTitleView = (TextView) root.findViewById(R.id.title_tv);
      mAnalogClockView = root.findViewById(R.id.clock);
      mGridOrbView = root.findViewById(R.id.grid_orb);
  
      mSearchOrbView = root.findViewById(R.id.search_orb);
  }
  
  public void setTitle(CharSequence title) {
      if (title != null) {
          mTitleView.setText(title);
          mTitleView.setVisibility(View.VISIBLE);
          mGridOrbView.setVisibility(View.VISIBLE);
          mAnalogClockView.setVisibility(View.VISIBLE);
      }
  }
  
  
  public void setBadgeDrawable(Drawable drawable) {
      if (drawable != null) {
          mTitleView.setVisibility(View.GONE);
          mGridOrbView.setVisibility(View.VISIBLE);
          mAnalogClockView.setVisibility(View.VISIBLE);
      }
  }
  
  @Override
  public TitleViewAdapter getTitleViewAdapter() {
      return mTitleViewAdapter;
  }
  }
  </code></pre>
  
  <p>custom_titleview.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v17.leanback.widget.SearchOrbView
          android:id="@+id/search_orb"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:transitionGroup="true"
          android:layout_gravity="center_vertical|start"
          android:layout_marginTop="8dp"
          android:paddingStart="48dp"
          android:focusable="true"
          android:nextFocusRight="@+id/grid_orb"
          /&gt;
  
      &lt;AnalogClock
              android:id="@+id/clock"
              android:layout_width="80dp"
              android:layout_height="80dp"
              android:padding="6dp"
              android:layout_alignParentEnd="true"
              android:layout_gravity="center_vertical|end"
              android:layout_marginEnd="24dp" /&gt;
  
      &lt;android.support.v17.leanback.widget.SearchOrbView
          android:id="@+id/grid_orb"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_marginTop="8dp"
          android:layout_marginEnd="24dp"
          android:layout_centerVertical="true"
          android:layout_toStartOf="@id/clock"
          android:nextFocusLeft="@+id/search_orb"
          android:focusable="true"
          /&gt;
  
  
  
      &lt;TextView
              android:id="@+id/title_tv"
              android:textAppearance="@android:style/TextAppearance.Large"
              android:visibility="gone"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginEnd="24dp"
              android:layout_centerVertical="true"
              android:layout_toStartOf="@id/grid_orb" /&gt;
  
  &lt;/merge&gt;
  </code></pre>