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. UnsupportedClassVersionError with 0.9 and Eclipse layout editor

Actually with any of the new 0.9 xml editors (layout, menu, resource,
xml) I get the same error (stacktrace below).  I am familiar with java
version related errors, but can't figure this one out.  I have tried
using both Java 5 and Java 6 (from the OS level, and from Eclipse java
compiler options), reconfigured my Eclipse and restarted, cleaned
project, etc, and have verified that the R.java class file for the
project is the 1.6 version (the docs say JDK 5 or 6).

"// Compiled from R.java (version 1.6 : 50.0, super bit)
public final class com.package.application.R {"

Ultimately the error is "Caused by:
java.lang.UnsupportedClassVersionError: Bad version number in .class
file" which comes from
"com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor.loadAndParseRClass(Unknown
Source)".

This happens every time I try to open a res/layout XML file.  Now,
these are exisitng files for an old app that was built with previous
versions of the SDK.  The app runs fine (after some porting of other
stuff), but I want to check out the new XML editors, and can't seem to
get there.  Any help or ideas are greatly appreciated.

stacktrace:

org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
$TerminatingClassNotFoundException: An error occurred while
automatically activating bundle com.android.ide.eclipse.editors (257).
        at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:
125)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:
427)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:
193)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:
368)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:
444)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:
397)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:
385)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:
87)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:
313)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:
227)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:
1274)
        at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
160)
        at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:
867)
        at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:
243)
        at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:
51)
        at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:
267)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
        at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:
263)
        at
org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:
233)
        at
org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:
846)
        at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:
606)
        at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:
428)
        at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:
594)
        at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:
263)
        at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:
1410)
        at org.eclipse.ui.internal.EditorManager
$5.runWithException(EditorManager.java:944)
        at org.eclipse.ui.internal.StartupThreading
$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:
133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:
3338)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3067)
        at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:
803)
        at org.eclipse.ui.internal.Workbench
$27.runWithException(Workbench.java:1361)
        at org.eclipse.ui.internal.StartupThreading
$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:
133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:
3338)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3067)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
288)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
        at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
113)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
382)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.osgi.framework.BundleException: Exception in
com.android.ide.eclipse.editors.EditorsPlugin.start() of bundle
com.android.ide.eclipse.editors.
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:
1028)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:
984)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:
346)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:
265)
        at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
400)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:
111)
        ... 57 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number
in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
        at
com.android.ide.eclipse.editors.resources.manager.ProjectClassLoader.findClass(Unknown
Source)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor.loadAndParseRClass(Unknown
Source)
        at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor.projectOpenedWithWorkspace(Unknown
Source)
        at
com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.addProjectListener(Unknown
Source)
        at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor.setupMonitor(Unknown
Source)
        at
com.android.ide.eclipse.editors.resources.manager.ResourceManager.setup(Unknown
Source)
        at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown
Source)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl
$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:
1003)
        ... 62 more

--~--~---------~--~----~------------~-------~--~----~

2. Google Android Developers...

I want to know if there is direct contact information for some of the
low-level Android developers. I have found and fixed a few of the
problems in the 1.0 SDK and would like to share with them the results.
Two examples include...

1. The default PATH information is...

PATH=/sbin:/system/sbin:/system/bin:/system/xbin

...but there is no "/system/sbin" directory in the 1.0 SDK.

2. File:///C:/Android/docs/intro/tutorial.html

...has a broken link to...

file:///C:/Android/docs/samples/NotePad/index.html

...and it should be...

file:///C:/Android/samples/NotePad

- Bill

--~--~---------~--~----~------------~-------~--~----~

3. best performing xml parser for android?

4. changing path r.java

5. T-Mobile will be restricting voice over internet protocol (VoIP) applications.

6. Obfuscation in eclipse for Android?

7. Internet proxy setting in R1.0