Skip to content

Commit 19de4a3

Browse files
committed
Home Page
1 parent 0e4ad50 commit 19de4a3

File tree

10 files changed

+123
-26
lines changed

10 files changed

+123
-26
lines changed

.idea/gradle.xml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/net/code/gdsc_app/MainActivity.kt

+10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package net.code.gdsc_app
33
import androidx.appcompat.app.AppCompatActivity
44
import android.os.Bundle
55
import android.view.View
6+
import android.widget.AdapterView
7+
import android.widget.ArrayAdapter
8+
import android.widget.Spinner
69
import androidx.navigation.findNavController
710
import net.code.gdsc_app.databinding.ActivityMainBinding
811

@@ -15,6 +18,13 @@ class MainActivity : AppCompatActivity() {
1518
binding = ActivityMainBinding.inflate(layoutInflater)
1619
val view = binding.root
1720
setContentView(view)
21+
22+
23+
24+
25+
26+
27+
1828
// val navHost = findViewById<View>(R.id.navHostFragmentHome)
1929
}
2030
}

app/src/main/res/drawable/image.png

10.1 KB
Loading

app/src/main/res/drawable/img.png

17.3 KB
Loading

app/src/main/res/drawable/pic.png

88.6 KB
Loading
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3+
<solid android:color="#FFFFFF" />
4+
<corners
5+
android:radius="4dp"/>
6+
<stroke
7+
android:width="1dp"
8+
android:color="#515151" />
9+
</shape>
+71-25
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,87 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent">
5+
26
<androidx.constraintlayout.widget.ConstraintLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
47
xmlns:app="http://schemas.android.com/apk/res-auto"
5-
xmlns:tools="http://schemas.android.com/tools"
68
android:layout_width="match_parent"
7-
android:layout_height="match_parent"
9+
android:layout_height="wrap_content"
810
tools:context=".ui.HomeFragment">
911

1012
<!-- TODO: Update blank fragment layout -->
1113

12-
<TextView
13-
android:id="@+id/textView"
14-
android:layout_width="wrap_content"
15-
android:layout_height="wrap_content"
16-
android:layout_marginTop="320dp"
17-
android:layout_marginBottom="13dp"
18-
android:gravity="center"
19-
android:text="Home Screen"
20-
android:textAppearance="@style/TextAppearance.AppCompat.Large"
21-
android:textColor="@color/black"
22-
app:layout_constraintBottom_toTopOf="@+id/button"
23-
app:layout_constraintEnd_toEndOf="parent"
24-
app:layout_constraintStart_toStartOf="parent"
25-
app:layout_constraintTop_toTopOf="parent" />
26-
2714
<Button
2815
android:id="@+id/tt_button"
2916
android:layout_width="wrap_content"
3017
android:layout_height="wrap_content"
31-
android:layout_marginTop="13dp"
32-
android:layout_marginBottom="320dp"
33-
android:text="Open Time-Table"
18+
android:layout_marginBottom="88dp"
19+
android:text="Proceed"
3420
android:textColor="@color/white"
3521
app:layout_constraintBottom_toBottomOf="parent"
3622
app:layout_constraintEnd_toEndOf="parent"
37-
app:layout_constraintHorizontal_bias="0.497"
3823
app:layout_constraintStart_toStartOf="parent"
39-
app:layout_constraintTop_toBottomOf="@+id/textView" />
24+
app:layout_constraintTop_toBottomOf="@+id/spinner3"
25+
app:layout_constraintVertical_bias="0.326" />
26+
27+
<ImageView
28+
android:id="@+id/imageView"
29+
android:layout_width="267dp"
30+
android:layout_height="328dp"
31+
android:src="@drawable/pic"
32+
app:layout_constraintBottom_toBottomOf="parent"
33+
app:layout_constraintEnd_toEndOf="parent"
34+
app:layout_constraintHorizontal_bias="0.503"
35+
app:layout_constraintStart_toStartOf="parent"
36+
app:layout_constraintTop_toTopOf="parent"
37+
app:layout_constraintVertical_bias="0.0" />
38+
39+
<Spinner
40+
android:id="@+id/spinner1"
41+
android:layout_width="287dp"
42+
android:layout_height="50dp"
43+
android:layout_marginTop="12dp"
44+
android:entries="@array/Branch"
45+
android:spinnerMode="dropdown"
46+
app:layout_constraintEnd_toEndOf="parent"
47+
app:layout_constraintHorizontal_bias="0.54"
48+
app:layout_constraintStart_toStartOf="parent"
49+
app:layout_constraintTop_toBottomOf="@+id/imageView"
50+
/>
51+
52+
<Spinner
53+
android:id="@+id/spinner2"
54+
android:layout_width="287dp"
55+
android:layout_height="50dp"
56+
android:layout_marginTop="24dp"
57+
android:entries="@array/Semester"
58+
android:spinnerMode="dropdown"
59+
app:layout_constraintEnd_toEndOf="parent"
60+
app:layout_constraintHorizontal_bias="0.54"
61+
app:layout_constraintStart_toStartOf="parent"
62+
app:layout_constraintTop_toBottomOf="@+id/spinner1" />
63+
64+
<Spinner
65+
android:id="@+id/spinner3"
66+
android:layout_width="287dp"
67+
android:layout_height="50dp"
68+
android:layout_marginTop="32dp"
69+
android:entries="@array/Section"
70+
android:spinnerMode="dropdown"
71+
app:layout_constraintEnd_toEndOf="parent"
72+
app:layout_constraintHorizontal_bias="0.54"
73+
app:layout_constraintStart_toStartOf="parent"
74+
app:layout_constraintTop_toBottomOf="@+id/spinner2" />
75+
76+
<ImageView
77+
android:id="@+id/imageView2"
78+
android:layout_width="359dp"
79+
android:layout_height="67dp"
80+
android:layout_marginTop="72dp"
81+
android:src="@drawable/img"
82+
app:layout_constraintEnd_toEndOf="parent"
83+
app:layout_constraintStart_toStartOf="parent"
84+
app:layout_constraintTop_toBottomOf="@+id/tt_button" />
4085

41-
</androidx.constraintlayout.widget.ConstraintLayout>
86+
</androidx.constraintlayout.widget.ConstraintLayout>
87+
</ScrollView>

app/src/main/res/values/strings.xml

+22
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,26 @@
22
<string name="app_name">Gdsc-App</string>
33
<!-- TODO: Remove or change this placeholder text -->
44
<string name="hello_blank_fragment">Hello blank fragment</string>
5+
<string-array name="Branch">
6+
<item>Branch</item>
7+
<item>CSE</item>
8+
<item>ISE</item>
9+
<item>ECE</item>
10+
<item>AI</item>
11+
</string-array>
12+
<string-array name="Semester">
13+
<item>Semester</item>
14+
<item>1st</item>
15+
<item>2nd</item>
16+
<item>3rd</item>
17+
<item>4th</item>
18+
</string-array>
19+
20+
<string-array name="Section">
21+
<item>Section</item>
22+
<item>A</item>
23+
<item>B</item>
24+
<item>C</item>
25+
<item>D</item>
26+
</string-array>
527
</resources>

0 commit comments

Comments
 (0)