Skip to content

Commit

Permalink
remove version string, use manifests instead
Browse files Browse the repository at this point in the history
add grade range icon
  • Loading branch information
forfolias committed Jan 21, 2012
1 parent 9613c5a commit f228fc1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Binary file added LeleDroid/res/drawable-hdpi/ic_menu_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion LeleDroid/res/layout/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<TextView android:text="@string/app_name" android:textSize="15sp"
android:layout_margin="5dip" android:textStyle="bold"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<TextView android:text="@string/version"
<TextView android:id="@+id/version"
android:layout_margin="5dip" android:textStyle="italic"
android:gravity="center" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
Expand Down
1 change: 0 additions & 1 deletion LeleDroid/res/values-en/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="version">1.5</string>
<string name="app_name">LeleDroid</string>
<string name="info">Information</string>
<string name="str">Soldier</string>
Expand Down
1 change: 0 additions & 1 deletion LeleDroid/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="version">1.5</string>
<string name="app_name">LeleDroid</string>
<string name="info">Πληροφορίες</string>
<string name="str">Στρατιώτης</string>
Expand Down
10 changes: 9 additions & 1 deletion LeleDroid/src/com/vasilakos/LeleDroid/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
Expand All @@ -28,6 +29,13 @@ public void onCreate(Bundle savedInstanceState) {

TextView link = (TextView) findViewById(R.id.site);
TextView cont = (TextView) findViewById(R.id.contact);
TextView ver = (TextView) findViewById(R.id.version);
try {
ver.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName);
} catch (NameNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

link.setText("<a href='" + link.getText() + "'>" + link.getText()
+ "</a>");
Expand Down Expand Up @@ -103,7 +111,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
R.drawable.ic_menu_info_details);
menu.add(0, 2, 0, R.string.donate).setIcon(R.drawable.ic_menu_star);
menu.add(0, 3, 0, R.string.vathmoiInfo).setIcon(
R.drawable.ic_menu_info_details);
R.drawable.ic_menu_view);
return true;
}

Expand Down

0 comments on commit f228fc1

Please sign in to comment.