[
  {
    "path": ".gitignore",
    "content": "# IntelliJ IDEA\n.idea\n*.iml\n\n# Gradle\n.gradle\ngradlew.bat\nbuild\nlocal.properties\n\nlint-reports\n\n# Mac OS\n.DS_Store\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: android\n\njdk:\n- oraclejdk8\n\nbefore_install:\n# Install SDK license so Android Gradle plugin can install deps.\n- mkdir \"$ANDROID_HOME/licenses\" || true\n- echo \"24333f8a63b6825ea9c5514f83c2829b004d1fee\" > \"$ANDROID_HOME/licenses/android-sdk-license\"\n# Install the rest of tools (e.g., avdmanager).\n- sdkmanager tools\n# Install the system image.\n- sdkmanager \"system-images;android-19;default;armeabi-v7a\"\n# Create and start emulator for the script. Meant to race the install task.\n- echo no | avdmanager create avd --force -n test -k \"system-images;android-19;default;armeabi-v7a\"\n- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window &\n\ninstall: ./gradlew clean assemble --stacktrace\n\nbefore_script:\n- android-wait-for-emulator\n- adb shell settings put global window_animation_scale 0 &\n- adb shell settings put global transition_animation_scale 0 &\n- adb shell settings put global animator_duration_scale 0 &\n- adb shell input keyevent 82 &\n\nscript: ./gradlew check connectedCheck --stacktrace\n\nenv:\n  global:\n  - ADB_INSTALL_TIMEOUT=8\n\nnotifications:\n  email: false\n\nsudo: false\n\ncache:\n  directories:\n  - $HOME/.gradle\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "Change Log\n==========\n\nVersion 1.1.0 *(2019-03-02)*\n----------------------------\n\n * New: Update to androidx.\n\n\nVersion 1.0.4 *(2017-01-07)*\n----------------------------\n\n * New: Update to support v4 split to reduce method count.\n\n\nVersion 1.0.3 *(2016-08-04)*\n----------------------------\n\n * New: Expose the SavedState final type via `saveState()`.\n\n\nVersion 1.0.2 *(2016-06-11)*\n----------------------------\n\n * Fix: Revert last fix. The wrong Parcelable being restored is always a consumer error, as far as has been observed.\n\n\nVersion 1.0.1 *(2016-06-05)*\n----------------------------\n\n * Fix: Fail silently with wrong restored Parcelable.\n\n\nVersion 1.0.0 *(2016-06-04)*\n----------------------------\n\n * Initial version.\n"
  },
  {
    "path": "LICENSE.txt",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "ViewStatePagerAdapter\n=====================\n\nSaves and restores View states in ViewPagers.\n\n[`ViewStatePagerAdapter`](viewstatepageradapter/src/main/java/com/nightlynexus/viewstatepageradapter/ViewStatePagerAdapter.java) is simply an implementation of `androidx.viewpager.widget.PagerAdapter` and automatically saves and restores View states when returning to pages (previously removed Views in the ViewPager) and after ViewPager's state restoration.\n`ViewStatePagerAdapter` is similar to [`androidx.fragment.app.FragmentStatePagerAdapter`](https://developer.android.com/reference/androidx/fragment/app/FragmentStatePagerAdapter/) but for use with just Views, rather than Fragments.\n\n### Sample\n\nThe sample application shows the difference between the use of a `ViewStatePagerAdapter` and a `ViewPagerAdapter` (with no saving and restoring of View state).\n\n![](images/sample.gif)\n\nDownload\n--------\n\nGradle:\n\n```groovy\ncompile 'com.nightlynexus.viewstatepageradapter:viewstatepageradapter:1.1.0'\n```\n\nLicense\n--------\n\n    Copyright 2016 Eric Cochran\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n"
  },
  {
    "path": "RELEASING.md",
    "content": "Releasing\n========\n\n 1. Change the version in `gradle.properties` to a non-SNAPSHOT version.\n 2. Update the `CHANGELOG.md` for the impending release.\n 3. Update the `README.md` with the new version.\n 4. `git commit -am \"Prepare for release X.Y.Z.\"` (where X.Y.Z is the new version)\n 5. `./gradlew clean uploadArchives`.\n 6. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact.\n 7. `git tag -a X.Y.X -m \"Version X.Y.Z\"` (where X.Y.Z is the new version)\n 8. Update the `gradle.properties` to the next SNAPSHOT version.\n 9. `git commit -am \"Prepare next development version.\"`\n 10. `git push && git push --tags`\n\nIf step 5 or 6 fails, drop the Sonatype repo, fix the problem, commit, and start again at step 5.\n"
  },
  {
    "path": "build.gradle",
    "content": "buildscript {\n  dependencies {\n    classpath 'com.android.tools.build:gradle:3.3.1'\n    classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.16'\n  }\n\n  repositories {\n    google()\n    mavenCentral()\n    maven { url 'https://plugins.gradle.org/m2/' }\n  }\n}\n\nallprojects {\n  tasks.withType(JavaCompile) {\n    options.compilerArgs += ['-Xlint:all',\n                             '-Xlint:-deprecation',\n                             '-Werror']\n  }\n\n  apply plugin: 'net.ltgt.errorprone'\n  apply plugin: 'checkstyle'\n\n  repositories {\n    google()\n    jcenter() // Needed for Lint.\n  }\n\n  dependencies {\n    errorprone 'com.google.errorprone:error_prone_core:2.3.3'\n  }\n\n  task checkstyle(type: Checkstyle) {\n    configFile rootProject.file('checkstyle.xml')\n    source 'src'\n    include '**/*.java'\n    exclude '**/gen/**'\n\n    classpath = files()\n  }\n\n  checkstyle {\n    toolVersion = '7.7'\n  }\n}\n"
  },
  {
    "path": "checkstyle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE module PUBLIC\n    \"-//Puppy Crawl//DTD Check Configuration 1.3//EN\"\n    \"http://www.puppycrawl.com/dtds/configuration_1_3.dtd\">\n\n<module name=\"Checker\">\n  <property name=\"charset\" value=\"UTF-8\"/>\n  <module name=\"SuppressWarningsFilter\"/>\n  <module name=\"NewlineAtEndOfFile\"/>\n  <module name=\"FileLength\"/>\n  <module name=\"FileTabCharacter\"/>\n\n  <!-- Trailing spaces -->\n  <module name=\"RegexpSingleline\">\n    <property name=\"format\" value=\"\\s+$\"/>\n    <property name=\"message\" value=\"Line has trailing spaces.\"/>\n  </module>\n\n  <!-- Space after 'for' and 'if' -->\n  <module name=\"RegexpSingleline\">\n    <property name=\"format\" value=\"^\\s*(for|if)\\b[^ ]\"/>\n    <property name=\"message\" value=\"Space needed before opening parenthesis.\"/>\n  </module>\n\n  <!-- For each spacing -->\n  <module name=\"RegexpSingleline\">\n    <property name=\"format\" value=\"^\\s*for \\(.*?([^ ]:|:[^ ])\"/>\n    <property name=\"message\" value=\"Space needed around ':' character.\"/>\n  </module>\n\n  <module name=\"TreeWalker\">\n    <module name=\"Indentation\">\n      <property name=\"basicOffset\" value=\"2\"/>\n      <property name=\"braceAdjustment\" value=\"0\"/>\n      <property name=\"caseIndent\" value=\"2\"/>\n      <property name=\"throwsIndent\" value=\"4\"/>\n      <property name=\"lineWrappingIndentation\" value=\"4\"/>\n      <property name=\"arrayInitIndent\" value=\"2\"/>\n    </module>\n    <!-- Checks for Javadoc comments.                     -->\n    <!-- See http://checkstyle.sf.net/config_javadoc.html -->\n    <!--module name=\"JavadocMethod\"/-->\n    <!--module name=\"JavadocType\"/-->\n    <!--module name=\"JavadocVariable\"/-->\n    <module name=\"JavadocStyle\"/>\n\n\n    <!-- Checks for Naming Conventions.                  -->\n    <!-- See http://checkstyle.sf.net/config_naming.html -->\n    <!--<module name=\"ConstantName\"/>-->\n    <!--<module name=\"LocalFinalVariableName\"/>-->\n    <!--<module name=\"LocalVariableName\"/>-->\n    <!--<module name=\"MemberName\"/>-->\n    <module name=\"MethodName\"/>\n    <!--<module name=\"PackageName\"/>-->\n    <!--<module name=\"ParameterName\"/>-->\n    <!--<module name=\"StaticVariableName\"/>-->\n    <module name=\"TypeName\"/>\n\n\n    <!-- Checks for imports                              -->\n    <!-- See http://checkstyle.sf.net/config_import.html -->\n    <module name=\"AvoidStarImport\"/>\n    <module name=\"IllegalImport\"/>\n    <!-- defaults to sun.* packages -->\n    <module name=\"RedundantImport\"/>\n    <module name=\"UnusedImports\">\n      <property name=\"processJavadoc\" value=\"true\"/>\n    </module>\n\n\n    <!-- Checks for Size Violations.                    -->\n    <!-- See http://checkstyle.sf.net/config_sizes.html -->\n    <module name=\"LineLength\">\n      <property name=\"max\" value=\"100\"/>\n    </module>\n    <module name=\"MethodLength\">\n      <property name=\"max\" value=\"200\"/>\n    </module>\n\n\n    <!-- Checks for whitespace                               -->\n    <!-- See http://checkstyle.sf.net/config_whitespace.html -->\n    <module name=\"GenericWhitespace\"/>\n    <module name=\"EmptyForIteratorPad\"/>\n    <module name=\"MethodParamPad\"/>\n    <!--<module name=\"NoWhitespaceAfter\"/>-->\n    <!--<module name=\"NoWhitespaceBefore\"/>-->\n    <module name=\"OperatorWrap\"/>\n    <module name=\"ParenPad\"/>\n    <module name=\"TypecastParenPad\"/>\n    <module name=\"WhitespaceAfter\"/>\n    <module name=\"WhitespaceAround\">\n      <property name=\"tokens\"\n          value=\"ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN,\n          COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_CATCH,\n          LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,\n          LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS,\n          MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST,\n          SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND\"/>\n    </module>\n\n\n    <!-- Modifier Checks                                    -->\n    <!-- See http://checkstyle.sf.net/config_modifiers.html -->\n    <module name=\"ModifierOrder\"/>\n    <!-- Some View constructors are invoked with reflection. -->\n    <!--<module name=\"RedundantModifier\"/>-->\n\n\n    <!-- Checks for blocks. You know, those {}'s         -->\n    <!-- See http://checkstyle.sf.net/config_blocks.html -->\n    <module name=\"AvoidNestedBlocks\"/>\n    <!--<module name=\"EmptyBlock\"/>-->\n    <module name=\"LeftCurly\"/>\n    <!--<module name=\"NeedBraces\"/>-->\n    <module name=\"RightCurly\"/>\n\n\n    <!-- Checks for common coding problems               -->\n    <!-- See http://checkstyle.sf.net/config_coding.html -->\n    <module name=\"CovariantEquals\"/>\n    <module name=\"EmptyStatement\"/>\n    <module name=\"EqualsHashCode\"/>\n    <module name=\"IllegalInstantiation\"/>\n    <module name=\"InnerAssignment\"/>\n    <module name=\"MissingSwitchDefault\"/>\n    <module name=\"SimplifyBooleanExpression\"/>\n    <module name=\"SimplifyBooleanReturn\"/>\n\n    <!-- Checks for class design                         -->\n    <!-- See http://checkstyle.sf.net/config_design.html -->\n    <module name=\"DesignForExtension\"/>\n    <module name=\"FinalClass\"/>\n    <module name=\"HideUtilityClassConstructor\"/>\n    <module name=\"InterfaceIsType\"/>\n    <!--<module name=\"VisibilityModifier\"/>-->\n\n\n    <!-- Miscellaneous other checks.                   -->\n    <!-- See http://checkstyle.sf.net/config_misc.html -->\n    <module name=\"ArrayTypeStyle\"/>\n    <!--<module name=\"TodoComment\"/>-->\n    <module name=\"UpperEll\"/>\n\n    <!-- Make the @SuppressWarnings annotations available to Checkstyle -->\n    <module name=\"SuppressWarningsHolder\"/>\n  </module>\n</module>\n"
  },
  {
    "path": "gradle/gradle-mvn-push.gradle",
    "content": "/*\n * Copyright 2013 Chris Banes\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\napply plugin: 'maven'\napply plugin: 'signing'\n\ndef isReleaseBuild() {\n  return VERSION_NAME.contains(\"SNAPSHOT\") == false\n}\n\ndef getRepositoryUsername() {\n  return hasProperty('SONATYPE_NEXUS_USERNAME') ? SONATYPE_NEXUS_USERNAME : \"\"\n}\n\ndef getRepositoryPassword() {\n  return hasProperty('SONATYPE_NEXUS_PASSWORD') ? SONATYPE_NEXUS_PASSWORD : \"\"\n}\n\nafterEvaluate { project ->\n  uploadArchives {\n    repositories {\n      mavenDeployer {\n        beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }\n\n        pom.groupId = GROUP\n        pom.artifactId = POM_ARTIFACT_ID\n        pom.version = VERSION_NAME\n\n        repository(url: \"https://oss.sonatype.org/service/local/staging/deploy/maven2/\") {\n          authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())\n        }\n        snapshotRepository(url: \"https://oss.sonatype.org/content/repositories/snapshots/\") {\n          authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())\n        }\n\n        pom.project {\n          name POM_NAME\n          packaging POM_PACKAGING\n          description POM_DESCRIPTION\n          url POM_URL\n\n          scm {\n            url POM_SCM_URL\n            connection POM_SCM_CONNECTION\n            developerConnection POM_SCM_DEV_CONNECTION\n          }\n\n          licenses {\n            license {\n              name POM_LICENCE_NAME\n              url POM_LICENCE_URL\n              distribution POM_LICENCE_DIST\n            }\n          }\n\n          developers {\n            developer {\n              id POM_DEVELOPER_ID\n              name POM_DEVELOPER_NAME\n            }\n          }\n        }\n      }\n    }\n  }\n\n  signing {\n    required { isReleaseBuild() && gradle.taskGraph.hasTask(\"uploadArchives\") }\n    sign configurations.archives\n  }\n\n  task androidJavadocs(type: Javadoc) {\n    source = android.sourceSets.main.java.srcDirs\n    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))\n\n    if (JavaVersion.current().isJava8Compatible()) {\n      allprojects {\n        tasks.withType(Javadoc) {\n          options.addStringOption('Xdoclint:none', '-quiet')\n        }\n      }\n    }\n  }\n\n  task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {\n    classifier = 'javadoc'\n    from androidJavadocs.destinationDir\n  }\n\n  task androidSourcesJar(type: Jar) {\n    classifier = 'sources'\n    from android.sourceSets.main.java.sourceFiles\n  }\n\n  artifacts {\n    archives androidSourcesJar\n    archives androidJavadocsJar\n  }\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-5.2.1-all.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "VERSION_NAME=1.1.0\nGROUP=com.nightlynexus.viewstatepageradapter\n\nPOM_DESCRIPTION=Saves and restores View states in ViewPagers.\nPOM_URL=https://github.com/NightlyNexus/ViewStatePagerAdapter/\nPOM_SCM_URL=https://github.com/NightlyNexus/ViewStatePagerAdapter/\nPOM_SCM_CONNECTION=scm:git@github.com/NightlyNexus/ViewStatePagerAdapter.git\nPOM_SCM_DEV_CONNECTION=scm:git@github.com:NightlyNexus/ViewStatePagerAdapter.git\nPOM_LICENCE_NAME=The Apache Software License, Version 2.0\nPOM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt\nPOM_LICENCE_DIST=repo\nPOM_DEVELOPER_ID=NightlyNexus\nPOM_DEVELOPER_NAME=Eric Cochran\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':viewstatepageradapter', ':viewstatepageradapter-sample'\n"
  },
  {
    "path": "viewstatepageradapter/build.gradle",
    "content": "apply plugin: 'com.android.library'\napply from: rootProject.file('gradle/gradle-mvn-push.gradle')\n\nandroid {\n  compileSdkVersion 28\n\n  defaultConfig {\n    minSdkVersion 15\n  }\n\n  lintOptions {\n    abortOnError true\n    warningsAsErrors true\n    textReport true\n    textOutput 'stdout'\n    htmlReport true\n    htmlOutput rootProject.file(\"lint-reports/${name}.html\")\n  }\n\n  // TODO: Replace with https://issuetracker.google.com/issues/72050365 once released.\n  libraryVariants.all {\n    it.generateBuildConfig.enabled = false\n  }\n}\n\ndependencies {\n  api 'androidx.viewpager:viewpager:1.0.0'\n}\n"
  },
  {
    "path": "viewstatepageradapter/gradle.properties",
    "content": "POM_NAME=ViewStatePagerAdapter\nPOM_ARTIFACT_ID=viewstatepageradapter\nPOM_PACKAGING=aar\n"
  },
  {
    "path": "viewstatepageradapter/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest package=\"com.nightlynexus.viewstatepageradapter\"/>\n"
  },
  {
    "path": "viewstatepageradapter/src/main/java/com/nightlynexus/viewstatepageradapter/ViewStatePagerAdapter.java",
    "content": "/*\n * Copyright (C) 2016 Eric Cochran\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.nightlynexus.viewstatepageradapter;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\nimport android.util.SparseArray;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport androidx.viewpager.widget.PagerAdapter;\n\npublic abstract class ViewStatePagerAdapter extends PagerAdapter {\n  private final SparseArray<View> attached;\n  private SparseArray<SparseArray<Parcelable>> detached;\n\n  public ViewStatePagerAdapter() {\n    this(3);\n  }\n\n  /**\n   * @param capacity the initial capacity of the collection of attached Views.\n   */\n  public ViewStatePagerAdapter(int capacity) {\n    attached = new SparseArray<>(capacity);\n  }\n\n  protected abstract View createView(ViewGroup container, int position);\n\n  protected void destroyView(ViewGroup container, int position, View view) {\n  }\n\n  @Override public final SavedState saveState() {\n    for (int i = 0, size = attached.size(); i < size; i++) {\n      int position = attached.keyAt(i);\n      View view = attached.valueAt(i);\n      putInDetached(position, view);\n    }\n    return new SavedState(detached);\n  }\n\n  @Override public final void restoreState(Parcelable state, ClassLoader loader) {\n    SavedState savedState = (SavedState) state;\n    detached = savedState.detached;\n  }\n\n  @Override public final Object instantiateItem(ViewGroup container, int position) {\n    if (detached == null) {\n      detached = new SparseArray<>();\n    }\n    View view = createView(container, position);\n    if (view == null) {\n      throw new NullPointerException(\n          \"createView must not return null. (position: \" + position + \")\");\n    }\n    SparseArray<Parcelable> viewState = detached.get(position);\n    if (viewState != null) {\n      view.restoreHierarchyState(viewState);\n    }\n    container.addView(view);\n    attached.put(position, view);\n    return view;\n  }\n\n  @Override public final void destroyItem(ViewGroup container, int position, Object object) {\n    View view = (View) object;\n    destroyView(container, position, view);\n    putInDetached(position, view);\n    container.removeView(view);\n    attached.remove(position);\n  }\n\n  private void putInDetached(int position, View view) {\n    SparseArray<Parcelable> viewState = new SparseArray<>();\n    view.saveHierarchyState(viewState);\n    detached.put(position, viewState);\n  }\n\n  @Override public final Object instantiateItem(View container, int position) {\n    throw new UnsupportedOperationException();\n  }\n\n  @Override public final void destroyItem(View container, int position, Object object) {\n    throw new UnsupportedOperationException();\n  }\n\n  @Override public final boolean isViewFromObject(View view, Object object) {\n    return view == object;\n  }\n\n  public static final class SavedState implements Parcelable {\n    final SparseArray<SparseArray<Parcelable>> detached;\n\n    SavedState(SparseArray<SparseArray<Parcelable>> detached) {\n      this.detached = detached;\n    }\n\n    @Override public void writeToParcel(Parcel dest, int flags) {\n      writeNestedSparseArray(dest, detached, flags);\n    }\n\n    public static final Creator<SavedState> CREATOR = new Creator<SavedState>() {\n      @Override public SavedState createFromParcel(Parcel in) {\n        SparseArray<SparseArray<Parcelable>> detached =\n            readNestedSparseArray(in, SavedState.class.getClassLoader());\n        return new SavedState(detached);\n      }\n\n      @Override public SavedState[] newArray(int size) {\n        return new SavedState[size];\n      }\n    };\n\n    @Override public int describeContents() {\n      return 0;\n    }\n\n    static SparseArray<SparseArray<Parcelable>> readNestedSparseArray(Parcel in,\n        ClassLoader loader) {\n      int size = in.readInt();\n      if (size == -1) {\n        return null;\n      }\n      SparseArray<SparseArray<Parcelable>> map = new SparseArray<>(size);\n      while (size != 0) {\n        int key = in.readInt();\n        SparseArray<Parcelable> value = readSparseArray(in, loader);\n        map.append(key, value);\n        size--;\n      }\n      return map;\n    }\n\n    static SparseArray<Parcelable> readSparseArray(Parcel in, ClassLoader loader) {\n      int size = in.readInt();\n      if (size == -1) {\n        return null;\n      }\n      SparseArray<Parcelable> map = new SparseArray<>(size);\n      while (size != 0) {\n        int key = in.readInt();\n        Parcelable value = in.readParcelable(loader);\n        map.append(key, value);\n        size--;\n      }\n      return map;\n    }\n\n    static void writeNestedSparseArray(Parcel dest, SparseArray<SparseArray<Parcelable>> map,\n        int flags) {\n      if (map == null) {\n        dest.writeInt(-1);\n        return;\n      }\n      int size = map.size();\n      dest.writeInt(size);\n      int i = 0;\n      while (i != size) {\n        dest.writeInt(map.keyAt(i));\n        writeSparseArray(dest, map.valueAt(i), flags);\n        i++;\n      }\n    }\n\n    static void writeSparseArray(Parcel dest, SparseArray<Parcelable> map, int flags) {\n      if (map == null) {\n        dest.writeInt(-1);\n        return;\n      }\n      int size = map.size();\n      dest.writeInt(size);\n      int i = 0;\n      while (i != size) {\n        dest.writeInt(map.keyAt(i));\n        dest.writeParcelable(map.valueAt(i), flags);\n        i++;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "viewstatepageradapter-sample/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n  compileSdkVersion 28\n\n  defaultConfig {\n    applicationId \"com.nightlynexus.viewstatepageradaptersample\"\n    minSdkVersion 15\n    targetSdkVersion 28\n    versionCode 1\n    versionName \"1.0\"\n  }\n\n  lintOptions {\n    abortOnError true\n    // warningsAsErrors true\n    textReport true\n    textOutput 'stdout'\n    htmlReport true\n    htmlOutput rootProject.file(\"lint-reports/${name}.html\")\n  }\n}\n\ndependencies {\n  implementation project(':viewstatepageradapter')\n}\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    package=\"com.nightlynexus.viewstatepageradaptersample\">\n\n  <application\n      android:allowBackup=\"true\"\n      android:fullBackupContent=\"true\"\n      android:label=\"@string/label_application\"\n      android:supportsRtl=\"true\"\n      tools:ignore=\"GoogleAppIndexingWarning,MissingApplicationIcon\">\n\n    <activity android:name=\".ViewPagerActivity\">\n      <intent-filter>\n        <action android:name=\"android.intent.action.MAIN\"/>\n        <category android:name=\"android.intent.category.LAUNCHER\"/>\n      </intent-filter>\n    </activity>\n  </application>\n</manifest>\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/java/com/nightlynexus/viewstatepageradaptersample/ViewPagerActivity.java",
    "content": "package com.nightlynexus.viewstatepageradaptersample;\n\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport android.content.Context;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.TextView;\nimport androidx.viewpager.widget.ViewPager;\nimport com.nightlynexus.viewstatepageradapter.ViewStatePagerAdapter;\n\npublic final class ViewPagerActivity extends Activity {\n  @Override protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    setContentView(R.layout.pagers);\n    ViewPager withState = findViewById(R.id.with_state);\n    ViewPager withoutState = findViewById(R.id.without_state);\n    withState.setAdapter(new SampleEditTextViewStatePagerAdapter(withState.getContext()));\n    withoutState.setAdapter(new SampleEditTextViewPagerAdapter(withoutState.getContext()));\n  }\n\n  private static final class SampleEditTextViewStatePagerAdapter extends ViewStatePagerAdapter {\n    private final Context context;\n\n    SampleEditTextViewStatePagerAdapter(Context context) {\n      this.context = context;\n    }\n\n    @SuppressLint(\"SetTextI18n\") @Override\n    protected View createView(ViewGroup container, int position) {\n      View view = LayoutInflater.from(context).inflate(R.layout.page_top, container, false);\n      TextView pagerNumber = view.findViewById(R.id.page_number);\n      pagerNumber.setText(Integer.toString(position));\n      return view;\n    }\n\n    @Override public int getCount() {\n      return 10;\n    }\n  }\n\n  private static final class SampleEditTextViewPagerAdapter extends ViewPagerAdapter {\n    private final Context context;\n\n    SampleEditTextViewPagerAdapter(Context context) {\n      this.context = context;\n    }\n\n    @SuppressLint(\"SetTextI18n\") @Override\n    protected View createView(ViewGroup container, int position) {\n      View view = LayoutInflater.from(context).inflate(R.layout.page_bottom, container, false);\n      TextView pagerNumber = view.findViewById(R.id.page_number);\n      pagerNumber.setText(Integer.toString(position));\n      return view;\n    }\n\n    @Override public int getCount() {\n      return 10;\n    }\n  }\n}\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/java/com/nightlynexus/viewstatepageradaptersample/ViewPagerAdapter.java",
    "content": "package com.nightlynexus.viewstatepageradaptersample;\n\nimport android.view.View;\nimport android.view.ViewGroup;\nimport androidx.viewpager.widget.PagerAdapter;\n\nabstract class ViewPagerAdapter extends PagerAdapter {\n  protected abstract View createView(ViewGroup container, int position);\n\n  protected void destroyView(ViewGroup container, int position, View view) {\n  }\n\n  @Override public final Object instantiateItem(ViewGroup container, int position) {\n    View view = createView(container, position);\n    if (view == null) {\n      throw new NullPointerException(\n          \"createView must not return null. (position: \" + position + \")\");\n    }\n    container.addView(view);\n    return view;\n  }\n\n  @Override public final void destroyItem(ViewGroup container, int position, Object object) {\n    View view = (View) object;\n    destroyView(container, position, view);\n    container.removeView(view);\n  }\n\n  @Override public final Object instantiateItem(View container, int position) {\n    throw new UnsupportedOperationException();\n  }\n\n  @Override public final void destroyItem(View container, int position, Object object) {\n    throw new UnsupportedOperationException();\n  }\n\n  @Override public final boolean isViewFromObject(View view, Object object) {\n    return view == object;\n  }\n}\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/res/layout/page_bottom.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:padding=\"@dimen/page_padding\"\n    >\n\n  <EditText\n      android:id=\"@+id/text\"\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      android:layout_above=\"@+id/page_number\"\n      android:inputType=\"text\"\n      android:textSize=\"@dimen/page_text_text_size\"\n      />\n\n  <TextView\n      android:id=\"@id/page_number\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_alignParentBottom=\"true\"\n      android:layout_centerHorizontal=\"true\"\n      android:gravity=\"center_horizontal\"\n      android:textSize=\"@dimen/page_number_text_size\"\n      />\n</RelativeLayout>\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/res/layout/page_top.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    android:padding=\"@dimen/page_padding\"\n    >\n\n  <TextView\n      android:id=\"@+id/page_number\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_gravity=\"center_horizontal\"\n      android:gravity=\"center_horizontal\"\n      android:textSize=\"@dimen/page_number_text_size\"\n      />\n\n  <EditText\n      android:id=\"@+id/text\"\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      android:layout_gravity=\"center_vertical\"\n      android:inputType=\"text\"\n      android:textSize=\"@dimen/page_text_text_size\"\n      />\n</LinearLayout>\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/res/layout/pagers.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_marginTop=\"@dimen/pagers_margin_vertical\"\n    android:layout_marginBottom=\"@dimen/pagers_margin_vertical\"\n    android:orientation=\"vertical\"\n    >\n\n  <TextView\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      android:layout_gravity=\"center_horizontal\"\n      android:gravity=\"center_horizontal\"\n      android:text=\"@string/pager_with_state\"\n      android:textSize=\"@dimen/pager_title_text_size\"\n      />\n\n  <androidx.viewpager.widget.ViewPager\n      android:id=\"@+id/with_state\"\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"0dp\"\n      android:layout_weight=\"1\"\n      />\n\n  <androidx.viewpager.widget.ViewPager\n      android:id=\"@+id/without_state\"\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"0dp\"\n      android:layout_weight=\"1\"\n      />\n\n  <TextView\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      android:layout_gravity=\"center_horizontal\"\n      android:gravity=\"center_horizontal\"\n      android:text=\"@string/pager_without_state\"\n      android:textSize=\"@dimen/pager_title_text_size\"\n      />\n</LinearLayout>\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/res/values/dimens.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n  <dimen name=\"pagers_margin_vertical\">16dp</dimen>\n  <dimen name=\"pager_title_text_size\">16sp</dimen>\n  <dimen name=\"page_padding\">32dp</dimen>\n  <dimen name=\"page_number_text_size\">24sp</dimen>\n  <dimen name=\"page_text_text_size\">32sp</dimen>\n</resources>\n"
  },
  {
    "path": "viewstatepageradapter-sample/src/main/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n  <string name=\"label_application\">ViewStatePagerAdapter Sample</string>\n  <string name=\"pager_with_state\">With State</string>\n  <string name=\"pager_without_state\">With<i>out</i> State</string>\n</resources>\n"
  }
]