aboutsummaryrefslogtreecommitdiff
path: root/ui/views
diff options
context:
space:
mode:
authorTakeshi Hagikura <thagikura@google.com>2016-10-21 04:45:08 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-21 04:45:08 +0000
commit61cce27577cda11862255fda4fc53a16f2a0db48 (patch)
tree7547a9619fa7224626d097d0017c530a589fb2ac /ui/views
parenta4518bad8f528edfb9de4a79299a2248a3a3d499 (diff)
parentd65bd56c610e427f4ee9a72120139d68c1057fba (diff)
downloadandroid-61cce27577cda11862255fda4fc53a16f2a0db48.tar.gz
Fixes lint warnings. Lower the minSdk to the appropriate level. am: 60c87a2805 am: f9c4b552ba am: 979fc6f885 am: 7d14515086
am: d65bd56c61 Change-Id: I1accb2735caa888c5beadd9e2f720086a68f6cf1
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/SwipeRefreshMultipleViewsFragment.java11
-rw-r--r--ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/template-params.xml2
2 files changed, 4 insertions, 9 deletions
diff --git a/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/SwipeRefreshMultipleViewsFragment.java b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/SwipeRefreshMultipleViewsFragment.java
index e2b83d35..7bb29c84 100644
--- a/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/SwipeRefreshMultipleViewsFragment.java
+++ b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/SwipeRefreshMultipleViewsFragment.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 The Android Open Source Project
+ * Copyright 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -87,22 +87,17 @@ public class SwipeRefreshMultipleViewsFragment extends Fragment {
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_sample, container, false);
- // Retrieve the SwipeRefreshLayout and GridView instances
mSwipeRefreshLayout = (MultiSwipeRefreshLayout) view.findViewById(R.id.swiperefresh);
// BEGIN_INCLUDE (change_colors)
// Set the color scheme of the SwipeRefreshLayout by providing 4 color resource ids
- mSwipeRefreshLayout.setColorScheme(
+ mSwipeRefreshLayout.setColorSchemeResources(
R.color.swipe_color_1, R.color.swipe_color_2,
R.color.swipe_color_3, R.color.swipe_color_4);
// END_INCLUDE (change_colors)
- // Retrieve the GridView
mGridView = (GridView) view.findViewById(android.R.id.list);
-
- // Retrieve the empty view
mEmptyView = view.findViewById(android.R.id.empty);
-
return view;
}
// END_INCLUDE (inflate_view)
@@ -116,7 +111,7 @@ public class SwipeRefreshMultipleViewsFragment extends Fragment {
* Create an ArrayAdapter to contain the data for the GridView. Each item in the GridView
* uses the system-defined simple_list_item_1 layout that contains one TextView. Initially
*/
- mListAdapter = new ArrayAdapter<String>(
+ mListAdapter = new ArrayAdapter<>(
getActivity(),
android.R.layout.simple_list_item_1,
android.R.id.text1);
diff --git a/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/template-params.xml b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/template-params.xml
index ad1ad5e6..c4664035 100644
--- a/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/template-params.xml
+++ b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/template-params.xml
@@ -23,7 +23,7 @@
<package>com.example.android.swiperefreshmultipleviews</package>
<!-- change minSdk if needed-->
- <minSdk>14</minSdk>
+ <minSdk>9</minSdk>
<strings>
<intro>
<![CDATA[