-
-
Save heiligerdankgesang/3ee2bd2363b9ff68565e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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