Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:45:15+00:00 2026-06-14T13:45:15+00:00

I have a quiz app with many categories: Category 1 List item 1 List

  • 0

I have a quiz app with many categories:

Category 1

  • List item 1
  • List item 2

Category 3

Category 4

Category 5

  • List item 1
  • List item 2
  • List item 3

So category either refers to a general non selectable category which is the category heading or an actual category. So for example within let’s say that category 1 is fruits, there could be questions on apples and bananas. Apples and bananas would be selectable and also show how many questions were in category. But then category 3 would be vegetables which itself is selectable holding for example 100 questions.

Now is there the possibility of making this into an expandablelistview for each category. However categories that don’t have additional questions are non expandable. Is there the possibility of putting buttons within the expandable list view or would these have to be separate? What about checkboxes?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:45:16+00:00Added an answer on June 14, 2026 at 1:45 pm

    You can create sectioned list easily by using following library.you can create it in six line

    So you can have header for each category in listview

    sectioned List ibrary

    Example for Sectioned List

    How to Implement this,

       // 1. Your data source
        String[] books = new String[] {
            "A Item", "F Item", "D Item", 
            "H Item", "T Item", 
            "A Item 1", "T Item 2"
        };
    
        // 2. Sort it
        Arrays.sort(books, 0, books.length, Collator.getInstance());
    
        // 3. Create your adapter
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, 
                android.R.layout.simple_list_item_1, books);
    
        // 4. Create a Sectionizer
        Sectionizer<String> alphabetSectionizer = new Sectionizer<String>() {
    
            @Override
            public String getSectionTitleForItem(String categoryName) {
                return bookName;
            }
        };
    
        // 5. Wrap your adapter within the SimpleSectionAdapter
        SimpleSectionAdapter<String> sectionAdapter = new SimpleSectionAdapter<String>(this, 
                adapter, R.layout.section_header, R.id.title, alphabetSectionizer);
    
        // 6. Set the adapter to your ListView
        setListAdapter(sectionAdapter);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a quiz app which emails the user the results. I want
I have a quiz app which has a timer for the whole gameactivity where
I have a quiz app which populates a sqlite database with questions of around
I have created a quiz app using XML. My XML code: <item> <question type=singleChoice>
I am writing a jquery phonegap quiz app and have a number of categories
I have a quiz app which loads questions into a textview, answers in radiobuttons
I am making a quiz app in which i have to select the number
I am creating a quiz app and I have a custom ItemizedOverlay where I
I have forms which work fine. I have a quiz which works fine. When
I have a javascript quiz which gets question data via an ajax call to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.