Commit d8445e15 authored by Elodie Gauthier's avatar Elodie Gauthier

little UI improvements

parent 1b81bed3
......@@ -50,7 +50,7 @@ public class CheckTranscription extends AikumaActivity {
private String date;
private SharedPreferences prefsUserSession;
private String externalStoragePath = Environment.getExternalStorageDirectory().getPath();
private String dataPath = externalStoragePath+"/Download/";
private String dataPath = externalStoragePath;
private InterleavedSeekBar progressBar;
private Boolean isNewSession = true;
......@@ -146,7 +146,7 @@ public class CheckTranscription extends AikumaActivity {
Log.i(TAG,"Scale: "+scale);
int padding_in_px = (int) (10 * scale + 0.5f);
Log.i(TAG,"Padding in px: "+padding_in_px);
int tsizepx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 25, getResources().getDisplayMetrics());
int tsizepx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 10, getResources().getDisplayMetrics());
Log.i(TAG,"Text size in px: "+tsizepx);
//transcription + checkbox
transcriptOK = new CheckBox(this);
......@@ -176,6 +176,7 @@ public class CheckTranscription extends AikumaActivity {
try {
player = new SimplePlayer(new File(dataPath+transcriptID.getText().toString()+".wav"),sampleRate, true);
fragment.setPlayer(player);
Log.d(TAG, "Get corresponding audio:" + dataPath+transcriptID.getText().toString()+".wav");
} catch (IOException e) {
// TODO Auto-generated catch block
Toast.makeText(this, "The corresponding audio file is unobtainable. Please proceed to the next transcript."+transcriptID.getText(), Toast.LENGTH_LONG).show();
......
......@@ -130,7 +130,7 @@ public class CheckWordVariant extends AikumaActivity {
checkboxCount=0;
final float scale = getResources().getDisplayMetrics().density;
int padding_in_px = (int) (10 * scale + 0.5f);
int tsizepx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 23, getResources().getDisplayMetrics());
int tsizepx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 10, getResources().getDisplayMetrics());
for (String element : variantlist){
//variant + checkbox
variant = new CheckBox(this);
......@@ -274,6 +274,7 @@ public class CheckWordVariant extends AikumaActivity {
outputFile.flush();
outputFile.close();
Toast.makeText(this, "File saved in "+variantchecked+".", Toast.LENGTH_LONG).show();
Log.d(TAG, "Output file path: "+ variantchecked);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
......
......@@ -188,7 +188,7 @@ public class ElicitationMode extends AikumaActivity{
File[] files = f.listFiles();
switch (selectedFileType) {
case ElicitationMode.IMAGE_MODE:
while( i < files.length && files[i].isFile() && (files[i].getAbsolutePath().contains(".jpg") || files[i].getAbsolutePath().contains(".jpeg"))) {
while( i < files.length && files[i].isFile() && (files[i].getAbsolutePath().contains(".jpg") || files[i].getAbsolutePath().contains(".jpeg") || files[i].getAbsolutePath().contains(".JPG"))) {
i++;
}
return files.length == i && i>0;
......
......@@ -486,7 +486,7 @@ public class RecordElicitation extends AikumaActivity {
*/
public void onNextClick(View _view) {
if (!saveRecording() && (entityId < numberOfEntities)) {
Log.d(TAG,"onNextClick => entityId was "+entityId+" next it will be"+(entityId+1));
Log.d(TAG,"onNextClick => entityId was "+entityId+" next it will be "+(entityId+1));
Toast.makeText(this, "Going next...", Toast.LENGTH_SHORT).show();
}
saveOneRecord();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment