-
-
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.
- Loading branch information
Jo Grimstad
committed
Jun 21, 2017
1 parent
cfd3834
commit 96632f1
Showing
4 changed files
with
80 additions
and
7 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
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
16 changes: 14 additions & 2 deletions
16
app/src/main/java/org/literacyapp/missing_number/TypeMissingNumberActivity.java
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,16 +1,28 @@ | ||
package org.literacyapp.missing_number; | ||
|
||
import android.media.MediaPlayer; | ||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.util.Log; | ||
|
||
public class MissingNumberActivity extends AppCompatActivity { | ||
import org.literacyapp.contentprovider.ContentProvider; | ||
import org.literacyapp.contentprovider.model.content.Number; | ||
|
||
import java.util.List; | ||
|
||
public class TypeMissingNumberActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
Log.i(getClass().getName(), "onCreate"); | ||
super.onCreate(savedInstanceState); | ||
|
||
setContentView(R.layout.activity_missing_number); | ||
setContentView(R.layout.activity_type_missing_number); | ||
|
||
List<Number> unlockedNumbers = ContentProvider.getUnlockedNumbers(); | ||
Log.i(getClass().getName(), "unlockedNumbers: " + unlockedNumbers); | ||
|
||
MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.activity_instruction_number_typing); | ||
mediaPlayer.start(); | ||
} | ||
} |
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,71 @@ | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin"> | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:gravity="center"> | ||
|
||
|
||
</FrameLayout> | ||
<android.support.v7.widget.CardView | ||
android:id="@+id/cardView1" | ||
android:layout_width="256dp" | ||
android:layout_height="wrap_content" | ||
app:contentPaddingTop="@dimen/activity_vertical_margin" | ||
app:contentPaddingRight="@dimen/activity_horizontal_margin" | ||
app:contentPaddingBottom="@dimen/activity_vertical_margin" | ||
app:contentPaddingLeft="@dimen/activity_horizontal_margin"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:text="1" | ||
android:textSize="72sp" /> | ||
</android.support.v7.widget.CardView> | ||
|
||
<android.support.v7.widget.CardView | ||
android:id="@+id/cardView2" | ||
android:layout_width="256dp" | ||
android:layout_height="wrap_content" | ||
app:contentPaddingTop="@dimen/activity_vertical_margin" | ||
app:contentPaddingRight="@dimen/activity_horizontal_margin" | ||
app:contentPaddingBottom="@dimen/activity_vertical_margin" | ||
app:contentPaddingLeft="@dimen/activity_horizontal_margin" | ||
android:layout_marginLeft="@dimen/activity_horizontal_margin"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:text="2" | ||
android:textSize="72sp" /> | ||
</android.support.v7.widget.CardView> | ||
|
||
<android.support.v7.widget.CardView | ||
android:id="@+id/cardView3" | ||
android:layout_width="256dp" | ||
android:layout_height="wrap_content" | ||
app:contentPaddingTop="@dimen/activity_vertical_margin" | ||
app:contentPaddingRight="@dimen/activity_horizontal_margin" | ||
app:contentPaddingBottom="@dimen/activity_vertical_margin" | ||
app:contentPaddingLeft="@dimen/activity_horizontal_margin" | ||
android:layout_marginLeft="@dimen/activity_horizontal_margin"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:text="3" | ||
android:textSize="72sp" | ||
android:visibility="invisible" /> | ||
<EditText android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:elegantTextHeight="true" | ||
android:textSize="72sp" /> | ||
</android.support.v7.widget.CardView> | ||
</LinearLayout> |