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 8653267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:30:10+00:00 2026-06-12T14:30:10+00:00

The first thing to say is im a beginner and now im developing my

  • 0

The first thing to say is im a beginner and now im developing my first “real” android apps(it will be on Google Play).
I already google a lot about this “Quiz” application for android and i cant get good information nor project examples about this one (most of the code/project examples is about a viewFlipper/TextSwitcher changing everytime you touch the screen –thats not what i want). I also tried to search in Stackoverflow and what i got is some downvoted question without a good/helping answer.

So there will be a quiz section in my app, and i will have 3 type of questions :

  1. A question with a radiobutton answer
  2. A question with a checkboxlist answer
  3. A question with an edittext answer

There will be about 50 questions in my apps, so i have a plan to create 3 different layouts.

And these are my question’s :

  1. Do you have any links/examples?please share(I already try to find on my own) 😀
  2. What is the best way to do this?(Example : like using viewFlipper with layouts, or something else)
  3. Is it possible to generate a 3 different types of question(3 layouts) using viewFlipper?how to do this?

Thank you 😀

  • 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-12T14:30:11+00:00Added an answer on June 12, 2026 at 2:30 pm

    You should create one master layout for question, with a TextView for statement, a container (like FrameLayout) for answer layout , and next , previous Button‘s. In the container you can place two Views, a ListView and an EditText for editable answers. Visibility of both as GONE.

    Now, Once you got master layout visible, you can load each question in same layout. You will need to set text of statement view, if your question has options, you set ListView visibile, load data in it and set it to single/multiple choice. Else, if you question has an editable answer, you set EditText visible, (set ListView visibilty to gone).

    This will be much more efficient than inflating separate layouts per question, Also ListView perfectly handles any number of options , can be single/multiple choice and allows to scroll to any option independent of screen size.

    Layout Xml:

    <?xml version="1.0" encoding="utf-8"?>
    
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:orientation="vertical">
        <TextView android:id="@+id/question__Statement"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                />
        <FrameLayout android:layout_width="match_parent"
                     android:layout_height="0dp"
                     android:layout_weight="1"
                >
            <ListView android:id="@+id/question__options"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:visibility="gone"
                    />
            <EditText android:id="@+id/question__text"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:visibility="gone"
                    />
        </FrameLayout>
        <LinearLayout android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                >
            <Button android:id="@+id/question__prev"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:layout_alignParentLeft="true"
                    android:text="Previous"
                    />
            <Button android:id="@+id/question__next"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:layout_alignParentRight="true"
                    android:text="Next"
                    />
        </LinearLayout>
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First thing i want to say that it's not an easy question to explain,
To begin with, I don't know the first thing about Python ... so I
I don't know the first thing about mobile application development. I'm starting my research
Specifically in theme php files, such as say index.php. The very first thing in
At first I want to say I'm a total beginner in Python so this
First thing I would like to say is, i know deploying ror applications in
The first thing i would like to say is that this is not exactly
Say that a page loads and the first thing I want to do is
OK, first thing I want to say is: yes, I know there are a
Let's say I'm writing a eBook reader for Windows Phone 7. Now the first

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.