From b6f9f4a64b3d61d7dfcdf827c899c18581ea867d Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 14 Nov 2014 14:19:33 -0800 Subject: Fix for empty list view text being obscured Add static padding to top of empty list view text instead of centering in layout. Bug: 18357286 Change-Id: I9b63eda0de0134e7e4b8dde3984ef4bdb239feec --- res/layout/empty_list_view.xml | 49 ++++++++++++++++++------------------------ res/values/dimens.xml | 1 + 2 files changed, 22 insertions(+), 28 deletions(-) diff --git a/res/layout/empty_list_view.xml b/res/layout/empty_list_view.xml index 0313b0073..7f961a350 100644 --- a/res/layout/empty_list_view.xml +++ b/res/layout/empty_list_view.xml @@ -13,37 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - + android:layout_width="match_parent" + android:gravity="center_horizontal" /> - + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 7096148a1..b8b93cb0a 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -138,6 +138,7 @@ 10dp + 20dp 16sp -- cgit v1.2.3