DroidFish: Lint warning fixes from Aaro Korhonen.

This commit is contained in:
Peter Osterlund 2011-12-13 21:26:33 +00:00
parent c5f3b7817c
commit 577dd388e8
11 changed files with 27 additions and 26 deletions

View File

@ -27,14 +27,14 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
android:text="Ok"
android:text="@string/ok"
android:id="@+id/eb_ok"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
</Button>
<Button
android:text="Cancel"
android:text="@string/cancel"
android:id="@+id/eb_cancel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</LinearLayout>

View File

@ -14,7 +14,7 @@
<EditText
android:id="@+id/create_pgn_filename"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:inputType="text">
</EditText>

View File

@ -15,7 +15,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingRight="10dp"
android:text="Before:">
android:text="@string/comment_before">
</TextView>
<EditText
android:id="@+id/ed_comments_pre"
@ -32,7 +32,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="Move:">
android:text="@string/comment_move">
</TextView>
<LinearLayout
android:orientation="horizontal"
@ -64,7 +64,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="After:">
android:text="@string/comment_after">
</TextView>
<EditText
android:id="@+id/ed_comments_post"

View File

@ -13,7 +13,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Event:">
android:text="@string/header_event">
</TextView>
<EditText
android:id="@+id/ed_header_event"
@ -27,7 +27,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Site:">
android:text="@string/header_site">
</TextView>
<EditText
android:id="@+id/ed_header_site"
@ -41,7 +41,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Date:">
android:text="@string/header_date">
</TextView>
<EditText
android:id="@+id/ed_header_date"
@ -55,7 +55,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Round:"
android:text="@string/header_round"
android:paddingRight="10dp">
</TextView>
<EditText
@ -70,7 +70,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="White:">
android:text="@string/header_white">
</TextView>
<EditText
android:id="@+id/ed_header_white"
@ -84,7 +84,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Black:">
android:text="@string/header_black">
</TextView>
<EditText
android:id="@+id/ed_header_black"

View File

@ -23,14 +23,14 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
android:text="Ok"
android:text="@string/ok"
android:id="@+id/eb_ok"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
</Button>
<Button
android:text="Cancel"
android:text="@string/cancel"
android:id="@+id/eb_cancel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

View File

@ -14,7 +14,7 @@
android:layout_height="wrap_content">
<TextView
android:id="@+id/status"
android:layout_width="fill_parent"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:includeFontPadding="true"

View File

@ -8,7 +8,7 @@
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Value (%):"
android:text="@string/value_percent"
android:paddingRight="10dp">
</TextView>
<EditText

View File

@ -7,7 +7,6 @@
<TextView
style="?android:attr/windowTitleStyle"
android:id="@+id/white_clock"
android:text="White: 0:00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true">
@ -23,7 +22,6 @@
<TextView
style="?android:attr/windowTitleStyle"
android:id="@+id/black_clock"
android:text="Black: 0:00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true">

View File

@ -294,7 +294,7 @@ you are not actively using the program.\
<string name="reading_pgn_file">Reading PGN file</string>
<string name="reading_scid_file">Reading Scid file</string>
<string name="new_file">&lt;New File&gt;</string>
<string name="please_wait">Please wait...</string>
<string name="please_wait">Please wait&#8230;</string>
<string name="no_pgn_files">No files found in directory DroidFish/pgn on the SD card</string>
<string name="no_scid_files">No files found in directory scid on the SD card</string>
<string name="select_color_theme">Select Color Theme</string>
@ -327,4 +327,14 @@ you are not actively using the program.\
<string name="halfmove">Halfmove clock:</string>
<string name="fullmove">Fullmove counter:</string>
<string name="filter_text">Filter text</string>
<string name="value_percent">Value (%):</string>
<string name="header_event">Event:</string>
<string name="header_site">Site:</string>
<string name="header_date">Date:</string>
<string name="header_round">Round:</string>
<string name="header_white">White:</string>
<string name="header_black">Black:</string>
<string name="comment_before">Before:</string>
<string name="comment_move">Move:</string>
<string name="comment_after">After:</string>
</resources>

View File

@ -31,7 +31,6 @@ public class CPUWarning extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.cpu_warning);
showDialog(CPU_WARNING_DIALOG);
}