Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Layout xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/listView1" />
</LinearLayout>
C#:
public DerivedListView ListView { get; set; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
base.OnCreateView(inflater, container, savedInstanceState);
var view = inflater.Inflate(Resource.Layout.ListFragment, container, false);
ListView = view.FindViewById<DerivedListView>(Resource.Id.listView1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment