Added initial design for group choice

This commit is contained in:
Helena Rodriguez 2012-06-12 15:39:46 +02:00
parent 10fc4bd0dc
commit 5da67a8ee3
8 changed files with 54 additions and 8 deletions

View 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>

View 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>

View File

@ -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í: <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> https://market.android.com/details?id=es.ugr.swad.swadroid</string>
<string name="mailingListTitle">Llista de correu</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> </resources>

View File

@ -130,4 +130,7 @@ Es muss mindestens ein Antworttyp ausgewählt werden</string>
<string name="parent_icon">Zeigt oberen Ordner</string> <string name="parent_icon">Zeigt oberen Ordner</string>
<string name="refresh_icon">Updates</string> <string name="refresh_icon">Updates</string>
<string name="Group">Gruppe</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> </resources>

View File

@ -177,5 +177,8 @@
<string name="openFile">Abrir</string> <string name="openFile">Abrir</string>
<string name="downloadFile">Volver a descargar</string> <string name="downloadFile">Volver a descargar</string>
<string name="deleteFile">Borrar</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> </resources>

View File

@ -182,4 +182,7 @@
<string name="openFile">Open</string> <string name="openFile">Open</string>
<string name="downloadFile">Download again</string> <string name="downloadFile">Download again</string>
<string name="deleteFile">Delete</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> </resources>

View File

@ -31,7 +31,7 @@ public class Global {
/** /**
* SWAD application key * SWAD application key
*/ */
private static final String AppKey = "HTC-Desire"; private static final String AppKey = "";
/** /**
* Server URL * Server URL
*/ */

View File

@ -181,13 +181,9 @@ public class DownloadsManager extends MenuActivity {
break; break;
case 2: case 2:
File f = new File(directoryPath, fileName); File f = new File(directoryPath, fileName);
if(f.exists()){ if(f.exists())
f.delete(); f.delete();
Toast.makeText(getApplicationContext(),"File " + fileName +"has been deleted", Toast.LENGTH_SHORT).show(); //TODO change icon file to show the file is not downloaded
}else{
Toast.makeText(getApplicationContext(),"File " + fileName +"has not been deleted because it does not exits", Toast.LENGTH_SHORT).show();
}
break; break;
} }
@ -216,7 +212,6 @@ public class DownloadsManager extends MenuActivity {
createNotification(directoryPath,navigator.getURLFile(chosenNodeName)); createNotification(directoryPath,navigator.getURLFile(chosenNodeName));
else{ else{
fileOptions.show(); fileOptions.show();
//openFileDefaultApp(directoryPath+File.separator+fileName);
} }
//TODO activate request for notification download file when it is available //TODO activate request for notification download file when it is available