ndt-dev - [ndt-dev] [ndt] r399 committed - Add font, logo to match HTML5.
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r399 committed - Add font, logo to match HTML5.
- Date: Fri, 17 Jun 2011 15:23:39 +0000
Revision: 399
Author:
Date: Fri Jun 17 08:22:59 2011
Log: Add font, logo to match HTML5.
http://code.google.com/p/ndt/source/detail?r=399
Added:
/branches/android/Android/assets
/branches/android/Android/assets/fonts
/branches/android/Android/assets/fonts/League_Gothic.otf
/branches/android/Android/res/drawable/mlab_logo.png
Modified:
/branches/android/Android/res/layout/start.xml
/branches/android/Android/res/values/styles.xml
/branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java
=======================================
--- /dev/null
+++ /branches/android/Android/assets/fonts/League_Gothic.otf Fri Jun 17 08:22:59 2011
Binary file, no diff available.
=======================================
--- /dev/null
+++ /branches/android/Android/res/drawable/mlab_logo.png Fri Jun 17 08:22:59 2011
Binary file, no diff available.
=======================================
--- /branches/android/Android/res/layout/start.xml Fri Jun 10 12:53:42
2011
+++ /branches/android/Android/res/layout/start.xml Fri Jun 17 08:22:59
2011
@@ -6,14 +6,14 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_above="@+id/LowerFrame"
android:layout_alignParentTop="true"
android:orientation="vertical">
- <TextView android:layout_width="fill_parent"
- android:layout_height="wrap_content"
android:id="@+id/MLab"
- android:text="@string/mlab" android:gravity="top"
- android:singleLine="true" />
+ <ImageView android:id="@+id/MLabLogo"
android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:src="@drawable/mlab_logo"
+ android:gravity="center" />
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/MLabDesc"
android:text="@string/mlabdesc"
android:gravity="bottom"
- android:scrollbars="vertical" />
+ android:scrollbars="vertical" android:padding="40sp"
+ android:textColor="#ffffff" android:textSize="18sp" />
</LinearLayout>
<LinearLayout android:id="@+id/LowerFrame"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
=======================================
--- /branches/android/Android/res/values/styles.xml Fri Jun 10 12:53:42
2011
+++ /branches/android/Android/res/values/styles.xml Fri Jun 17 08:22:59
2011
@@ -3,4 +3,7 @@
<style name="NdtTheme" parent="android:Theme">
<item name="android:background">#3cb878</item>
</style>
+ <style name="Desc" parent="@android:style/TextAppearance">
+ <item name="android:textColor">#00FF00</item>
+ </style>
</resources>
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java Fri Jun 10 12:53:42 2011
+++ /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java Fri Jun 17 08:22:59 2011
@@ -3,8 +3,10 @@
package net.measurementlab.ndt;
import android.app.Activity;
+import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
+import android.widget.TextView;
/**
* UI Thread and Entry Point of NDT mobile client.
@@ -19,5 +21,9 @@
super.onCreate(savedInstanceState);
setContentView(R.layout.start);
Log.i("ndt", "Loaded!");
+ Typeface typeFace = Typeface.createFromAsset(getAssets(),
+ "fonts/League_Gothic.otf");
+ TextView textView = (TextView) findViewById(R.id.MLabDesc);
+ textView.setTypeface(typeFace);
}
}
- [ndt-dev] [ndt] r399 committed - Add font, logo to match HTML5., ndt, 06/17/2011
Archive powered by MHonArc 2.6.16.