Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I4901d767f1b3d95750e47e910d3ae46a76a36ba1
- Loading branch information
Jeremy Walker
committed
Jul 28, 2019
1 parent
7e22052
commit 4d0d1a0
Showing
43 changed files
with
2,191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# GOOGLE SAMPLE PACKAGING DATA | ||
# | ||
# This file is used by Google as part of our samples packaging process. | ||
# End users may safely ignore this file. It has no relevance to other systems. | ||
--- | ||
status: PUBLISHED | ||
technologies: [Android] | ||
categories: [Window] | ||
languages: [Java] | ||
solutions: [Mobile] | ||
github: android/user-interface | ||
level: INTERMEDIATE | ||
icon: screenshots/icon-web.png | ||
apiRefs: | ||
- android:android.view.Window | ||
license: apache2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.4.2' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
|
||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
|
||
|
||
implementation "com.android.support:support-v4:28.0.0" | ||
implementation "com.android.support:support-v13:28.0.0" | ||
implementation "com.android.support:cardview-v7:28.0.0" | ||
implementation "com.android.support:appcompat-v7:28.0.0" | ||
|
||
|
||
|
||
|
||
|
||
|
||
} | ||
|
||
// The sample build uses multiple directories to | ||
// keep boilerplate and common code separate from | ||
// the main sample code. | ||
List<String> dirs = [ | ||
'main', // main sample code; look here for the interesting stuff. | ||
'common', // components that are reused by multiple samples | ||
'template'] // boilerplate code that is generated by the sample template process | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 28 | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
|
||
sourceSets { | ||
main { | ||
dirs.each { dir -> | ||
java.srcDirs "src/${dir}/java" | ||
res.srcDirs "src/${dir}/res" | ||
} | ||
} | ||
androidTest.setRoot('tests') | ||
androidTest.java.srcDirs = ['tests/src'] | ||
|
||
} | ||
|
||
} |
55 changes: 55 additions & 0 deletions
55
AdvancedImmersiveMode/Application/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
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. | ||
--> | ||
|
||
<!-- the versionCode is an integer representation of this version of your application. New | ||
versions get higher numbers, so the upgrade system can avoid dealing with the ambiguity | ||
of "1.9" vs "1.10". versionName, on the other hand, can be whatever you want, as the code | ||
that handles upgrading Android apps between versions on your device just ignores it.--> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.android.advancedimmersivemode" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
|
||
<!-- 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) --> | ||
<!-- 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. --> | ||
<application | ||
android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:icon="@drawable/ic_launcher"> | ||
|
||
<!-- Every activity needs its own Manifest element. The intent-filter contained in the | ||
element declares the intents that can be used to activate this Activity. For instance, | ||
the one below flags this Activity as a "main" entry point of this app, and suitable | ||
for creating a shortcut to in the Launcher. If you wanted your app to have 5 | ||
different Activities available in the launcher, you could just make 5 activities | ||
with that intent filter. Please don't do that. Just because it's a good example | ||
doesn't mean it's a good idea. --> | ||
<activity android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:uiOptions="splitActionBarWhenNarrow"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Oops, something went wrong.