├── .github └── workflows │ └── manual.yml ├── CODEOWNERS ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── begin ├── .gitignore ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── google │ │ │ └── samples │ │ │ └── propertyanimation │ │ │ └── MainActivity.kt │ │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── ic_launcher_background.xml │ │ └── ic_star.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle └── end ├── .gitignore ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── google │ │ └── samples │ │ └── propertyanimation │ │ └── MainActivity.kt │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ ├── ic_launcher_background.xml │ └── ic_star.xml │ ├── layout │ └── activity_main.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.github/workflows/manual.yml: -------------------------------------------------------------------------------- 1 | # Workflow to ensure whenever a Github PR is submitted, 2 | # a JIRA ticket gets created automatically. 3 | name: Manual Workflow 4 | 5 | # Controls when the action will run. 6 | on: 7 | # Triggers the workflow on pull request events but only for the master branch 8 | pull_request_target: 9 | types: [opened, reopened] 10 | 11 | # Allows you to run this workflow manually from the Actions tab 12 | workflow_dispatch: 13 | 14 | jobs: 15 | test-transition-issue: 16 | name: Convert Github Issue to Jira Issue 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Checkout 20 | uses: actions/checkout@master 21 | 22 | - name: Login 23 | uses: atlassian/gajira-login@master 24 | env: 25 | JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} 26 | JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} 27 | JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} 28 | 29 | - name: Create NEW JIRA ticket 30 | id: create 31 | uses: atlassian/gajira-create@master 32 | with: 33 | project: CONUPDATE 34 | issuetype: Task 35 | summary: | 36 | Github PR [Assign the ND component] | Repo: ${{ github.repository }} | PR# ${{github.event.number}} 37 | description: | 38 | Repo link: https://github.com/${{ github.repository }} 39 | PR no. ${{ github.event.pull_request.number }} 40 | PR title: ${{ github.event.pull_request.title }} 41 | PR description: ${{ github.event.pull_request.description }} 42 | In addition, please resolve other issues, if any. 43 | fields: '{"components": [{"name":"Github PR"}], "customfield_16449":"https://classroom.udacity.com/", "customfield_16450":"Resolve the PR", "labels": ["github"], "priority":{"id": "4"}}' 44 | 45 | - name: Log created issue 46 | run: echo "Issue ${{ steps.create.outputs.issue }} was created" 47 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @udacity/active-public-content -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to become a contributor and submit your own code 2 | 3 | ## Contributor License Agreements 4 | 5 | We'd love to accept your sample apps and patches! Before we can take them, we 6 | have to jump a couple of legal hurdles. 7 | 8 | Please fill out either the individual or corporate Contributor License Agreement 9 | (CLA). 10 | 11 | * If you are an individual writing original source code and you're sure you 12 | own the intellectual property, then you'll need to sign an [individual CLA] 13 | (https://developers.google.com/open-source/cla/individual). 14 | * If you work for a company that wants to allow you to contribute your work, 15 | then you'll need to sign a [corporate CLA] 16 | (https://developers.google.com/open-source/cla/corporate). 17 | 18 | Follow either of the two links above to access the appropriate CLA and 19 | instructions for how to sign and return it. Once we receive it, we'll be able to 20 | accept your pull requests. 21 | 22 | ## Contributing A Patch 23 | 24 | 1. Submit an issue describing your proposed change to the repo in question. 25 | 1. The repo owner will respond to your issue promptly. 26 | 1. If your proposed change is accepted, and you haven't already done so, sign a 27 | Contributor License Agreement (see details above). 28 | 1. Fork the desired repo, develop and test your code changes. 29 | 1. Ensure that your code adheres to the existing style in the sample to which 30 | you are contributing. Refer to the 31 | [Google Cloud Platform Samples Style Guide] 32 | (https://github.com/GoogleCloudPlatform/Template/wiki/style.html) for the 33 | recommended coding standards for this organization. 34 | 1. Ensure that your code has an appropriate set of unit tests which all pass. 35 | 1. Submit a pull request. 36 | 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav 2 | and *.ogg) are licensed under the CC-BY-NC license. All other files are 3 | licensed under the Apache 2 license. 4 | CC-BY-NC License 5 | ---------------- 6 | Attribution-NonCommercial-ShareAlike 4.0 International 7 | ======================================================================= 8 | Creative Commons Corporation ("Creative Commons") is not a law firm and 9 | does not provide legal services or legal advice. Distribution of 10 | Creative Commons public licenses does not create a lawyer-client or 11 | other relationship. Creative Commons makes its licenses and related 12 | information available on an "as-is" basis. Creative Commons gives no 13 | warranties regarding its licenses, any material licensed under their 14 | terms and conditions, or any related information. Creative Commons 15 | disclaims all liability for damages resulting from their use to the 16 | fullest extent possible. 17 | Using Creative Commons Public Licenses 18 | Creative Commons public licenses provide a standard set of terms and 19 | conditions that creators and other rights holders may use to share 20 | original works of authorship and other material subject to copyright 21 | and certain other rights specified in the public license below. The 22 | following considerations are for informational purposes only, are not 23 | exhaustive, and do not form part of our licenses. 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | Considerations for the public: By using one of our public 38 | licenses, a licensor grants the public permission to use the 39 | licensed material under specified terms and conditions. If 40 | the licensor's permission is not necessary for any reason--for 41 | example, because of any applicable exception or limitation to 42 | copyright--then that use is not regulated by the license. Our 43 | licenses grant only permissions under copyright and certain 44 | other rights that a licensor has authority to grant. Use of 45 | the licensed material may still be restricted for other 46 | reasons, including because others have copyright or other 47 | rights in the material. A licensor may make special requests, 48 | such as asking that all changes be marked or described. 49 | Although not required by our licenses, you are encouraged to 50 | respect those requests where reasonable. More_considerations 51 | for the public: 52 | wiki.creativecommons.org/Considerations_for_licensees 53 | ======================================================================= 54 | Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International 55 | Public License 56 | By exercising the Licensed Rights (defined below), You accept and agree 57 | to be bound by the terms and conditions of this Creative Commons 58 | Attribution-NonCommercial-ShareAlike 4.0 International Public License 59 | ("Public License"). To the extent this Public License may be 60 | interpreted as a contract, You are granted the Licensed Rights in 61 | consideration of Your acceptance of these terms and conditions, and the 62 | Licensor grants You such rights in consideration of benefits the 63 | Licensor receives from making the Licensed Material available under 64 | these terms and conditions. 65 | Section 1 -- Definitions. 66 | a. Adapted Material means material subject to Copyright and Similar 67 | Rights that is derived from or based upon the Licensed Material 68 | and in which the Licensed Material is translated, altered, 69 | arranged, transformed, or otherwise modified in a manner requiring 70 | permission under the Copyright and Similar Rights held by the 71 | Licensor. For purposes of this Public License, where the Licensed 72 | Material is a musical work, performance, or sound recording, 73 | Adapted Material is always produced where the Licensed Material is 74 | synched in timed relation with a moving image. 75 | b. Adapter's License means the license You apply to Your Copyright 76 | and Similar Rights in Your contributions to Adapted Material in 77 | accordance with the terms and conditions of this Public License. 78 | c. BY-NC-SA Compatible License means a license listed at 79 | creativecommons.org/compatiblelicenses, approved by Creative 80 | Commons as essentially the equivalent of this Public License. 81 | d. Copyright and Similar Rights means copyright and/or similar rights 82 | closely related to copyright including, without limitation, 83 | performance, broadcast, sound recording, and Sui Generis Database 84 | Rights, without regard to how the rights are labeled or 85 | categorized. For purposes of this Public License, the rights 86 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 87 | Rights. 88 | e. Effective Technological Measures means those measures that, in the 89 | absence of proper authority, may not be circumvented under laws 90 | fulfilling obligations under Article 11 of the WIPO Copyright 91 | Treaty adopted on December 20, 1996, and/or similar international 92 | agreements. 93 | f. Exceptions and Limitations means fair use, fair dealing, and/or 94 | any other exception or limitation to Copyright and Similar Rights 95 | that applies to Your use of the Licensed Material. 96 | g. License Elements means the license attributes listed in the name 97 | of a Creative Commons Public License. The License Elements of this 98 | Public License are Attribution, NonCommercial, and ShareAlike. 99 | h. Licensed Material means the artistic or literary work, database, 100 | or other material to which the Licensor applied this Public 101 | License. 102 | i. Licensed Rights means the rights granted to You subject to the 103 | terms and conditions of this Public License, which are limited to 104 | all Copyright and Similar Rights that apply to Your use of the 105 | Licensed Material and that the Licensor has authority to license. 106 | j. Licensor means the individual(s) or entity(ies) granting rights 107 | under this Public License. 108 | k. NonCommercial means not primarily intended for or directed towards 109 | commercial advantage or monetary compensation. For purposes of 110 | this Public License, the exchange of the Licensed Material for 111 | other material subject to Copyright and Similar Rights by digital 112 | file-sharing or similar means is NonCommercial provided there is 113 | no payment of monetary compensation in connection with the 114 | exchange. 115 | l. Share means to provide material to the public by any means or 116 | process that requires permission under the Licensed Rights, such 117 | as reproduction, public display, public performance, distribution, 118 | dissemination, communication, or importation, and to make material 119 | available to the public including in ways that members of the 120 | public may access the material from a place and at a time 121 | individually chosen by them. 122 | m. Sui Generis Database Rights means rights other than copyright 123 | resulting from Directive 96/9/EC of the European Parliament and of 124 | the Council of 11 March 1996 on the legal protection of databases, 125 | as amended and/or succeeded, as well as other essentially 126 | equivalent rights anywhere in the world. 127 | n. You means the individual or entity exercising the Licensed Rights 128 | under this Public License. Your has a corresponding meaning. 129 | Section 2 -- Scope. 130 | a. License grant. 131 | 1. Subject to the terms and conditions of this Public License, 132 | the Licensor hereby grants You a worldwide, royalty-free, 133 | non-sublicensable, non-exclusive, irrevocable license to 134 | exercise the Licensed Rights in the Licensed Material to: 135 | a. reproduce and Share the Licensed Material, in whole or 136 | in part, for NonCommercial purposes only; and 137 | b. produce, reproduce, and Share Adapted Material for 138 | NonCommercial purposes only. 139 | 2. Exceptions and Limitations. For the avoidance of doubt, where 140 | Exceptions and Limitations apply to Your use, this Public 141 | License does not apply, and You do not need to comply with 142 | its terms and conditions. 143 | 3. Term. The term of this Public License is specified in Section 144 | 6(a). 145 | 4. Media and formats; technical modifications allowed. The 146 | Licensor authorizes You to exercise the Licensed Rights in 147 | all media and formats whether now known or hereafter created, 148 | and to make technical modifications necessary to do so. The 149 | Licensor waives and/or agrees not to assert any right or 150 | authority to forbid You from making technical modifications 151 | necessary to exercise the Licensed Rights, including 152 | technical modifications necessary to circumvent Effective 153 | Technological Measures. For purposes of this Public License, 154 | simply making modifications authorized by this Section 2(a) 155 | (4) never produces Adapted Material. 156 | 5. Downstream recipients. 157 | a. Offer from the Licensor -- Licensed Material. Every 158 | recipient of the Licensed Material automatically 159 | receives an offer from the Licensor to exercise the 160 | Licensed Rights under the terms and conditions of this 161 | Public License. 162 | b. Additional offer from the Licensor -- Adapted Material. 163 | Every recipient of Adapted Material from You 164 | automatically receives an offer from the Licensor to 165 | exercise the Licensed Rights in the Adapted Material 166 | under the conditions of the Adapter's License You apply. 167 | c. No downstream restrictions. You may not offer or impose 168 | any additional or different terms or conditions on, or 169 | apply any Effective Technological Measures to, the 170 | Licensed Material if doing so restricts exercise of the 171 | Licensed Rights by any recipient of the Licensed 172 | Material. 173 | 6. No endorsement. Nothing in this Public License constitutes or 174 | may be construed as permission to assert or imply that You 175 | are, or that Your use of the Licensed Material is, connected 176 | with, or sponsored, endorsed, or granted official status by, 177 | the Licensor or others designated to receive attribution as 178 | provided in Section 3(a)(1)(A)(i). 179 | b. Other rights. 180 | 1. Moral rights, such as the right of integrity, are not 181 | licensed under this Public License, nor are publicity, 182 | privacy, and/or other similar personality rights; however, to 183 | the extent possible, the Licensor waives and/or agrees not to 184 | assert any such rights held by the Licensor to the limited 185 | extent necessary to allow You to exercise the Licensed 186 | Rights, but not otherwise. 187 | 2. Patent and trademark rights are not licensed under this 188 | Public License. 189 | 3. To the extent possible, the Licensor waives any right to 190 | collect royalties from You for the exercise of the Licensed 191 | Rights, whether directly or through a collecting society 192 | under any voluntary or waivable statutory or compulsory 193 | licensing scheme. In all other cases the Licensor expressly 194 | reserves any right to collect such royalties, including when 195 | the Licensed Material is used other than for NonCommercial 196 | purposes. 197 | Section 3 -- License Conditions. 198 | Your exercise of the Licensed Rights is expressly made subject to the 199 | following conditions. 200 | a. Attribution. 201 | 1. If You Share the Licensed Material (including in modified 202 | form), You must: 203 | a. retain the following if it is supplied by the Licensor 204 | with the Licensed Material: 205 | i. identification of the creator(s) of the Licensed 206 | Material and any others designated to receive 207 | attribution, in any reasonable manner requested by 208 | the Licensor (including by pseudonym if 209 | designated); 210 | ii. a copyright notice; 211 | iii. a notice that refers to this Public License; 212 | iv. a notice that refers to the disclaimer of 213 | warranties; 214 | v. a URI or hyperlink to the Licensed Material to the 215 | extent reasonably practicable; 216 | b. indicate if You modified the Licensed Material and 217 | retain an indication of any previous modifications; and 218 | c. indicate the Licensed Material is licensed under this 219 | Public License, and include the text of, or the URI or 220 | hyperlink to, this Public License. 221 | 2. You may satisfy the conditions in Section 3(a)(1) in any 222 | reasonable manner based on the medium, means, and context in 223 | which You Share the Licensed Material. For example, it may be 224 | reasonable to satisfy the conditions by providing a URI or 225 | hyperlink to a resource that includes the required 226 | information. 227 | 3. If requested by the Licensor, You must remove any of the 228 | information required by Section 3(a)(1)(A) to the extent 229 | reasonably practicable. 230 | b. ShareAlike. 231 | In addition to the conditions in Section 3(a), if You Share 232 | Adapted Material You produce, the following conditions also apply. 233 | 1. The Adapter's License You apply must be a Creative Commons 234 | license with the same License Elements, this version or 235 | later, or a BY-NC-SA Compatible License. 236 | 2. You must include the text of, or the URI or hyperlink to, the 237 | Adapter's License You apply. You may satisfy this condition 238 | in any reasonable manner based on the medium, means, and 239 | context in which You Share Adapted Material. 240 | 3. You may not offer or impose any additional or different terms 241 | or conditions on, or apply any Effective Technological 242 | Measures to, Adapted Material that restrict exercise of the 243 | rights granted under the Adapter's License You apply. 244 | Section 4 -- Sui Generis Database Rights. 245 | Where the Licensed Rights include Sui Generis Database Rights that 246 | apply to Your use of the Licensed Material: 247 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 248 | to extract, reuse, reproduce, and Share all or a substantial 249 | portion of the contents of the database for NonCommercial purposes 250 | only; 251 | b. if You include all or a substantial portion of the database 252 | contents in a database in which You have Sui Generis Database 253 | Rights, then the database in which You have Sui Generis Database 254 | Rights (but not its individual contents) is Adapted Material, 255 | including for purposes of Section 3(b); and 256 | c. You must comply with the conditions in Section 3(a) if You Share 257 | all or a substantial portion of the contents of the database. 258 | For the avoidance of doubt, this Section 4 supplements and does not 259 | replace Your obligations under this Public License where the Licensed 260 | Rights include other Copyright and Similar Rights. 261 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 262 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 263 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 264 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 265 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 266 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 267 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 268 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 269 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 270 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 271 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 272 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 273 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 274 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 275 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 276 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 277 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 278 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 279 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 280 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 281 | c. The disclaimer of warranties and limitation of liability provided 282 | above shall be interpreted in a manner that, to the extent 283 | possible, most closely approximates an absolute disclaimer and 284 | waiver of all liability. 285 | Section 6 -- Term and Termination. 286 | a. This Public License applies for the term of the Copyright and 287 | Similar Rights licensed here. However, if You fail to comply with 288 | this Public License, then Your rights under this Public License 289 | terminate automatically. 290 | b. Where Your right to use the Licensed Material has terminated under 291 | Section 6(a), it reinstates: 292 | 1. automatically as of the date the violation is cured, provided 293 | it is cured within 30 days of Your discovery of the 294 | violation; or 295 | 2. upon express reinstatement by the Licensor. 296 | For the avoidance of doubt, this Section 6(b) does not affect any 297 | right the Licensor may have to seek remedies for Your violations 298 | of this Public License. 299 | c. For the avoidance of doubt, the Licensor may also offer the 300 | Licensed Material under separate terms or conditions or stop 301 | distributing the Licensed Material at any time; however, doing so 302 | will not terminate this Public License. 303 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 304 | License. 305 | Section 7 -- Other Terms and Conditions. 306 | a. The Licensor shall not be bound by any additional or different 307 | terms or conditions communicated by You unless expressly agreed. 308 | b. Any arrangements, understandings, or agreements regarding the 309 | Licensed Material not stated herein are separate from and 310 | independent of the terms and conditions of this Public License. 311 | Section 8 -- Interpretation. 312 | a. For the avoidance of doubt, this Public License does not, and 313 | shall not be interpreted to, reduce, limit, restrict, or impose 314 | conditions on any use of the Licensed Material that could lawfully 315 | be made without permission under this Public License. 316 | b. To the extent possible, if any provision of this Public License is 317 | deemed unenforceable, it shall be automatically reformed to the 318 | minimum extent necessary to make it enforceable. If the provision 319 | cannot be reformed, it shall be severed from this Public License 320 | without affecting the enforceability of the remaining terms and 321 | conditions. 322 | c. No term or condition of this Public License will be waived and no 323 | failure to comply consented to unless expressly agreed to by the 324 | Licensor. 325 | d. Nothing in this Public License constitutes or may be interpreted 326 | as a limitation upon, or waiver of, any privileges and immunities 327 | that apply to the Licensor or You, including from the legal 328 | processes of any jurisdiction or authority. 329 | ======================================================================= 330 | Creative Commons is not a party to its public licenses. 331 | Notwithstanding, Creative Commons may elect to apply one of its public 332 | licenses to material it publishes and in those instances will be 333 | considered the "Licensor." Except for the limited purpose of indicating 334 | that material is shared under a Creative Commons public license or as 335 | otherwise permitted by the Creative Commons policies published at 336 | creativecommons.org/policies, Creative Commons does not authorize the 337 | use of the trademark "Creative Commons" or any other trademark or logo 338 | of Creative Commons without its prior written consent including, 339 | without limitation, in connection with any unauthorized modifications 340 | to any of its public licenses or any other arrangements, 341 | understandings, or agreements concerning use of licensed material. For 342 | the avoidance of doubt, this paragraph does not form part of the public 343 | licenses. 344 | Creative Commons may be contacted at creativecommons.org. 345 | Apache License 346 | -------------- 347 | Version 2.0, January 2004 348 | http://www.apache.org/licenses/ 349 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 350 | 1. Definitions. 351 | "License" shall mean the terms and conditions for use, reproduction, 352 | and distribution as defined by Sections 1 through 9 of this document. 353 | "Licensor" shall mean the copyright owner or entity authorized by 354 | the copyright owner that is granting the License. 355 | "Legal Entity" shall mean the union of the acting entity and all 356 | other entities that control, are controlled by, or are under common 357 | control with that entity. For the purposes of this definition, 358 | "control" means (i) the power, direct or indirect, to cause the 359 | direction or management of such entity, whether by contract or 360 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 361 | outstanding shares, or (iii) beneficial ownership of such entity. 362 | "You" (or "Your") shall mean an individual or Legal Entity 363 | exercising permissions granted by this License. 364 | "Source" form shall mean the preferred form for making modifications, 365 | including but not limited to software source code, documentation 366 | source, and configuration files. 367 | "Object" form shall mean any form resulting from mechanical 368 | transformation or translation of a Source form, including but 369 | not limited to compiled object code, generated documentation, 370 | and conversions to other media types. 371 | "Work" shall mean the work of authorship, whether in Source or 372 | Object form, made available under the License, as indicated by a 373 | copyright notice that is included in or attached to the work 374 | (an example is provided in the Appendix below). 375 | "Derivative Works" shall mean any work, whether in Source or Object 376 | form, that is based on (or derived from) the Work and for which the 377 | editorial revisions, annotations, elaborations, or other modifications 378 | represent, as a whole, an original work of authorship. For the purposes 379 | of this License, Derivative Works shall not include works that remain 380 | separable from, or merely link (or bind by name) to the interfaces of, 381 | the Work and Derivative Works thereof. 382 | "Contribution" shall mean any work of authorship, including 383 | the original version of the Work and any modifications or additions 384 | to that Work or Derivative Works thereof, that is intentionally 385 | submitted to Licensor for inclusion in the Work by the copyright owner 386 | or by an individual or Legal Entity authorized to submit on behalf of 387 | the copyright owner. For the purposes of this definition, "submitted" 388 | means any form of electronic, verbal, or written communication sent 389 | to the Licensor or its representatives, including but not limited to 390 | communication on electronic mailing lists, source code control systems, 391 | and issue tracking systems that are managed by, or on behalf of, the 392 | Licensor for the purpose of discussing and improving the Work, but 393 | excluding communication that is conspicuously marked or otherwise 394 | designated in writing by the copyright owner as "Not a Contribution." 395 | "Contributor" shall mean Licensor and any individual or Legal Entity 396 | on behalf of whom a Contribution has been received by Licensor and 397 | subsequently incorporated within the Work. 398 | 2. Grant of Copyright License. Subject to the terms and conditions of 399 | this License, each Contributor hereby grants to You a perpetual, 400 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 401 | copyright license to reproduce, prepare Derivative Works of, 402 | publicly display, publicly perform, sublicense, and distribute the 403 | Work and such Derivative Works in Source or Object form. 404 | 3. Grant of Patent License. Subject to the terms and conditions of 405 | this License, each Contributor hereby grants to You a perpetual, 406 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 407 | (except as stated in this section) patent license to make, have made, 408 | use, offer to sell, sell, import, and otherwise transfer the Work, 409 | where such license applies only to those patent claims licensable 410 | by such Contributor that are necessarily infringed by their 411 | Contribution(s) alone or by combination of their Contribution(s) 412 | with the Work to which such Contribution(s) was submitted. If You 413 | institute patent litigation against any entity (including a 414 | cross-claim or counterclaim in a lawsuit) alleging that the Work 415 | or a Contribution incorporated within the Work constitutes direct 416 | or contributory patent infringement, then any patent licenses 417 | granted to You under this License for that Work shall terminate 418 | as of the date such litigation is filed. 419 | 4. Redistribution. You may reproduce and distribute copies of the 420 | Work or Derivative Works thereof in any medium, with or without 421 | modifications, and in Source or Object form, provided that You 422 | meet the following conditions: 423 | (a) You must give any other recipients of the Work or 424 | Derivative Works a copy of this License; and 425 | (b) You must cause any modified files to carry prominent notices 426 | stating that You changed the files; and 427 | (c) You must retain, in the Source form of any Derivative Works 428 | that You distribute, all copyright, patent, trademark, and 429 | attribution notices from the Source form of the Work, 430 | excluding those notices that do not pertain to any part of 431 | the Derivative Works; and 432 | (d) If the Work includes a "NOTICE" text file as part of its 433 | distribution, then any Derivative Works that You distribute must 434 | include a readable copy of the attribution notices contained 435 | within such NOTICE file, excluding those notices that do not 436 | pertain to any part of the Derivative Works, in at least one 437 | of the following places: within a NOTICE text file distributed 438 | as part of the Derivative Works; within the Source form or 439 | documentation, if provided along with the Derivative Works; or, 440 | within a display generated by the Derivative Works, if and 441 | wherever such third-party notices normally appear. The contents 442 | of the NOTICE file are for informational purposes only and 443 | do not modify the License. You may add Your own attribution 444 | notices within Derivative Works that You distribute, alongside 445 | or as an addendum to the NOTICE text from the Work, provided 446 | that such additional attribution notices cannot be construed 447 | as modifying the License. 448 | You may add Your own copyright statement to Your modifications and 449 | may provide additional or different license terms and conditions 450 | for use, reproduction, or distribution of Your modifications, or 451 | for any such Derivative Works as a whole, provided Your use, 452 | reproduction, and distribution of the Work otherwise complies with 453 | the conditions stated in this License. 454 | 5. Submission of Contributions. Unless You explicitly state otherwise, 455 | any Contribution intentionally submitted for inclusion in the Work 456 | by You to the Licensor shall be under the terms and conditions of 457 | this License, without any additional terms or conditions. 458 | Notwithstanding the above, nothing herein shall supersede or modify 459 | the terms of any separate license agreement you may have executed 460 | with Licensor regarding such Contributions. 461 | 6. Trademarks. This License does not grant permission to use the trade 462 | names, trademarks, service marks, or product names of the Licensor, 463 | except as required for reasonable and customary use in describing the 464 | origin of the Work and reproducing the content of the NOTICE file. 465 | 7. Disclaimer of Warranty. Unless required by applicable law or 466 | agreed to in writing, Licensor provides the Work (and each 467 | Contributor provides its Contributions) on an "AS IS" BASIS, 468 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 469 | implied, including, without limitation, any warranties or conditions 470 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 471 | PARTICULAR PURPOSE. You are solely responsible for determining the 472 | appropriateness of using or redistributing the Work and assume any 473 | risks associated with Your exercise of permissions under this License. 474 | 8. Limitation of Liability. In no event and under no legal theory, 475 | whether in tort (including negligence), contract, or otherwise, 476 | unless required by applicable law (such as deliberate and grossly 477 | negligent acts) or agreed to in writing, shall any Contributor be 478 | liable to You for damages, including any direct, indirect, special, 479 | incidental, or consequential damages of any character arising as a 480 | result of this License or out of the use or inability to use the 481 | Work (including but not limited to damages for loss of goodwill, 482 | work stoppage, computer failure or malfunction, or any and all 483 | other commercial damages or losses), even if such Contributor 484 | has been advised of the possibility of such damages. 485 | 9. Accepting Warranty or Additional Liability. While redistributing 486 | the Work or Derivative Works thereof, You may choose to offer, 487 | and charge a fee for, acceptance of support, warranty, indemnity, 488 | or other liability obligations and/or rights consistent with this 489 | License. However, in accepting such obligations, You may act only 490 | on Your own behalf and on Your sole responsibility, not on behalf 491 | of any other Contributor, and only if You agree to indemnify, 492 | defend, and hold each Contributor harmless for any liability 493 | incurred by, or claims asserted against, such Contributor by reason 494 | of your accepting any such warranty or additional liability. 495 | END OF TERMS AND CONDITIONS 496 | APPENDIX: How to apply the Apache License to your work. 497 | To apply the Apache License to your work, attach the following 498 | boilerplate notice, with the fields enclosed by brackets "{}" 499 | replaced with your own identifying information. (Don't include 500 | the brackets!) The text should be enclosed in the appropriate 501 | comment syntax for the file format. We also recommend that a 502 | file or class name and description of purpose be included on the 503 | same "printed page" as the copyright notice for easier 504 | identification within third-party archives. 505 | Copyright {yyyy} {name of copyright owner} 506 | Licensed under the Apache License, Version 2.0 (the "License"); 507 | you may not use this file except in compliance with the License. 508 | You may obtain a copy of the License at 509 | http://www.apache.org/licenses/LICENSE-2.0 510 | Unless required by applicable law or agreed to in writing, software 511 | distributed under the License is distributed on an "AS IS" BASIS, 512 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 513 | See the License for the specific language governing permissions and 514 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Android Property Animation 2 | ================================ 3 | ## About 4 | This app is for the [Android Property Animation](Todo link) codelab. 5 | 6 | ## Requirements 7 | 8 | * Android Studio (Jellyfish or above) 9 | * JDK 21 with `JAVA_HOME` environment variable set 10 | 11 | If you don't have JDK 21 installed or `JAVA_HOME` is not set, consider using a tool like `sdkman` to simplify the process. Refer to the sdkman documentation for installation instructions: [sdkman installation](https://sdkman.io/install) 12 | 13 | ## begin 14 | The **begin** folder is the starting point of the codelab. 15 | It contains an Android Studio project for the skeleton of the app which 16 | you will fill in as you work through the steps of the code lab. 17 | 18 | ## end 19 | The **end** folder is the end point of the codelab. 20 | It contains an Android Studio project for the complete version of the application, 21 | which is what your code should look like when you complete all steps of the 22 | code lab. 23 | 24 | ## License 25 | All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav 26 | and *.ogg) are licensed under the CC-BY-NC license. All other files are 27 | licensed under the Apache 2 license. See the LICENSE file for details. 28 | Copyright 2019 Google Inc. All rights reserved. 29 | Licensed under the Apache License, Version 2.0 (the "License"); 30 | you may not use this file except in compliance with the License. 31 | You may obtain a copy of the License at 32 | http://www.apache.org/licenses/LICENSE-2.0 33 | Unless required by applicable law or agreed to in writing, software 34 | distributed under the License is distributed on an "AS IS" BASIS, 35 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 | See the License for the specific language governing permissions and 37 | limitations under the License. 38 | 39 | -------------------------------------------------------------------------------- /begin/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle/ 3 | local.properties 4 | .idea 5 | .DS_Store 6 | build/ 7 | captures/ 8 | -------------------------------------------------------------------------------- /begin/README.md: -------------------------------------------------------------------------------- 1 | PropertyAnimation - Final Code 2 | ============================================================================ 3 | 4 | Starter code for PropertyAnimation codelab 5 | 6 | Introduction 7 | ------------ 8 | 9 | PropertyAnimation is an app that shows various types of property animations using 10 | ObjectAnimator. 11 | 12 | This project is the start state of the codelab, before any tasks have been started. 13 | This is the right place to begin the codelab. 14 | The "end" project contains the final code once all tasks are complete. 15 | 16 | 17 | Getting Started 18 | --------------- 19 | 20 | 1. Download the project and follow the steps in the codelab. 21 | 2. Check your answers against the "end" project if necessary. 22 | 23 | License 24 | ------- 25 | 26 | Copyright 2019 Google, Inc. 27 | 28 | Licensed to the Apache Software Foundation (ASF) under one or more contributor 29 | license agreements. See the NOTICE file distributed with this work for 30 | additional information regarding copyright ownership. The ASF licenses this 31 | file to you under the Apache License, Version 2.0 (the "License"); you may not 32 | use this file except in compliance with the License. You may obtain a copy of 33 | the License at 34 | 35 | http://www.apache.org/licenses/LICENSE-2.0 36 | 37 | Unless required by applicable law or agreed to in writing, software 38 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 39 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 40 | License for the specific language governing permissions and limitations under 41 | the License. -------------------------------------------------------------------------------- /begin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /begin/app/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019, The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | apply plugin: 'com.android.application' 18 | 19 | apply plugin: 'kotlin-android' 20 | 21 | android { 22 | compileSdk 34 23 | defaultConfig { 24 | applicationId "com.google.samples.propertyanimation" 25 | multiDexEnabled true 26 | 27 | // API 21 required for usage of ObjectAnimator.ofArgb() 28 | minSdkVersion 21 29 | targetSdkVersion 34 30 | versionCode 1 31 | versionName "1.0" 32 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 33 | vectorDrawables.useSupportLibrary = true 34 | } 35 | buildTypes { 36 | release { 37 | minifyEnabled false 38 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 39 | } 40 | } 41 | 42 | namespace = "com.google.samples.propertyanimation" 43 | 44 | compileOptions { 45 | sourceCompatibility = JavaVersion.VERSION_21 46 | targetCompatibility = JavaVersion.VERSION_21 47 | } 48 | } 49 | 50 | dependencies { 51 | implementation fileTree(dir: 'libs', include: ['*.jar']) 52 | implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" 53 | implementation 'androidx.appcompat:appcompat:1.7.0' 54 | implementation 'androidx.core:core-ktx:1.13.1' 55 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 56 | testImplementation 'junit:junit:4.13.2' 57 | androidTestImplementation 'androidx.test.ext:junit:1.1.5' 58 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' 59 | implementation 'com.google.android.material:material:1.12.0' 60 | } 61 | -------------------------------------------------------------------------------- /begin/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /begin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /begin/app/src/main/java/com/google/samples/propertyanimation/MainActivity.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.samples.propertyanimation 18 | 19 | import androidx.appcompat.app.AppCompatActivity 20 | import android.os.Bundle 21 | import android.widget.Button 22 | import android.widget.ImageView 23 | 24 | 25 | class MainActivity : AppCompatActivity() { 26 | 27 | lateinit var star: ImageView 28 | lateinit var rotateButton: Button 29 | lateinit var translateButton: Button 30 | lateinit var scaleButton: Button 31 | lateinit var fadeButton: Button 32 | lateinit var colorizeButton: Button 33 | lateinit var showerButton: Button 34 | 35 | override fun onCreate(savedInstanceState: Bundle?) { 36 | super.onCreate(savedInstanceState) 37 | setContentView(R.layout.activity_main) 38 | 39 | star = findViewById(R.id.star) 40 | rotateButton = findViewById