Bug 36518 - Android.Support.V17.Leanback.Widget.SearchEditText is not a View according to the Binding
Summary: Android.Support.V17.Leanback.Widget.SearchEditText is not a View according to...
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Staging (addons.xamstage.com)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2015-12-03 09:09 UTC by Boris Spinner
Modified: 2015-12-07 14:33 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Boris Spinner 2015-12-03 09:09:26 UTC
I can't use FindViewById to retrieve a SearchEditText because it isn't a View:

namespace Android.Support.V17.Leanback.Widget
{
  [Register("android/support/v17/leanback/widget/SearchEditText", DoNotGenerateAcw = true)]
  public class SearchEditText : Java.Lang.Object


According to the support library's source, it should be:

public class SearchEditText extends StreamingTextView

class StreamingTextView extends EditText

My best guess: this error occured, because StreamingTextView is a private class of the leanback support library?

https://android.googlesource.com/platform/frameworks/support/+/master/v17/leanback/src/android/support/v17/leanback/widget/StreamingTextView.java?autodive=0%2F%2F%2F%2F%2F%2F
Comment 1 Jon Dick 2015-12-07 14:33:59 UTC
Please try v23.1.1.0 from NuGet.  The SearchEditText class has been changed to inherit from StreamingTextView instead of Java.Lang.Object.

Thanks!