summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-16 19:20:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-16 19:20:37 +0000
commit4ca5eae80a3b15c3548faf71ace8ceebad019b7b (patch)
treea8a91ea3718f8a044753af1635e675c9f2a35707
parentfe1c8b36e303852d8039791d1027c1d200c5d662 (diff)
parent4aa980e5eabb25ce7b597f6dc2a544bbb5ce836a (diff)
am 4aa980e5: am 9bb7d400: am 79b1fe72: am b5113971: am 3cf92c74: Merge "Update Dialer permissions UI per mocks" into mnc-dev
* commit '4aa980e5eabb25ce7b597f6dc2a544bbb5ce836a': Update Dialer permissions UI per mocks
-rw-r--r--res/layout/all_contacts_fragment.xml (renamed from res/layout/show_all_contacts_fragment.xml)13
-rw-r--r--res/layout/call_log_fragment.xml3
-rw-r--r--res/layout/empty_content_view.xml9
-rw-r--r--res/layout/speed_dial_fragment.xml3
-rw-r--r--src/com/android/dialer/list/AllContactsFragment.java2
5 files changed, 19 insertions, 11 deletions
diff --git a/res/layout/show_all_contacts_fragment.xml b/res/layout/all_contacts_fragment.xml
index 3b501fb88..2ca013a19 100644
--- a/res/layout/show_all_contacts_fragment.xml
+++ b/res/layout/all_contacts_fragment.xml
@@ -42,12 +42,13 @@
android:fastScrollEnabled="true"
android:fadingEdge="none"
android:nestedScrollingEnabled="true" />
- </FrameLayout>
- <com.android.dialer.widget.EmptyContentView
- android:id="@+id/empty_list_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"/>
+ <com.android.dialer.widget.EmptyContentView
+ android:id="@+id/empty_list_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:visibility="gone"/>
+ </FrameLayout>
</LinearLayout>
diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml
index 3a7013d57..f69c5139f 100644
--- a/res/layout/call_log_fragment.xml
+++ b/res/layout/call_log_fragment.xml
@@ -30,7 +30,8 @@
<com.android.dialer.widget.EmptyContentView
android:id="@+id/empty_list_view"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
android:visibility="gone" />
</FrameLayout>
diff --git a/res/layout/empty_content_view.xml b/res/layout/empty_content_view.xml
index 18633d0f9..d8f27aad8 100644
--- a/res/layout/empty_content_view.xml
+++ b/res/layout/empty_content_view.xml
@@ -25,12 +25,13 @@
android:id="@+id/emptyListViewMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="84dp"
android:gravity="center_horizontal|top"
android:textSize="@dimen/empty_list_message_text_size"
android:textColor="@color/empty_list_text_color"
android:paddingRight="16dp"
- android:paddingLeft="16dp" />
+ android:paddingLeft="16dp"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp" />
<TextView
android:id="@+id/emptyListViewAction"
@@ -47,4 +48,8 @@
android:clickable="true"
style="@style/TextActionStyle" />
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="40dp" />
+
</merge>
diff --git a/res/layout/speed_dial_fragment.xml b/res/layout/speed_dial_fragment.xml
index 55dd158d2..5b6ce4fb8 100644
--- a/res/layout/speed_dial_fragment.xml
+++ b/res/layout/speed_dial_fragment.xml
@@ -44,7 +44,8 @@
<com.android.dialer.widget.EmptyContentView
android:id="@+id/empty_list_view"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
android:visibility="gone"/>
</FrameLayout>
diff --git a/src/com/android/dialer/list/AllContactsFragment.java b/src/com/android/dialer/list/AllContactsFragment.java
index 00b629c2b..19d8a438a 100644
--- a/src/com/android/dialer/list/AllContactsFragment.java
+++ b/src/com/android/dialer/list/AllContactsFragment.java
@@ -115,7 +115,7 @@ public class AllContactsFragment extends ContactEntryListFragment<ContactEntryLi
@Override
protected View inflateView(LayoutInflater inflater, ViewGroup container) {
- return inflater.inflate(R.layout.show_all_contacts_fragment, null);
+ return inflater.inflate(R.layout.all_contacts_fragment, null);
}
@Override