Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. protected override void OnAttached()
  2. {
  3. try
  4. {
  5. IntPtr IntPtrtextViewClass = JNIEnv.FindClass(typeof(TextView));
  6. IntPtr mCursorDrawableResProperty = JNIEnv.GetFieldID(IntPtrtextViewClass, "mCursorDrawableRes", "I");
  7. JNIEnv.SetField(Control.Handle, mCursorDrawableResProperty, Resource.Drawable.custom_cursor);
  8. }
  9. catch (Exception e) {
  10. Console.WriteLine(e);
  11. }
  12. }
  13.  
  14. JNI DETECTED ERROR IN APPLICATION: jfieldID int android.widget.TextView.mCursorDrawableRes not valid for an object of class md5a6256f8d5bc17d3565a450e514d4a6e7.MaterialFormsTextInputLayout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement