Show floating button or menu on gridview item click
<p>I have a gridview like this: </p>

<p><a href="https://i.stack.imgur.com/OGvid.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OGvid.png" alt="enter image description here"></a></p>

<p>Now, when I click on the button's pencil icon,in the gridview item, I want to show  three buttons. Maybe like Floating button.</p>

<p>My layout:</p>

<pre><code>&lt;LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingRight="10dp"
    android:paddingTop="10dp"
    android:layout_gravity="right|bottom" &gt;

    &lt;ImageButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/imageButton"
        android:src="@drawable/pencil"
        android:background="@color/listrow"
        android:layout_gravity="right|bottom" /&gt;
    &lt;ImageButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/imageButton1"
        android:src="@drawable/pencil"
        android:background="@color/listrow"
        android:layout_gravity="right|bottom"
        android:visibility="gone" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>My code to show button Gone at positison item grid:</p>

<pre><code>pen = (ImageButton) v.findViewById(R.id.imageButton);
        pen1 = (ImageButton) v.findViewById(R.id.imageButton1);
        pen.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                pen1.setVisibility(View.VISIBLE);
                Toast.makeText(Activity.this, "At: "+position, Toast.LENGTH_SHORT).show();
            }
        });
</code></pre>

<p>Anyone can give any ideal? </p>