English 中文(简体)
2. 建立科罗氏族变体
原标题:Setting Gestures Color to Transparent

我试图提出我的申请,不要表明他们是否得到承认的任何姿态。 目前,我能够把公认的肤色确定为透明。 罚款。 然而,如果我对透明度持不认识的颜色,它仍然显示为绿色。 我已尝试将这项工作改变为其他颜色(即蓝色)和这项工作。 看来是专门针对未承认的姿态的变性颜色。 没有人有什么想法?

>       GestureOverlayView
> gestureOverlayView = new
> GestureOverlayView(this);         View
> inflate =
> getLayoutInflater().inflate(R.layout.item,
> null);
>       gestureOverlayView.addView(inflate);
>       gestureOverlayView.setGestureColor(Color.TRANSPARENT);
>       gestureOverlayView.setUncertainGestureColor(Color.TRANSPARENT);
>       gestureOverlayView.addOnGesturePerformedListener(this);
>       gestureLib =
> GestureLibraries.fromRawResource(this,
> R.raw.gestures);      
>         if (!gestureLib.load()) {
>             finish();
>         }         setContentView(gestureOverlayView);
最佳回答

我在最后一刻看到这一点。 以上是正确的,但我需要将以下内容列入XML的布局,以使姿态透明。

  android:uncertainGestureColor="#00000000"
  android:gestureColor="#00000000">
问题回答

In the GestureOverlay 这里采用的观点方法可以激发/消除姿态线的可见度。

gestureOverlayView.setGestureVisible(false);




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签