/[zanavi_public1]/navit/navit/android/src/com/zoffcc/applications/zanavi/ZANaviBusyText.java
ZANavi

Contents of /navit/navit/android/src/com/zoffcc/applications/zanavi/ZANaviBusyText.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations) (download)
Sun Jun 17 08:12:47 2012 UTC (11 years, 10 months ago) by zoff99
File size: 1474 byte(s)
lots of new stuff and fixes
1 /**
2 * ZANavi, Zoff Android Navigation system.
3 * Copyright (C) 2011-2012 Zoff <zoff@zoff.cc>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 package com.zoffcc.applications.zanavi;
21
22 import android.content.Context;
23 import android.graphics.Color;
24 import android.view.Gravity;
25 import android.widget.TextView;
26
27 public class ZANaviBusyText extends TextView
28 {
29 final int text_size = 18;
30
31 public ZANaviBusyText(Context context)
32 {
33 super(context);
34 this.setGravity(Gravity.CENTER);
35 this.setPadding(0, 0, 0, (ZANaviBusySpinner.spinner_size * 2) + (2 * text_size) + 5); // place text above spinner
36 this.setText("");
37 this.setTextColor(Color.parseColor("#FF0000CF"));
38 this.setTextSize(text_size);
39 }
40
41 public void onSizeChanged(int w, int h, int oldw, int oldh)
42 {
43 super.onSizeChanged(w, h, oldw, oldh);
44 }
45 }

   
Visit the ZANavi Wiki