Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

namespace name 'ClipData' and 'DragShadowBuilder' does not exist?

$
0
0

Hi, The following is not resolved. Please help.

Android.Content.ClipData data = Android.Content.ClipData.NewPlainText("", "");

DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(v);

v.startDrag(data, shadowBuilder, v, 0);

I am getting following errors: 1) Error CS0234: The type or namespace name 'ClipData' does not exist in the namespace 'Android.Content' (are you missing an assembly reference?) (CS0234) 2) Error CS0246: The type or namespace name 'DragShadowBuilder' could not be found (are you missing a using directive or an assembly reference?) (CS0246) 3) Error CS0426: The type name 'DragShadowBuilder' does not exist in the type 'Android.Views.View' (CS0426)

As per "Android.Content.ClipData" Class documentation, I have included the followings: Namespace: Android.Content Assembly: Mono.Android

But still it's not resolving. Please let me know what else I need to do, to remove this error.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>