forked from SMILEConsortium/smile_teacher_android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tag '0.9.9b1-jamsj': (95 commits) refs SMILEConsortium#106 Bump version string for testing. [#4] Adding comments and removing useless ids refs SMILEConsortium#105 Remove jamsj string refs SMILEConsortium#105 add icon for jamsj. refs SMILEConsortium#67 Add proper string and bump version for release. [#4] 'Preview iqsets' button is coming... yay! \o/ [#4] Date format modified in 'use prepared questions' screen [#4] Just adding a simple feature to see the number of preloaded questions per IQSet. [SMILEConsortium#101] Restart button will alert the teacher if server is down [SMILEConsortium#95] Cleaning, removing comments, merging duplicate constants in the same file: Constants.java refs SMILEConsortium#91,SMILEConsortium#95 Fix for deletion handling where we were not checking for any error conditions. This should be revisited in the future to beef up JSON handling (I don't parse the JSON from the message body). For now we just toast the thing if we succeed or fail. Let the model update things. refs SMILEConsortium#92,SMILEConsortium#93 Undo previous hack, instead, let's let the model update itself via the BoardManager, and fix the server where the problem really exists. The server only deleted the question from the model where the students receive their questions from, but not from the model where the teacher app gets its data. Confusing, yes, but we should have been able to debug this by just looking through the teacher and server. [SMILEConsortium#92] Fixing little bug when no question in session [SMILEConsortium#92] Fixing bug if restarting new session + cleaning + adding comments [SMILEConsortium#92] Questions can appear now, even if we crash the teacher app [SMILEConsortium#75] Return to teacher data when restart a session [#14] Removing 'Highest Rating' + Reparing '% correct' [SMILEConsortium#60] Deleting questions only during START_MAKE [SMILEConsortium#60] We can delete last question now [SMILEConsortium#60] We can 'delete' the questions from teacher app but crap solution... ...
- Loading branch information
Showing
99 changed files
with
4,797 additions
and
1,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src/test/java"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry exported="true" kind="lib" path="libs/activation-1.1.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="libs/javax.mail-1.5.0.jar"/> | ||
<classpathentry kind="src" path="src/test/java"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ | |
/smileplug-adm-test/target | ||
/gen | ||
/bin | ||
|
||
lint.xml | ||
smiledb-test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>smile_teacher_android</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>smile_teacher_android</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/btn_back_pressed" | ||
android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_back_normal" /> | ||
</selector> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/btn_trash_pressed" | ||
android:state_pressed="true" /> | ||
<item android:drawable="@drawable/btn_trash_normal" /> | ||
</selector> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<gradient android:startColor="#3333FF" android:endColor="#8080FF" | ||
android:angle="0"/> | ||
<corners android:radius="6dp" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<gradient android:startColor="#505050" android:endColor="#C0C0C0" | ||
android:angle="0"/> | ||
</shape> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:layout_gravity="center" | ||
android:background="@drawable/rounded_border" | ||
android:layout_margin="50dip"> | ||
|
||
<TextView | ||
android:id="@+id/tv_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="10dip" | ||
android:paddingBottom="35dp" | ||
android:text="@string/send_report" | ||
android:textColor="@color/black" | ||
android:textSize="12sp" /> | ||
|
||
<View | ||
android:id="@+id/view_separator" | ||
android:layout_width="fill_parent" | ||
android:layout_height="1dip" | ||
android:background="@color/white" | ||
android:layout_margin="5dip" | ||
android:layout_below="@id/tv_title"/> | ||
|
||
<EditText | ||
android:id="@+id/et_message" | ||
android:layout_width="450sp" | ||
android:layout_height="fill_parent" | ||
android:layout_below="@+id/tv_name_file" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="20dip" | ||
android:layout_marginBottom="100dip" | ||
android:height="150dp" | ||
android:inputType="text" | ||
android:maxLines="6" | ||
android:singleLine="true" | ||
android:textSize="12sp" | ||
android:gravity="top" /> | ||
|
||
<View | ||
android:id="@+id/view_separator2" | ||
android:layout_width="fill_parent" | ||
android:layout_height="1dip" | ||
android:background="@color/white" | ||
android:layout_marginLeft="5dip" | ||
android:layout_marginRight="5dip" | ||
android:layout_marginBottom="20dip" | ||
android:layout_alignParentBottom="true"/> | ||
|
||
<TextView | ||
android:id="@+id/tv_name_file" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/tv_title" | ||
android:layout_centerHorizontal="true" | ||
android:layout_margin="10dip" | ||
android:layout_marginTop="41dp" | ||
android:text="@string/send_report_body" | ||
android:textColor="@color/black" | ||
|
||
android:textSize="12sp" /> | ||
|
||
<ImageButton | ||
android:id="@+id/bt_close" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignTop="@+id/tv_title" | ||
android:layout_marginRight="35dp" | ||
android:background="@drawable/btn_close" | ||
android:contentDescription="@string/close_dialog" /> | ||
|
||
<Button | ||
android:id="@+id/bt_send_report" | ||
android:layout_width="100sp" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="26dp" | ||
android:enabled="false" | ||
android:text="@string/send_report_btn" | ||
android:textSize="12sp" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/container" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="@drawable/rounded_border" | ||
android:layout_gravity="center" | ||
android:layout_marginLeft="200dip" | ||
android:layout_marginRight="200dip" | ||
android:layout_marginTop="100dip" | ||
android:layout_marginBottom="100dip"> | ||
|
||
<ImageButton | ||
android:id="@+id/bt_close" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/btn_close" | ||
android:contentDescription="@string/close_dialog" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginRight="10dp" | ||
android:layout_marginTop="10dp" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/iqset_uppercase" | ||
android:textStyle="bold" | ||
android:textSize="16sp" | ||
android:textColor="@color/black" | ||
android:layout_marginTop="30dip" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<View | ||
android:id="@+id/view_separator" | ||
android:layout_width="fill_parent" | ||
android:layout_height="1dip" | ||
android:layout_marginLeft="5dip" | ||
android:layout_marginRight="5dip" | ||
android:background="@color/gray" | ||
android:layout_below="@+id/bt_close" | ||
android:layout_margin="5dip"/> | ||
|
||
<ListView | ||
android:id="@+id/lv_questions_preview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:layout_alignParentLeft="true" | ||
android:layout_below="@+id/view_separator" | ||
android:layout_marginBottom="20dip" | ||
android:layout_marginLeft="20dip" | ||
android:layout_marginRight="20dip" | ||
android:layout_marginTop="10dip" | ||
android:choiceMode="singleChoice" | ||
android:divider="@android:color/transparent" | ||
android:dividerHeight="10.0sp" /> | ||
|
||
|
||
</RelativeLayout> |
Oops, something went wrong.