Commit 30d18236 authored by Anuththara18's avatar Anuththara18

Focused Attention - Adding levels 1 & 2

parent 51b2ac8f
...@@ -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
......
...@@ -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();
......
...@@ -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="167dp" android:layout_width="142dp"
android:layout_height="133dp" android:layout_height="138dp"
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.028" app:layout_constraintHorizontal_bias="0.047"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
<ImageButton <ImageButton
android:id="@+id/bear2" android:id="@+id/bear2"
android:layout_width="139dp" android:layout_width="116dp"
android:layout_height="112dp" android:layout_height="108dp"
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="189dp" android:layout_width="159dp"
android:layout_height="151dp" android:layout_height="153dp"
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="132dp" android:layout_width="105dp"
android:layout_height="104dp" android:layout_height="109dp"
android:layout_marginBottom="24dp" 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.984" app:layout_constraintHorizontal_bias="0.974"
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
...@@ -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>
......
...@@ -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>
......
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