Skip to content

Instantly share code, notes, and snippets.

@heiligerdankgesang
Created January 29, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiligerdankgesang/3ee2bd2363b9ff68565e to your computer and use it in GitHub Desktop.
Save heiligerdankgesang/3ee2bd2363b9ff68565e to your computer and use it in GitHub Desktop.
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