Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding gestureoverlayview on top of an existing screen
    primarykey
    data
    text
    <p>I am trying to add a gestureoverlayview on top of my existing activity but this is not working.</p> <pre><code> LayoutInflater li = getLayoutInflater(); v = li.inflate(R.layout.main, null); TextView tv = (TextView)v.findViewById(R.id.icon_text); tv.setText("Profile "+position); ImageView iv = (ImageView)v.findViewById(R.id.icon_image); iv.setImageResource(R.drawable.icon); ov = (GestureOverlayView)v.findViewById(R.id.overlay); ov.addOnGesturePerformedListener(this); </code></pre> <p>I am adding my gestureview like this.It only shows the icon and i am unable to write on the screen.What am i doing wrong?</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;android.gesture.GestureOverlayView android:id="@+id/overlay" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gestureStrokeType="multiple" android:eventsInterceptionEnabled="true" android:orientation="vertical"&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget44" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:layout_x="201px" android:layout_y="165px" android:gravity="center_horizontal"&gt; &lt;ImageView android:id="@+id/icon_image" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;/ImageView&gt; &lt;TextView android:id="@+id/icon_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:gravity="center_horizontal" android:textColorHighlight="#656565"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;/android.gesture.GestureOverlayView&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload