How to hide GestureOverlayView stroke

by Mica » Thu, 02 Sep 2010 01:55:47 GMT


Sponsored Links
 I have a ListView with  GestureOverlayView, when user swipe left, it
mark the ListView Item. It is working perfectly. only thing I don't
like to see is when user swipe it display the yellow color stroke
line. Is there any way I can make it not to display the Stroke when
user perform gesture? Thanks in advance

--



How to hide GestureOverlayView stroke

by Mark Murphy » Thu, 02 Sep 2010 02:09:36 GMT


 I need to experiment with this tomorrow, but you should be able to use:

android:gestureColor="#00000000"

(and possibly the same for android:uncertainGestureColor)




-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books 

--


Sponsored Links


Other Threads

1. ContactManager sample app (api version 7) stopped unexpectedly : Need Help




Have you tried debugging it?

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 

2. GLThread, native code, and dialogs

Hi list !

I'm having this problem:

In my application, I use a GLSurfaceView for 3D rendering. The real
rendering is done by calling native methods, coded in C++.

Once in a while (upon user clicks on 3D scene objects) the native
rendering engine should be able to call Java methods (through JNI)
that display a dialog box.

I can't get it to work, that's driving me crazy.

Here is the native method:

[CODE]
void MyCPlusPlusClass::showDialog(const std::string& pMsg)
{
    jclass lClass = mJNIEnv->GetObjectClass(mActivity);
    if (!lClass)
    {
        return false;
    }
    jmethodID lMethId = mJNIEnv->GetMethodID(lClass,
"showMessageDialog", "(Ljava/lang/String;)V");
    if (!lMethId)
    {
        return false;
    }
    jstring lJavaString = mJNIEnv->NewStringUTF(pMessage.c_str());
    mJNIEnv->CallVoidMethod(mActivity, lMethId, lJavaString);
}
[/CODE]

Then, the method showMessageDialog, coded in Java, in my activity:

[CODE]
public void showMessageDialog(String pMsg)
{
    Log.i("Vg", "Create dialog with message " + pMsg);
    Log.i("Vg", "Show dialog");
    runOnUiThread(
        new Runnable () {
            public void run () {
                AlertDialog.Builder lAlertBox = new
AlertDialog.Builder(this);
                TextView lTextView = new TextView(MyActivity.this);
                lTextView.setText(mMessage);
                lAlertBox.setView(lTextView);
                lAlertBox.setNeutralButton("Ok", MyActivity.this);
                lAlertBox.setOnCancelListener(MyActivity.this);
                lAlertBox.show();
            }
        }
    );
}
[/CODE]

I thought this would work, but it doesn't. What am I doing wrong ?

Thanks
Florent.

-- 

3. Run Android 2.0.1 on HTC magic

4. Android Emulator without a Camera, Camera.open() != null ????

5. SipManager 2.3 SDK

6. Getting relative positions of elements in a grid view

7. how to build an unsigned application in the source code