Skip to content

Commit

Permalink
Use custom LCD forn for countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kore committed Jul 7, 2012
1 parent d942520 commit c618ec8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file added assets/lcdmn.ttf
Binary file not shown.
7 changes: 6 additions & 1 deletion src/com/kore/instructor/Main.java
Expand Up @@ -4,6 +4,7 @@
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.speech.tts.TextToSpeech;
Expand All @@ -27,10 +28,14 @@ public void onCreate(Bundle savedInstanceState)

this.talker = new TextToSpeech(this, this);

TextView countdown = (TextView) findViewById(R.id.countdown);
Typeface font = Typeface.createFromAsset(getAssets(), "lcdmn.ttf");
countdown.setTypeface(font);

if (this.countdown != null)
{
this.countdown.setAll(
(TextView) findViewById(R.id.countdown),
countdown,
(TextView) findViewById(R.id.status),
this.talker
);
Expand Down

0 comments on commit c618ec8

Please sign in to comment.