Fix some issues
This commit is contained in:
parent
67774522aa
commit
cdbd2b4d65
8 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<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" />
|
android:drawable="@color/main_app_color" />
|
||||||
<item
|
<item
|
||||||
android:drawable="@color/transparent" />
|
android:drawable="@color/transparent" />
|
||||||
|
|
|
@ -45,7 +45,6 @@
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/chatList"
|
android:id="@+id/chatList"
|
||||||
android:listSelector="@drawable/list_selector"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:divider="@android:color/darker_gray"
|
android:divider="@android:color/darker_gray"
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
|
android:background="@drawable/list_selector"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
|
android:background="@drawable/list_selector"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/contactsList"
|
android:id="@+id/contactsList"
|
||||||
android:listSelector="@drawable/list_selector"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:divider="@android:color/darker_gray"
|
android:divider="@android:color/darker_gray"
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
|
|
||||||
<ExpandableListView
|
<ExpandableListView
|
||||||
android:id="@+id/historyList"
|
android:id="@+id/historyList"
|
||||||
android:listSelector="@drawable/list_selector"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:divider="@android:color/darker_gray"
|
android:divider="@android:color/darker_gray"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:background="@drawable/list_selector"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
|
@ -188,7 +188,7 @@ public class Compatibility {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setPreferenceChecked(Preference preference, boolean checked) {
|
public static void setPreferenceChecked(Preference preference, boolean checked) {
|
||||||
if (Version.sdkAboveOrEqual(8)) {
|
if (Version.sdkAboveOrEqual(14)) {
|
||||||
ApiFourteenPlus.setPreferenceChecked(preference, checked);
|
ApiFourteenPlus.setPreferenceChecked(preference, checked);
|
||||||
} else {
|
} else {
|
||||||
ApiFivePlus.setPreferenceChecked(preference, checked);
|
ApiFivePlus.setPreferenceChecked(preference, checked);
|
||||||
|
@ -196,7 +196,7 @@ public class Compatibility {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isPreferenceChecked(Preference preference) {
|
public static boolean isPreferenceChecked(Preference preference) {
|
||||||
if (Version.sdkAboveOrEqual(8)) {
|
if (Version.sdkAboveOrEqual(14)) {
|
||||||
return ApiFourteenPlus.isPreferenceChecked(preference);
|
return ApiFourteenPlus.isPreferenceChecked(preference);
|
||||||
} else {
|
} else {
|
||||||
return ApiFivePlus.isPreferenceChecked(preference);
|
return ApiFivePlus.isPreferenceChecked(preference);
|
||||||
|
|
Loading…
Reference in a new issue