aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSammysHP <sven@sammyshp.de>2012-01-04 11:04:42 +0100
committerSammysHP <sven@sammyshp.de>2012-01-04 11:04:42 +0100
commit5e584944755431d91ad460439042344b2ff4057a (patch)
tree317137c858c81dfd73e9fce9c5b4c78665cf140f /main
parenta2cfa56e42ddc88787eda109b222310bc18923b6 (diff)
downloadcgeo-5e584944755431d91ad460439042344b2ff4057a.zip
cgeo-5e584944755431d91ad460439042344b2ff4057a.tar.gz
cgeo-5e584944755431d91ad460439042344b2ff4057a.tar.bz2
Fix #923: Inventory page shows white-on-white for light skin
This is only a quick workaround (copied Android-resource into project and modified it) and should be removed in a later refactoring (#876).
Diffstat (limited to 'main')
-rw-r--r--main/res/layout/simple_list_item_1.xml26
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java3
2 files changed, 28 insertions, 1 deletions
diff --git a/main/res/layout/simple_list_item_1.xml b/main/res/layout/simple_list_item_1.xml
new file mode 100644
index 0000000..039b0c1
--- /dev/null
+++ b/main/res/layout/simple_list_item_1.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2006 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/text1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:gravity="center_vertical"
+ android:paddingLeft="6dip"
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:textColor="?text_color"
+/>
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java
index e90a7e6..df4c982 100644
--- a/main/src/cgeo/geocaching/CacheDetailActivity.java
+++ b/main/src/cgeo/geocaching/CacheDetailActivity.java
@@ -2481,7 +2481,8 @@ public class CacheDetailActivity extends AbstractActivity {
view = (ListView) getLayoutInflater().inflate(R.layout.cacheview_inventory, null);
- view.setAdapter(new ArrayAdapter<cgTrackable>(CacheDetailActivity.this, android.R.layout.simple_list_item_1, cache.getInventory()));
+ // TODO: Switch back to Android-resource and delete copied one
+ view.setAdapter(new ArrayAdapter<cgTrackable>(CacheDetailActivity.this, R.layout.simple_list_item_1, cache.getInventory()));
view.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {