Changing the Source of a Listview that was created in Fragment

Asked

Viewed 13 times

1

Where I change the font type and color in Listview control?

Listview controls are in main.xaml as below:

<ListView
    android:id="@+id/left_drawer"
    android:layout_width="240dp"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:choiceMode="singleChoice"
    android:divider="#818181"
    android:foreground="#E2E2E2"
    android:dividerHeight="1dp"
    android:background="@drawable/menu_e_cardapio" />
<ListView
    android:id="@+id/right_drawer"
    android:layout_width="240dp"
    android:layout_height="match_parent"
    android:layout_gravity="right"
    android:choiceMode="singleChoice"
    android:divider="#E2E2E2"
    android:dividerHeight="1dp"
    android:foreground="#E2E2E2"
    android:background="@drawable/menu_d_cardapio" />

In Mainactivity is the code that creates the Listview list.

mLeftDataSet = new List<string>();
mLeftDataSet.Add ("Cadastros");
mLeftDataSet.Add ("Consultas");
mLeftDataSet.Add("Relatorios");
mLeftDataSet.Add("Tarefas");
mLeftAdapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, mLeftDataSet);
mLeftDrawer.Adapter = mLeftAdapter;

mRightDataSet = new List<string>();
mRightDataSet.Add ("Sobre");
mRightDataSet.Add ("Versão");
mRightDataSet.Add("Ajuda");
mRightAdapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, mRightDataSet);
mRightDrawer.Adapter = mRightAdapter;
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.