Added initial design for group choice
This commit is contained in:
parent
10fc4bd0dc
commit
5da67a8ee3
26
SWADroid/res/layout/group_choice.xml
Normal file
26
SWADroid/res/layout/group_choice.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
<include layout="@layout/action_bar"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/listText"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="20dip"
|
||||
android:textColor="@color/foreground1"
|
||||
android:textSize="24sp"
|
||||
android:visibility="gone">
|
||||
</TextView>
|
||||
|
||||
<include android:id="@+id/courseNameLayout" layout="@layout/course_or_group_name"/>
|
||||
<ExpandableListView
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:cacheColorHint="@color/background" >
|
||||
</ExpandableListView>
|
||||
|
||||
</LinearLayout>
|
13
SWADroid/res/layout/group_list_item.xml
Normal file
13
SWADroid/res/layout/group_list_item.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<RadioButton android:id="@+id/radioButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Prueba"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -106,4 +106,7 @@
|
|||
<string name="shareBodyMsg">Estic usant #SWADroid en el meu Android per a accedir a la plataforma de teleformació SWAD.\nAconsegueix-ho gratis aquí:
|
||||
https://market.android.com/details?id=es.ugr.swad.swadroid</string>
|
||||
<string name="mailingListTitle">Llista de correu</string>
|
||||
<string name="vacants">Vacants</string>
|
||||
<!-- <string name="numStudent">Nombre d'estud.</string> -->
|
||||
<!-- <string name="maxStudent">Màxim d'estud.</string> -->
|
||||
</resources>
|
|
@ -130,4 +130,7 @@ Es muss mindestens ein Antworttyp ausgewählt werden</string>
|
|||
<string name="parent_icon">Zeigt oberen Ordner</string>
|
||||
<string name="refresh_icon">Updates</string>
|
||||
<string name="Group">Gruppe</string>
|
||||
<string name="vacants">Frei</string>
|
||||
<string name="numStudent">Anzahl der Stud.</string>
|
||||
<string name="maxStudent">Max. Stud</string>
|
||||
</resources>
|
|
@ -177,5 +177,8 @@
|
|||
<string name="openFile">Abrir</string>
|
||||
<string name="downloadFile">Volver a descargar</string>
|
||||
<string name="deleteFile">Borrar</string>
|
||||
<string name="vacants">Vacantes</string>
|
||||
<string name="numStudent">Nº de estud.</string>
|
||||
<string name="maxStudent">Máx.estud</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -182,4 +182,7 @@
|
|||
<string name="openFile">Open</string>
|
||||
<string name="downloadFile">Download again</string>
|
||||
<string name="deleteFile">Delete</string>
|
||||
<string name="vacants">Vacants</string>
|
||||
<string name="numStudent">No. of stud.</string>
|
||||
<string name="maxStudent">Max.stud.</string>
|
||||
</resources>
|
||||
|
|
|
@ -31,7 +31,7 @@ public class Global {
|
|||
/**
|
||||
* SWAD application key
|
||||
*/
|
||||
private static final String AppKey = "HTC-Desire";
|
||||
private static final String AppKey = "";
|
||||
/**
|
||||
* Server URL
|
||||
*/
|
||||
|
|
|
@ -181,13 +181,9 @@ public class DownloadsManager extends MenuActivity {
|
|||
break;
|
||||
case 2:
|
||||
File f = new File(directoryPath, fileName);
|
||||
if(f.exists()){
|
||||
if(f.exists())
|
||||
f.delete();
|
||||
Toast.makeText(getApplicationContext(),"File " + fileName +"has been deleted", Toast.LENGTH_SHORT).show();
|
||||
}else{
|
||||
Toast.makeText(getApplicationContext(),"File " + fileName +"has not been deleted because it does not exits", Toast.LENGTH_SHORT).show();
|
||||
|
||||
}
|
||||
//TODO change icon file to show the file is not downloaded
|
||||
break;
|
||||
|
||||
}
|
||||
|
@ -216,7 +212,6 @@ public class DownloadsManager extends MenuActivity {
|
|||
createNotification(directoryPath,navigator.getURLFile(chosenNodeName));
|
||||
else{
|
||||
fileOptions.show();
|
||||
//openFileDefaultApp(directoryPath+File.separator+fileName);
|
||||
|
||||
}
|
||||
//TODO activate request for notification download file when it is available
|
||||
|
|
Loading…
Reference in New Issue
Block a user