android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dip"
- android:layout_marginLeft="-8dip"
>
- <!-- negative left margin above accounts for Clockopia's
- generous glyph padding -->
<TextView android:id="@+id/timeDisplay"
android:layout_width="wrap_content"
android:shadowColor="#C0000000"
android:shadowDx="0"
android:shadowDy="0"
- android:shadowRadius="3.0"
+ android:shadowRadius="3.0"
/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
- android:textSize="18sp"
+ android:textSize="20sp"
android:textColor="#FFFFFFFF"
android:shadowColor="#C0000000"
android:shadowDx="0"
private final long SCREEN_SAVER_MOVE_DELAY = 60 * 1000; // 1 min
// Color to use for text & graphics in screen saver mode.
- private final int SCREEN_SAVER_COLOR = 0xFF008000;
- private final int SCREEN_SAVER_COLOR_DIM = 0xFF003000;
+ private final int SCREEN_SAVER_COLOR = 0xFF308030;
+ private final int SCREEN_SAVER_COLOR_DIM = 0xFF183018;
// Internal message IDs.
private final int FETCH_WEATHER_DATA_MSG = 0x1000;
final View time_date = findViewById(R.id.time_date);
- /*
- final TranslateAnimation anim = new TranslateAnimation(
- Animation.RELATIVE_TO_SELF, 0, // fromX
- Animation.RELATIVE_TO_PARENT, 0.5f, // toX
- Animation.RELATIVE_TO_SELF, 0, // fromY
- Animation.RELATIVE_TO_PARENT, 0.5f // toY
- );
- anim.setDuration(1000);
- anim.setInterpolator(new android.view.animation.AccelerateDecelerateInterpolator());
- anim.setFillEnabled(true);
- anim.setFillAfter(true);
- time_date.startAnimation(anim);
- */
-
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
if (mDimmed) {
winParams.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
- winParams.dimAmount = 0.5f; // pump up contrast in dim mode
+ winParams.dimAmount = 0.67f; // pump up contrast in dim mode
// show the window tint
tintView.startAnimation(AnimationUtils.loadAnimation(this,
: R.anim.dim_instant));
} else {
winParams.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
- winParams.dimAmount = 0.2f; // lower contrast in normal mode
+ winParams.dimAmount = 0.5f; // lower contrast in normal mode
// hide the window tint
tintView.startAnimation(AnimationUtils.loadAnimation(this,
AmPm(View parent, Typeface tf) {
mAmPm = (TextView) parent.findViewById(R.id.am_pm);
- mAmPm.setTypeface(tf);
+ if (tf != null) {
+ mAmPm.setTypeface(tf);
+ }
String[] ampm = new DateFormatSymbols().getAmPmStrings();
mAmString = ampm[0];
"fonts/Clockopia.ttf");
mTimeDisplay = (TextView) findViewById(R.id.timeDisplay);
mTimeDisplay.setTypeface(tf);
- mAmPm = new AmPm(this, tf);
+ mAmPm = new AmPm(this, null);
mCalendar = Calendar.getInstance();
setDateFormat();