Skip to content

Commit 017c861

Browse files
committed
Update stub app: ETV animated text, error fix
1 parent 6c4bfe1 commit 017c861

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

app/src/main/assets/app.bshA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ me.Import("libs/tintBar");
44
me.Import("libs/treeIcon");
55

66
me.setTheme(mTheme);
7-
me.getActionBar().setTitle(appname);
7+
me.getActionBar().setTitle(app_name);
88
//hide the action bar. comment out if you want
99
me.getActionBar().hide();
1010

app/src/main/assets/libs/doImports.bshL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import top.wefor.circularanim.CircularAnim;
1313
//widget
1414
import com.melnykov.fab.FloatingActionButton;
1515
import com.hanks.htextview.evaporate.EvaporateText;
16+
import com.hanks.htextview.evaporate.EvaporateTextView;
1617

1718
//utils
1819
import org.duangsuse.u;
@@ -28,4 +29,4 @@ import android.support.v7.widget.RecyclerView;
2829
FAB = FloatingActionButton;
2930
US = org.duangsuse.u;
3031
CA = CircularAnim;
31-
ET = EvaporateText;
32+
EvT = EvaporateTextView;

app/src/main/assets/main.bsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//03
1+
//04
22
import android.content.DialogInterface;
33
import android.os.Environment;
44
import android.app.AlertDialog;

app/src/main/assets/splash.bshA

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ if (tree_code == "")
5656
else
5757
me.ngin.eval(tree_code);
5858

59-
upper_tv = new TextView(me);
59+
upper_tv = new EvaporateTextView(me);
6060
upper_tv.setTextColor(splash_appname_color);
6161
upper_tv.setTextSize(splash_panel_title_size);
62-
upper_tv.setText(app_name);
62+
upper_tv.animateText(app_name);
6363

64-
bottom_tv = new TextView(me);
64+
bottom_tv = new EvaporateTextView(me);
6565
bottom_tv.setTextColor(splash_fortune_color);
6666
bottom_tv.setPadding(0, padding, 0, 0);
6767
bottom_tv.setTextSize(splash_panel_subtitle_size);
68-
bottom_tv.setText(fortune_loading);
68+
bottom_tv.animateText(fortune_loading);
6969

7070
drawen = false;
7171
written = false;
@@ -77,7 +77,7 @@ void try_draw() {
7777
v.setBackgroundDrawable(background);
7878
drawen = true;
7979
if (fortune != null&&!written)
80-
bottom_tv.setText(fortune);
80+
bottom_tv.animateText(fortune);
8181
written = true;
8282
}
8383
}

0 commit comments

Comments
 (0)