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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:31:20+00:00 2026-06-06T14:31:20+00:00

I have to make an android app. It is about counting Bunks for college

  • 0

I have to make an android app. It is about counting Bunks for college students.
So I want to make it like this:

Spinner 1 has

Select Branch

  1. ME
  2. CE
  3. IT
  4. EE

Select semester

1st
2nd
3rd
4th

etc.

Now if student is selecting ME and 3rd semester, then his 3rd semester Subjects should come
like:

Enter Bunks of Subject:

ABC1: EditText
ABC2: EditText
ABC3: EditText
ABC4: EditText
ABC4: EditText

and this input by user should come to logic of percentage of attendance, and answers should come on another page with same subject name.

Can anyone help me please?

EDIT

My Main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView 
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<Spinner
android:id="@+id/spinner1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
  • 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-06T14:31:22+00:00Added an answer on June 6, 2026 at 2:31 pm

    XML for spinner:

    <Spinner
    android:id="@+id/city_spinner_iWant"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:prompt="@string/citySpinner"
    android:textColor="@color/white"
    android:textSize="20dp" />
    

    in code, set the adapter to populate the spinner with requires items (in your case branches):

    String[] city_array = new String[]{"London", "Newyork", "Paris"};
    
    ArrayAdapter<String> cityArrayAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,city_array);
    
    city_spinner = (Spinner) findViewById(R.id.city_spinner_iWant);
    city_spinner.setAdapter(cityArrayAdapter);
    

    Then to show forms depending on the item selected in the spinner:

    city_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
    
    public void onItemSelected(AdapterView<?> adapter, View v,int i, long lng) {
    
    selected_city = adapter.getItemAtPosition(i).toString();
    Toast.makeText(getApplicationContext(), selected_city, 1000).show();
    
    //conditions depending on selected_city (in your case selected branch)
    }
    public void onNothingSelected(AdapterView<?> arg0) {
    
    //no need to impement this
    }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written an app for the android. I want to make this ad
Im about to make a android app and would like to use In-App-purchase in
I have to make a peer to peer file sharing app on android platform
I'm working on a relatively simple Android app. I want it to have an
I'm making Android app that has this database in it: public void onCreate(SQLiteDatabase db)
I'm creating my first android app that will make use of SQlite. I have
I have a question about maps API key. I'm writing an Android app which
Sorry about the in-concise title. I have an Android app in which I draw
I have an existing PHP MySQL web app that I want to make an
I am new to socket programing. I have to make an app for android

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.