Initial commit
This commit is contained in:
BIN
app/src/main/res/drawable-hdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
29
app/src/main/res/layout/activity_main.xml
Normal file
29
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
android:text="@string/intro"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:id="@+id/textView" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_show_classes"
|
||||
android:id="@+id/button"
|
||||
android:layout_marginTop="50dp"
|
||||
android:onClick="adminScreen"
|
||||
android:layout_below="@+id/textView"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
24
app/src/main/res/layout/activity_scan.xml
Normal file
24
app/src/main/res/layout/activity_scan.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/bluetoothstate"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<Button
|
||||
android:id="@+id/scandevice"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/scanning"
|
||||
android:enabled="false"
|
||||
/>
|
||||
<ListView
|
||||
android:id="@+id/devicesfound"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
/>
|
||||
</LinearLayout>
|
||||
16
app/src/main/res/layout/course_activity.xml
Normal file
16
app/src/main/res/layout/course_activity.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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"
|
||||
android:background="#ffffff">
|
||||
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="#b5b5b5"
|
||||
android:dividerHeight="1dp"
|
||||
android:cacheColorHint="#00000000"/>
|
||||
|
||||
</LinearLayout>
|
||||
17
app/src/main/res/layout/item_course.xml
Normal file
17
app/src/main/res/layout/item_course.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/Name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Nombre: " />
|
||||
<TextView
|
||||
android:id="@+id/Code"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Codigo: " />
|
||||
|
||||
</LinearLayout>
|
||||
37
app/src/main/res/layout/list_item_courses.xml
Normal file
37
app/src/main/res/layout/list_item_courses.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Album id / Hidden by default -->
|
||||
<TextView
|
||||
android:id="@+id/course_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Album Name -->
|
||||
<TextView
|
||||
android:id="@+id/course_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16dip"
|
||||
android:textColor="#000000"
|
||||
android:paddingTop="15dip"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="10dip"
|
||||
android:textStyle="bold"/>
|
||||
|
||||
<!-- Album Songs count -->
|
||||
<TextView android:id="@+id/course_code"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="#ffffff"
|
||||
android:textStyle="bold"
|
||||
android:background="#9ed321"
|
||||
android:paddingRight="3dip"
|
||||
android:paddingLeft="3dip"/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
54
app/src/main/res/layout/list_item_sections.xml
Normal file
54
app/src/main/res/layout/list_item_sections.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<!-- Album id / Hidden by default -->
|
||||
<TextView
|
||||
android:id="@+id/course_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Song id / Hidden by default -->
|
||||
<TextView
|
||||
android:id="@+id/section_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Track serial no -->
|
||||
<TextView
|
||||
android:id="@+id/section_no"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="15dip"
|
||||
android:textColor="#000000"
|
||||
android:textSize="16dip"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
|
||||
<!-- Song Name -->
|
||||
<TextView
|
||||
android:id="@+id/section_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="15dip"
|
||||
android:textColor="#000000"
|
||||
android:textSize="16dip"
|
||||
android:layout_toRightOf="@+id/section_no"/>
|
||||
|
||||
<!-- Song duration -->
|
||||
<TextView
|
||||
android:id="@+id/section_semester"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingLeft="3dip"
|
||||
android:paddingRight="6dip"
|
||||
android:textColor="#9ed321" />
|
||||
|
||||
</RelativeLayout>
|
||||
55
app/src/main/res/layout/list_item_students.xml
Normal file
55
app/src/main/res/layout/list_item_students.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<!-- Album id / Hidden by default -->
|
||||
<TextView
|
||||
android:id="@+id/section_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Song id / Hidden by default -->
|
||||
<TextView
|
||||
android:id="@+id/student_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Track serial no -->
|
||||
<TextView
|
||||
android:id="@+id/student_no"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="15dip"
|
||||
android:textColor="#000000"
|
||||
android:textSize="16dip"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
|
||||
<!-- Song Name -->
|
||||
<TextView
|
||||
android:id="@+id/student_lastname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="15dip"
|
||||
android:textColor="#000000"
|
||||
android:textSize="16dip"
|
||||
android:layout_toRightOf="@+id/student_no"/>
|
||||
|
||||
<!-- Song duration -->
|
||||
<TextView
|
||||
android:id="@+id/student_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="15dip"
|
||||
android:paddingLeft="5dip"
|
||||
android:paddingTop="15dip"
|
||||
android:textColor="#000000"
|
||||
android:textSize="16dip"
|
||||
android:layout_toRightOf="@+id/student_lastname"/>
|
||||
|
||||
</RelativeLayout>
|
||||
16
app/src/main/res/layout/section_activity.xml
Normal file
16
app/src/main/res/layout/section_activity.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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"
|
||||
android:background="#ffffff">
|
||||
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="#b5b5b5"
|
||||
android:dividerHeight="1dp"
|
||||
android:cacheColorHint="#00000000"/>
|
||||
|
||||
</LinearLayout>
|
||||
16
app/src/main/res/layout/student_activity.xml
Normal file
16
app/src/main/res/layout/student_activity.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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"
|
||||
android:background="#ffffff">
|
||||
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="#b5b5b5"
|
||||
android:dividerHeight="1dp"
|
||||
android:cacheColorHint="#00000000"/>
|
||||
|
||||
</LinearLayout>
|
||||
9
app/src/main/res/menu/add_class.xml
Normal file
9
app/src/main/res/menu/add_class.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.AddClassActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/admin.xml
Normal file
9
app/src/main/res/menu/admin.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.AdminActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/info.xml
Normal file
9
app/src/main/res/menu/info.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.InfoActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/main.xml
Normal file
9
app/src/main/res/menu/main.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".MainActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/remove_class.xml
Normal file
9
app/src/main/res/menu/remove_class.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.RemoveClassActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/scan.xml
Normal file
9
app/src/main/res/menu/scan.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.ScanActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
9
app/src/main/res/menu/show_class.xml
Normal file
9
app/src/main/res/menu/show_class.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.masa.massiveattendancescannerapplication.showClassActivity" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
||||
5
app/src/main/res/values/dimens.xml
Normal file
5
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
||||
37
app/src/main/res/values/strings.xml
Normal file
37
app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">Attendance Scanner Application</string>
|
||||
<string name="intro"><b> Universidad Central de Venezuela \n Facultad de Ciencias \n Escuela de Computación </b></string>
|
||||
<string name="button_scan">Escanear</string>
|
||||
<string name="button_show_classes">Listar Materias</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="title_activity_scan">Escaneando...</string>
|
||||
<string name="button_show_class">Mostrar Clases</string>
|
||||
<string name="button_add_class">Añadir Clases</string>
|
||||
<string name="button_rm_class">Eliminar Clases</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="title_activity_admin">Administración</string>
|
||||
<string name="title_activity_show_class">Clases</string>
|
||||
<string name="title_activity_add_class">Añadir Clase</string>
|
||||
<string name="title_activity_remove_class">Eliminar Clase</string>
|
||||
<string name="target_class">Nombre de la Clase a Eliminar</string>
|
||||
|
||||
<string name="classname">Nombre de la Clase a Añadir</string>
|
||||
<string name="startday">Dia Inicio de Clase</string>
|
||||
<string name="endday">Dia Fin de Clase</string>
|
||||
<string name="day">Dia de la Semana de Claser</string>
|
||||
<string name="starthour">Hora de Inicio de Clase</string>
|
||||
<string name="endhour">Hora de Fin de Clase</string>
|
||||
<string name="classcode">Codigo de Materia</string>
|
||||
|
||||
<string name="add_class">Añadir</string>
|
||||
<string name="remove_class">Eliminar</string>
|
||||
<string name="title_activity_info">Información</string>
|
||||
<string name="scanning">Escanear Dispositivos</string>
|
||||
|
||||
<string name="title_course_activity">Materias</string>
|
||||
<string name="title_section_activity">Secciones</string>
|
||||
<string name="title_student_activity">Estudiantes</string>
|
||||
|
||||
</resources>
|
||||
8
app/src/main/res/values/styles.xml
Normal file
8
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user