Skip to content
This repository has been archived by the owner on Sep 12, 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 b01c775 commit 95df1a6
Show file tree
Hide file tree
Showing 32 changed files with 41 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ buildscript {
}
}

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


dependencies {

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

compile "com.android.support:support-v4:21.+"

}

Expand All @@ -28,9 +26,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 4
targetSdkVersion 21
}

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

}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!-- This sample is to demonstrate features released in API 19.
So while it would technically run on an earlier version of Android,
there wouldn't be much point) -->
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" />
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->
<!-- allowBackup declares if the app can be part of device-wide backups such as "adb backup" -->
<!-- theme is a way of applying UI decisions across your entire application. You can also
define it on a per-application basis. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
AdvancedImmersiveModeFragment fragment = new AdvancedImmersiveModeFragment();
transaction.replace(R.id.sample_content_fragment, fragment);
transaction.commit();
if (savedInstanceState == null) {
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
AdvancedImmersiveModeFragment fragment = new AdvancedImmersiveModeFragment();
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
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk
android:minSdkVersion="19"
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
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include 'AdvancedImmersiveModeSample'
include 'Application'

0 comments on commit 95df1a6

Please sign in to comment.