diff --git a/onebusaway-android/src/main/java/org/onebusaway/android/ui/ArrivalsListFragment.java b/onebusaway-android/src/main/java/org/onebusaway/android/ui/ArrivalsListFragment.java index caa2b3fa5..a3d363755 100644 --- a/onebusaway-android/src/main/java/org/onebusaway/android/ui/ArrivalsListFragment.java +++ b/onebusaway-android/src/main/java/org/onebusaway/android/ui/ArrivalsListFragment.java @@ -1136,7 +1136,7 @@ private void setListViewProperties(int arrivalInfoStyle) { listParam.leftMargin = UIUtils.dpToPixels(getActivity(), 5); listParam.rightMargin = UIUtils.dpToPixels(getActivity(), 5); // Set the listview background to give the cards more contrast - getListView().setBackgroundColor( + getListView().getRootView().setBackgroundColor( getResources().getColor(R.color.stop_info_arrival_list_background)); // Update the layout parameters getListView().setLayoutParams(listParam); diff --git a/onebusaway-android/src/main/res/layout/arrivals_list_empty_style.xml b/onebusaway-android/src/main/res/layout/arrivals_list_empty_style.xml index 8fd907719..bdedd1f47 100644 --- a/onebusaway-android/src/main/res/layout/arrivals_list_empty_style.xml +++ b/onebusaway-android/src/main/res/layout/arrivals_list_empty_style.xml @@ -13,33 +13,35 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + + android:layout_gravity="center" + card_view:cardCornerRadius="4dp" + card_view:cardUseCompatPadding="true"> - - - + android:paddingBottom="15sp" /> - + +