Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
Research-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jayakody J.A.D.K.A - IT19114040
Research-Project
Commits
30d18236
Commit
30d18236
authored
Apr 06, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Focused Attention - Adding levels 1 & 2
parent
51b2ac8f
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
503 additions
and
24 deletions
+503
-24
app/src/main/java/com/anuththara18/attentionassessment/focused/AnimalChoosingActivity.java
...8/attentionassessment/focused/AnimalChoosingActivity.java
+1
-1
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame1.java
...18/attentionassessment/focused/FocusedAttentionGame1.java
+1
-1
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame2.java
...18/attentionassessment/focused/FocusedAttentionGame2.java
+487
-0
app/src/main/res/layout/activity_focused_attention_game2.xml
app/src/main/res/layout/activity_focused_attention_game2.xml
+12
-22
app/src/main/res/values-si/strings(si).xml
app/src/main/res/values-si/strings(si).xml
+1
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/anuththara18/attentionassessment/focused/AnimalChoosingActivity.java
View file @
30d18236
...
@@ -53,7 +53,7 @@ public class AnimalChoosingActivity extends AppCompatActivity {
...
@@ -53,7 +53,7 @@ public class AnimalChoosingActivity extends AppCompatActivity {
l5
=
findViewById
(
R
.
id
.
l5
);
l5
=
findViewById
(
R
.
id
.
l5
);
l6
=
findViewById
(
R
.
id
.
l6
);
l6
=
findViewById
(
R
.
id
.
l6
);
//
textView8.setText(LanguageSetter.getresources().getString(R.string.birdselect));
textView8
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
birdselect
));
bird1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
bird1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
...
...
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame1.java
View file @
30d18236
...
@@ -109,7 +109,7 @@ public class FocusedAttentionGame1 extends AppCompatActivity {
...
@@ -109,7 +109,7 @@ public class FocusedAttentionGame1 extends AppCompatActivity {
red_btn
=
(
ImageButton
)
findViewById
(
R
.
id
.
red_btn
);
red_btn
=
(
ImageButton
)
findViewById
(
R
.
id
.
red_btn
);
textView
=
(
TextView
)
findViewById
(
R
.
id
.
textView
);
textView
=
(
TextView
)
findViewById
(
R
.
id
.
textView
);
//
textView.setText(LanguageSetter.getresources().getString(R.string.focg1));
textView
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
focg1
));
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
.
start
();
mp
.
start
();
...
...
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame2.java
View file @
30d18236
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_focused_attention_game2.xml
View file @
30d18236
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:fontFamily=
"@font/poppins_bold"
android:fontFamily=
"@font/poppins_bold"
android:text=
"@string/
susg1
"
android:text=
"@string/
focg2
"
android:textAlignment=
"center"
android:textAlignment=
"center"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"22sp"
android:textSize=
"22sp"
...
@@ -102,19 +102,19 @@
...
@@ -102,19 +102,19 @@
<ImageButton
<ImageButton
android:id=
"@+id/bear1"
android:id=
"@+id/bear1"
android:layout_width=
"1
67
dp"
android:layout_width=
"1
42
dp"
android:layout_height=
"13
3
dp"
android:layout_height=
"13
8
dp"
android:layout_marginBottom=
"16dp"
android:layout_marginBottom=
"16dp"
android:background=
"@drawable/bear"
android:background=
"@drawable/bear"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0
28
"
app:layout_constraintHorizontal_bias=
"0.0
47
"
app:layout_constraintStart_toStartOf=
"parent"
/>
app:layout_constraintStart_toStartOf=
"parent"
/>
<ImageButton
<ImageButton
android:id=
"@+id/bear2"
android:id=
"@+id/bear2"
android:layout_width=
"1
39
dp"
android:layout_width=
"1
16
dp"
android:layout_height=
"1
12
dp"
android:layout_height=
"1
08
dp"
android:layout_marginBottom=
"16dp"
android:layout_marginBottom=
"16dp"
android:background=
"@drawable/bear"
android:background=
"@drawable/bear"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
<ImageButton
<ImageButton
android:id=
"@+id/bear3"
android:id=
"@+id/bear3"
android:layout_width=
"1
8
9dp"
android:layout_width=
"1
5
9dp"
android:layout_height=
"15
1
dp"
android:layout_height=
"15
3
dp"
android:layout_marginBottom=
"16dp"
android:layout_marginBottom=
"16dp"
android:background=
"@drawable/bear"
android:background=
"@drawable/bear"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
@@ -135,24 +135,14 @@
...
@@ -135,24 +135,14 @@
<ImageButton
<ImageButton
android:id=
"@+id/bear4"
android:id=
"@+id/bear4"
android:layout_width=
"1
32
dp"
android:layout_width=
"1
05
dp"
android:layout_height=
"10
4
dp"
android:layout_height=
"10
9
dp"
android:layout_marginBottom=
"
24
dp"
android:layout_marginBottom=
"
16
dp"
android:background=
"@drawable/bear"
android:background=
"@drawable/bear"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9
8
4"
app:layout_constraintHorizontal_bias=
"0.9
7
4"
app:layout_constraintStart_toStartOf=
"parent"
/>
app:layout_constraintStart_toStartOf=
"parent"
/>
<ImageButton
android:id=
"@+id/imageButton9"
android:layout_width=
"57dp"
android:layout_height=
"43dp"
android:layout_marginTop=
"16dp"
android:background=
"@drawable/bear"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.384"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values-si/strings(si).xml
View file @
30d18236
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<string
name=
"select"
>
තෝරන්න
</string>
<string
name=
"select"
>
තෝරන්න
</string>
<string
name=
"birdselect"
>
ඔබ වඩාත්ම කැමති චරිතය තෝරන්න
</string>
<string
name=
"birdselect"
>
ඔබ වඩාත්ම කැමති චරිතය තෝරන්න
</string>
<string
name=
"focg1"
>
තිරය මත දිස්වන සත්වයා ඔබන්න
</string>
<string
name=
"focg1"
>
තිරය මත දිස්වන සත්වයා ඔබන්න
</string>
<string
name=
"focg2"
>
ගුහාවෙන් එළියට එන වලස් පැටවා ඔබන්න
</string>
<string
name=
"divg1"
>
වර්ණ ගැලපෙන විට රතු බොත්තම ඔබන්න
</string>
<string
name=
"divg1"
>
වර්ණ ගැලපෙන විට රතු බොත්තම ඔබන්න
</string>
<string
name=
"divg2"
>
සතුන් දෙදෙනාම ගැලපෙන විට පහළ සත්වයා ඔබන්න
</string>
<string
name=
"divg2"
>
සතුන් දෙදෙනාම ගැලපෙන විට පහළ සත්වයා ඔබන්න
</string>
<string
name=
"susg1"
>
කුරුල්ලා අත්ත මත වාඩි වූ විට රතු බොත්තම ඔබන්න
</string>
<string
name=
"susg1"
>
කුරුල්ලා අත්ත මත වාඩි වූ විට රතු බොත්තම ඔබන්න
</string>
...
...
app/src/main/res/values/strings.xml
View file @
30d18236
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<string
name=
"select"
>
Select the
</string>
<string
name=
"select"
>
Select the
</string>
<string
name=
"birdselect"
>
Pick your favourite character
</string>
<string
name=
"birdselect"
>
Pick your favourite character
</string>
<string
name=
"focg1"
>
Press the animal appearing on the screen
</string>
<string
name=
"focg1"
>
Press the animal appearing on the screen
</string>
<string
name=
"focg2"
>
Press the bear coming out of the cave
</string>
<string
name=
"divg1"
>
Press the red button when the colours match
</string>
<string
name=
"divg1"
>
Press the red button when the colours match
</string>
<string
name=
"divg2"
>
Press the animal at the bottom when both animals match
</string>
<string
name=
"divg2"
>
Press the animal at the bottom when both animals match
</string>
<string
name=
"susg1"
>
Press the red button when the bird sits on the branch
</string>
<string
name=
"susg1"
>
Press the red button when the bird sits on the branch
</string>
...
...
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