diff options
author | Trevor Johns <trevorjohns@google.com> | 2016-08-11 15:43:37 -0700 |
---|---|---|
committer | Trevor Johns <trevorjohns@google.com> | 2016-08-11 15:44:14 -0700 |
commit | fc1c2eac13aa87531f030f8c65d7e27c301135af (patch) | |
tree | 1180a1e5716f306d7b90eb86b94018f1abc379d6 /ui/views | |
parent | 9adc0ea35fa52303eadd5fdc342ee388cbebcd37 (diff) | |
download | android-fc1c2eac13aa87531f030f8c65d7e27c301135af.tar.gz |
Update samples to use API 24
Template output to update samples to use API 24 instead off
'N'. (Includes manual changes to MultiWindowPlayground.)
Also any supplamentary changes to templates that haven't been
checked in, since we don't usually check in template output.
Change-Id: Id16ec84fddcbf6b11218aaf22475413b156449bd
Diffstat (limited to 'ui/views')
12 files changed, 104 insertions, 30 deletions
diff --git a/ui/views/Elevation/ElevationBasic/Application/README-fragmentview.txt b/ui/views/Elevation/ElevationBasic/Application/README-fragmentview.txt new file mode 100644 index 00000000..38d903f0 --- /dev/null +++ b/ui/views/Elevation/ElevationBasic/Application/README-fragmentview.txt @@ -0,0 +1,37 @@ +<!-- + Copyright 2013 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. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +Steps to implement FragmentView template: +-in template-params.xml.ftl: + -add the following line to common imports + <common src="activities"/> + +-Add a Fragment to show behavior. In your MainActivity.java class, it will reference a Fragment + called (yourProjectName)Fragment.java. Create that file in your project, using the "main" source + folder instead of "common" or "templates". + For instance, if your package name is com.example.foo, create the file + src/main/java/com/example/foo/FooFragment.java + + +-Within this fragment, make sure that the onCreate method has the line + "setHasOptionsMenu(true);", to enable the fragment to handle menu events. + +-In order to override menu events, override onOptionsItemSelected. + +-refer to sampleSamples/fragmentViewSample for a reference implementation of a +project built on this template. + + diff --git a/ui/views/Elevation/ElevationBasic/README.md b/ui/views/Elevation/ElevationBasic/README.md index 22e4df62..b6981432 100644 --- a/ui/views/Elevation/ElevationBasic/README.md +++ b/ui/views/Elevation/ElevationBasic/README.md @@ -41,8 +41,8 @@ The elevation reverts back once the touch is removed. Pre-requisites -------------- -- Android SDK v21 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -71,7 +71,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/HorizontalPaging/README.md b/ui/views/HorizontalPaging/README.md index 66a746ea..c03ba9a9 100644 --- a/ui/views/HorizontalPaging/README.md +++ b/ui/views/HorizontalPaging/README.md @@ -30,8 +30,8 @@ know the selected tab, so you can update your ActionBar with `setSelectedNavigat Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -60,7 +60,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/NavigationDrawer/README.md b/ui/views/NavigationDrawer/README.md index ce9cfe2c..59bd29e7 100644 --- a/ui/views/NavigationDrawer/README.md +++ b/ui/views/NavigationDrawer/README.md @@ -8,8 +8,8 @@ support library. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.2 +- 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/RecyclerView/Application/README-fragmentview.txt b/ui/views/RecyclerView/Application/README-fragmentview.txt new file mode 100644 index 00000000..38d903f0 --- /dev/null +++ b/ui/views/RecyclerView/Application/README-fragmentview.txt @@ -0,0 +1,37 @@ +<!-- + Copyright 2013 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. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +Steps to implement FragmentView template: +-in template-params.xml.ftl: + -add the following line to common imports + <common src="activities"/> + +-Add a Fragment to show behavior. In your MainActivity.java class, it will reference a Fragment + called (yourProjectName)Fragment.java. Create that file in your project, using the "main" source + folder instead of "common" or "templates". + For instance, if your package name is com.example.foo, create the file + src/main/java/com/example/foo/FooFragment.java + + +-Within this fragment, make sure that the onCreate method has the line + "setHasOptionsMenu(true);", to enable the fragment to handle menu events. + +-In order to override menu events, override onOptionsItemSelected. + +-refer to sampleSamples/fragmentViewSample for a reference implementation of a +project built on this template. + + diff --git a/ui/views/RecyclerView/README.md b/ui/views/RecyclerView/README.md index 1230c313..0b8dd9da 100644 --- a/ui/views/RecyclerView/README.md +++ b/ui/views/RecyclerView/README.md @@ -29,8 +29,8 @@ tapped. Use radio buttons to toggle between [LinearLayoutManager][2] and Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -59,7 +59,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/SlidingTabs/SlidingTabsBasic/README.md b/ui/views/SlidingTabs/SlidingTabsBasic/README.md index 20831d18..644233fc 100644 --- a/ui/views/SlidingTabs/SlidingTabsBasic/README.md +++ b/ui/views/SlidingTabs/SlidingTabsBasic/README.md @@ -8,8 +8,8 @@ ViewPager title strip which gives continuous feedback to the user when scrolling Pre-requisites -------------- -- Android SDK v23 -- 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/SlidingTabs/SlidingTabsColors/README.md b/ui/views/SlidingTabs/SlidingTabsColors/README.md index 6d5f4452..b8059c84 100644 --- a/ui/views/SlidingTabs/SlidingTabsColors/README.md +++ b/ui/views/SlidingTabs/SlidingTabsColors/README.md @@ -25,8 +25,8 @@ layout ID of the custom layout. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -55,7 +55,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/SwipeRefreshLayout/SwipeRefreshLayoutBasic/README.md b/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/README.md index f38760c8..9dab7842 100644 --- a/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/README.md +++ b/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/README.md @@ -9,8 +9,8 @@ In this sample the View which can be refreshed is a ListView. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Getting Started @@ -34,7 +34,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/SwipeRefreshLayout/SwipeRefreshListFragment/README.md b/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/README.md index 4104a907..fadc7f5b 100644 --- a/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/README.md +++ b/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/README.md @@ -23,8 +23,8 @@ action from the action bar also refreshes the list. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -53,7 +53,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/SwipeRefreshLayout/SwipeRefreshMultipleViews/README.md b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/README.md index 6fe1f1b1..8630de3b 100644 --- a/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/README.md +++ b/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/README.md @@ -10,8 +10,8 @@ contains a scrollable GridView, along with a TextView empty view. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Getting Started @@ -35,7 +35,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/TextSwitcher/README.md b/ui/views/TextSwitcher/README.md index 4c4b8532..e2d239a4 100644 --- a/ui/views/TextSwitcher/README.md +++ b/ui/views/TextSwitcher/README.md @@ -22,8 +22,8 @@ in and out fade animations. Pre-requisites -------------- -- Android SDK v23 -- Android Build Tools v23.0.0 +- Android SDK 24 +- Android Build Tools v24.0.1 - Android Support Repository Screenshots @@ -52,7 +52,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 |