Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Commit

Permalink
Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
google-automerger committed Nov 19, 2014
1 parent e8bd4da commit e80c483
Show file tree
Hide file tree
Showing 38 changed files with 42 additions and 19 deletions.
Expand Up @@ -8,15 +8,14 @@ buildscript {
}
}

apply plugin: 'android'
apply plugin: 'com.android.application'


dependencies {

// Add the support lib that is appropriate for SDK 10
compile "com.android.support:support-v4:20.+"
compile "com.android.support:gridlayout-v7:20.+"

compile "com.android.support:support-v4:21.+"
compile "com.android.support:gridlayout-v7:21.+"
compile "com.android.support:cardview-v7:21.+"

}

Expand All @@ -29,9 +28,13 @@ List<String> dirs = [
'template'] // boilerplate code that is generated by the sample template process

android {
compileSdkVersion 19
compileSdkVersion 21
buildToolsVersion "21.0.0"

buildToolsVersion "20"
defaultConfig {
minSdkVersion 10
targetSdkVersion 21
}

sourceSets {
main {
Expand All @@ -44,6 +47,7 @@ android {
androidTest.java.srcDirs = ['tests/src']

}

}


Expand Down
Expand Up @@ -22,7 +22,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->

<application android:allowBackup="true"
android:label="@string/app_name"
Expand Down
Expand Up @@ -47,10 +47,12 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
SwipeRefreshListFragmentFragment fragment = new SwipeRefreshListFragmentFragment();
transaction.replace(R.id.sample_content_fragment, fragment);
transaction.commit();
if (savedInstanceState == null) {
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
SwipeRefreshListFragmentFragment fragment = new SwipeRefreshListFragmentFragment();
transaction.replace(R.id.sample_content_fragment, fragment);
transaction.commit();
}
}

@Override
Expand Down
22 changes: 22 additions & 0 deletions Application/src/main/res/values-v21/template-styles.xml
@@ -0,0 +1,22 @@
<!--
Copyright 2014 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.
-->

<resources>

<!-- Activity themes -->
<style name="Theme.Base" parent="android:Theme.Material.Light" />

</resources>
Expand Up @@ -39,9 +39,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk
android:minSdkVersion="18"
android:targetSdkVersion="19" />
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->

<!-- We add an application tag here just so that we can indicate that
this package needs to link against the android.test library,
Expand Down
5 changes: 1 addition & 4 deletions settings.gradle
@@ -1,4 +1 @@



include 'SwipeRefreshListFragmentSample'
include 'Application'

0 comments on commit e80c483

Please sign in to comment.