D
D
dingo10602014-06-29 19:44:16
Android
dingo1060, 2014-06-29 19:44:16

How to make double line text in DrawerList?

I have a DrawerList with standard markup filled with an array:

mDrawerListView.setAdapter(new ArrayAdapter<String>(
                getActionBar().getThemedContext(),
                android.R.layout.simple_list_item_activated_1,
                android.R.id.text1,
                new String[]{
                        getString(R.string.title_section1),
                        getString(R.string.title_section2),
                        getString(R.string.title_section3),
                        getString(R.string.title_section4),
                        getString(R.string.title_section5),
                        getString(R.string.title_section6),
                        getString(R.string.title_section7),
                        getString(R.string.title_section8),
                        getString(R.string.title_section9),
                        getString(R.string.title_section10),

                }));

If I change the markup for DrawerList with Main text and subtext , how do I set the lines that will be displayed under the main text of the list?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marat S, 2014-06-29
@dingo1060

what's the problem with
going to custom adapters.
make your own layout for the list element,
and fill it as you like ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question