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
- ME
- CE
- IT
- 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>
XML for spinner:
in code, set the adapter to populate the spinner with requires items (in your case branches):
Then to show forms depending on the item selected in the spinner: