title: Show Tool tip type layout below action bar
body: <p>Hi i want to show custom pop up layout bottom of action bar. But i tried to position a view to another view.</p>
  
  <p>What i wanted is :
  <a href="https://i.stack.imgur.com/vnUfC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vnUfC.png" alt="enter image description here"></a></p>
  
  <p>And i am actually getting is :</p>
  
  <p><a href="https://i.stack.imgur.com/cSiJn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cSiJn.png" alt="enter image description here"></a></p>
  
  <p>What i Tried to acieve this.</p>
  
  <p>// Inflate layout </p>
  
  <pre><code>View filterLayout = getLayoutInflater().inflate(R.layout.tooltip_layout, null);
          filterPopup = new PopupWindow(this);
         /* filterPopup.setWidth(ListPopupWindow.MATCH_PARENT);
          filterPopup.setHeight(ListPopupWindow.WRAP_CONTENT);*/
          filterPopup.setOutsideTouchable(true);
          filterPopup.setContentView(filterLayout);
          filterPopup.setBackgroundDrawable(new BitmapDrawable());
          filterPopup.setFocusable(true);
  </code></pre>
  
  <p>// Show layout bottom of action bar </p>
  
  <pre><code>int[] location = new int[2];
                                                  mActivityMainBinding.appBarMain.contentMain.mainContentLayout.getLocationOnScreen(location);
                                                  Point point = new Point();
                                                  point.x = location[0];
                                                  point.y = location[1];
  
                                                  filterPopup.showAtLocation(mActivityMainBinding.appBarMain.toolbar, Gravity.LEFT | Gravity.TOP, point.x, point.y);
  </code></pre>
  
  <p>// This is my tool tip layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      card_view:cardBackgroundColor="#fffff"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="15dp"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@color/color_white"
              android:orientation="vertical"
              android:padding="10dp"&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:fontFamily="@font/futura_medium"
                  android:text="Have you selected the right location ?"
                  android:textColor="@color/colorSection"
                  android:textSize="@dimen/text_sizes_medium" /&gt;
  
              &lt;View
                  android:layout_width="match_parent"
                  android:layout_height="10dp" /&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:fontFamily="@font/futura_medium"
                  android:lineSpacingExtra="4dp"
                  android:text="Your selected location seems to be little far off from your device location"
                  android:textColor="@color/colorTextPrimery"
                  android:textSize="@dimen/text_sizes_medium" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="10dp"
                  android:layout_marginTop="10dp"
                  android:gravity="center"
                  android:orientation="horizontal"&gt;
  
                  &lt;TextView
                      android:id="@+id/text_no_thanks"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:fontFamily="@font/futura_medium"
                      android:gravity="center"
                      android:text="NO THANKS"
                      android:textColor="@color/colorTextPrimery"
                      android:textSize="@dimen/text_sizes_smaller" /&gt;
  
                  &lt;View
                      android:layout_width="20dp"
                      android:layout_height="match_parent" /&gt;
  
                  &lt;TextView
                      android:id="@+id/text_change_location"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="end"
                      android:background="@drawable/selector_ligt_to_dark_no_radius"
                      android:fontFamily="@font/futura_medium"
                      android:gravity="center"
                      android:padding="6dp"
                      android:text="CHANGE LOCATION"
                      android:textColor="@color/color_white"
                      android:textSize="@dimen/text_sizes_smaller" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  
      &lt;ImageView
          android:layout_width="20dp"
          android:layout_height="20dp"
          android:layout_marginLeft="60dp"
          android:background="@android:color/transparent"
          android:src="@drawable/arrow_white" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Can anyone please guide me what can i do for achieving this ? I want to show the card view layout to align with action bar bottom alignment.  </p>