Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lig-aikuma
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent Besacier
lig-aikuma
Commits
d8445e15
Commit
d8445e15
authored
Sep 02, 2016
by
Elodie Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little UI improvements
parent
1b81bed3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
Aikuma/src/org/lp20/aikuma/ui/CheckTranscription.java
Aikuma/src/org/lp20/aikuma/ui/CheckTranscription.java
+3
-2
Aikuma/src/org/lp20/aikuma/ui/CheckWordVariant.java
Aikuma/src/org/lp20/aikuma/ui/CheckWordVariant.java
+2
-1
Aikuma/src/org/lp20/aikuma/ui/ElicitationMode.java
Aikuma/src/org/lp20/aikuma/ui/ElicitationMode.java
+1
-1
Aikuma/src/org/lp20/aikuma/ui/RecordElicitation.java
Aikuma/src/org/lp20/aikuma/ui/RecordElicitation.java
+1
-1
No files found.
Aikuma/src/org/lp20/aikuma/ui/CheckTranscription.java
View file @
d8445e15
...
...
@@ -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
();
...
...
Aikuma/src/org/lp20/aikuma/ui/CheckWordVariant.java
View file @
d8445e15
...
...
@@ -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
();
...
...
Aikuma/src/org/lp20/aikuma/ui/ElicitationMode.java
View file @
d8445e15
...
...
@@ -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
;
...
...
Aikuma/src/org/lp20/aikuma/ui/RecordElicitation.java
View file @
d8445e15
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment