aboutsummaryrefslogtreecommitdiff
path: root/ui/views
diff options
context:
space:
mode:
authorTakeshi Hagikura <thagikura@google.com>2016-07-29 15:23:57 +0900
committerTakeshi Hagikura <thagikura@google.com>2016-07-29 15:27:11 +0900
commitba9b0da105721e3e6c60c7f718d862261fb13094 (patch)
tree45ce46e1a70b6f38492d5a18f5ff1eba4ed0f335 /ui/views
parent18bd61c871f14aff972039c0d9e1454816a39241 (diff)
downloadandroid-ba9b0da105721e3e6c60c7f718d862261fb13094.tar.gz
Fix lint errors for CardView.
Correct the minSdk Change-Id: Ic4d3658308e0a41ca1f2a17dc760bb0fbe77370c
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/CardView/Application/src/main/AndroidManifest.xml3
-rw-r--r--ui/views/CardView/Application/src/main/res/layout/fragment_card_view.xml2
-rw-r--r--ui/views/CardView/Application/src/main/res/values/strings.xml1
-rw-r--r--ui/views/CardView/README.md6
-rw-r--r--ui/views/CardView/template-params.xml2
5 files changed, 5 insertions, 9 deletions
diff --git a/ui/views/CardView/Application/src/main/AndroidManifest.xml b/ui/views/CardView/Application/src/main/AndroidManifest.xml
index 6c4a9d98..b90c56bc 100644
--- a/ui/views/CardView/Application/src/main/AndroidManifest.xml
+++ b/ui/views/CardView/Application/src/main/AndroidManifest.xml
@@ -19,9 +19,6 @@
android:versionCode="1"
android:versionName="1.0" >
- <uses-sdk android:minSdkVersion="7"
- android:targetSdkVersion="21" />
-
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
diff --git a/ui/views/CardView/Application/src/main/res/layout/fragment_card_view.xml b/ui/views/CardView/Application/src/main/res/layout/fragment_card_view.xml
index 432c5243..02eb4597 100644
--- a/ui/views/CardView/Application/src/main/res/layout/fragment_card_view.xml
+++ b/ui/views/CardView/Application/src/main/res/layout/fragment_card_view.xml
@@ -22,7 +22,7 @@
>
<LinearLayout android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingTop="@dimen/activity_vertical_margin"
diff --git a/ui/views/CardView/Application/src/main/res/values/strings.xml b/ui/views/CardView/Application/src/main/res/values/strings.xml
index c9955950..be5d9b07 100644
--- a/ui/views/CardView/Application/src/main/res/values/strings.xml
+++ b/ui/views/CardView/Application/src/main/res/values/strings.xml
@@ -15,7 +15,6 @@
limitations under the License.
-->
<resources>
- <string name="title_activity_card_view">CardViewActivity</string>
<string name="cardview_contents">This is a CardView widget. CardView widgets can have
shadows and rounded corners.
\n\nTo create a card with a shadow, use the <font fgcolor="#FFFFFFFF">android:elevation</font>
diff --git a/ui/views/CardView/README.md b/ui/views/CardView/README.md
index d5fa23be..b8efe9e9 100644
--- a/ui/views/CardView/README.md
+++ b/ui/views/CardView/README.md
@@ -8,8 +8,8 @@ Android L preview.
Pre-requisites
--------------
-- Android SDK v21
-- Android Build Tools v23.0.0
+- Android SDK 24
+- Android Build Tools v24.0.1
- Android Support Repository
Getting Started
@@ -33,7 +33,7 @@ submitting a pull request through GitHub. Please see CONTRIBUTING.md for more de
License
-------
-Copyright 2014 The Android Open Source Project, Inc.
+Copyright 2016 The Android Open Source Project, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
diff --git a/ui/views/CardView/template-params.xml b/ui/views/CardView/template-params.xml
index 3ce856f3..a029eadb 100644
--- a/ui/views/CardView/template-params.xml
+++ b/ui/views/CardView/template-params.xml
@@ -25,7 +25,7 @@
<auto_add_support_lib>false</auto_add_support_lib>
<!-- change minSdk if needed-->
- <minSdk>21</minSdk>
+ <minSdk>7</minSdk>
<dependency>com.android.support:cardview-v7:24.0.0</dependency>