Fix some issues

This commit is contained in:
Sylvain Berfini 2012-08-10 16:03:21 +02:00
parent 67774522aa
commit cdbd2b4d65
8 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
<item
android:state_pressed="true"
android:drawable="@color/main_app_color" />
<item
android:drawable="@color/transparent" />

View file

@ -45,7 +45,6 @@
<ListView
android:id="@+id/chatList"
android:listSelector="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@android:color/darker_gray"

View file

@ -5,6 +5,7 @@
android:gravity="center_vertical"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="@drawable/list_selector"
android:orientation="horizontal" >
<TextView

View file

@ -5,6 +5,7 @@
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingBottom="10dp"
android:background="@drawable/list_selector"
android:orientation="vertical" >
<TextView

View file

@ -48,7 +48,6 @@
<ListView
android:id="@+id/contactsList"
android:listSelector="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@android:color/darker_gray"

View file

@ -55,7 +55,6 @@
<ExpandableListView
android:id="@+id/historyList"
android:listSelector="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@android:color/darker_gray"

View file

@ -3,6 +3,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/list_selector"
android:orientation="horizontal" >
<ImageView

View file

@ -188,7 +188,7 @@ public class Compatibility {
}
public static void setPreferenceChecked(Preference preference, boolean checked) {
if (Version.sdkAboveOrEqual(8)) {
if (Version.sdkAboveOrEqual(14)) {
ApiFourteenPlus.setPreferenceChecked(preference, checked);
} else {
ApiFivePlus.setPreferenceChecked(preference, checked);
@ -196,7 +196,7 @@ public class Compatibility {
}
public static boolean isPreferenceChecked(Preference preference) {
if (Version.sdkAboveOrEqual(8)) {
if (Version.sdkAboveOrEqual(14)) {
return ApiFourteenPlus.isPreferenceChecked(preference);
} else {
return ApiFivePlus.isPreferenceChecked(preference);