Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Custom Renderer: Read view from layout

$
0
0

Hi!

I have an Android example I want to put into Xamarin.Forms:

<com.nativeandroidproject.view
  android:id="@+id/widget"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" />

NativeAndroidView widget = (NativeAndroidView) findViewById(R.id.widget);

The problem is that I can't create an object from that NativeAndroidViewinside of my custom renderer and pass it to SetNativeView(), the API from the NativeAndroidViewisn't supporting this. So I was wondering how I can put this together in Forms.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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