├── HidingToolbar
├── .idea
│ ├── .name
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── modules.xml
│ ├── misc.xml
│ ├── gradle.xml
│ └── compiler.xml
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ └── layout
│ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ └── list_item.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── foosample
│ │ │ │ └── bar
│ │ │ │ └── hidingtoolbar
│ │ │ │ ├── RecyclerItemViewHolder.java
│ │ │ │ ├── RecyclerAdapter.java
│ │ │ │ ├── MyScrollListener.java
│ │ │ │ └── MainActivity.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── foosample
│ │ │ └── bar
│ │ │ └── hidingtoolbar
│ │ │ └── ApplicationTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── ReadMe.md
├── build.gradle
├── HidingToolbar.iml
├── gradle.properties
├── LICENSE
├── gradlew.bat
└── gradlew
├── ConcurrentTasks
├── .idea
│ ├── .name
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── modules.xml
│ ├── misc.xml
│ ├── gradle.xml
│ └── compiler.xml
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values-v21
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values
│ │ │ │ │ ├── styles.xml
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ └── strings.xml
│ │ │ │ ├── values-sw600dp
│ │ │ │ │ └── dimens.xml
│ │ │ │ ├── values-w820dp
│ │ │ │ │ └── dimens.xml
│ │ │ │ └── layout
│ │ │ │ │ ├── activity_b.xml
│ │ │ │ │ └── activity_a.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── foosample
│ │ │ │ └── bar
│ │ │ │ └── concurrenttasks
│ │ │ │ ├── ActivityB.java
│ │ │ │ └── ActivityA.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── foosample
│ │ │ └── bar
│ │ │ └── concurrenttasks
│ │ │ └── ApplicationTest.java
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── app.iml
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── build.gradle
├── ReadMe.md
├── ConcurrentTasks.iml
├── gradle.properties
├── LICENSE
├── gradlew.bat
└── gradlew
├── RecyclerViewCardView
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── styles.xml
│ │ │ │ └── dimens.xml
│ │ │ ├── menu
│ │ │ │ └── menu_main.xml
│ │ │ ├── values-w820dp
│ │ │ │ └── dimens.xml
│ │ │ └── layout
│ │ │ │ ├── activity_main.xml
│ │ │ │ └── card_view.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── foosample
│ │ │ │ └── bar
│ │ │ │ └── myapplication
│ │ │ │ ├── Palette.java
│ │ │ │ ├── PaletteViewHolder.java
│ │ │ │ ├── MyRecyclerAdapter.java
│ │ │ │ └── MainActivity.java
│ │ └── AndroidManifest.xml
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── foosample
│ │ └── bar
│ │ └── myapplication
│ │ └── ApplicationTest.java
├── ReadMe.md
├── proguard-rules.pro
├── build.gradle
└── LICENSE
├── FloatingActionButton
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── styles.xml
│ │ │ │ │ └── dimens.xml
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ ├── fab_ic_add.png
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ │ ├── fab_ic_add.png
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ ├── fab_ic_add.png
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ ├── fab_ic_add.png
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ │ └── fab_ic_add.png
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── fab_ripple.xml
│ │ │ │ ├── values-v21
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── layout
│ │ │ │ │ ├── list_item.xml
│ │ │ │ │ └── activity_main.xml
│ │ │ │ ├── anim-v21
│ │ │ │ │ └── fab_elevation.xml
│ │ │ │ ├── layout-v21
│ │ │ │ │ └── activity_main.xml
│ │ │ │ └── drawable
│ │ │ │ │ └── fab_shape.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── foosample
│ │ │ │ └── bar
│ │ │ │ └── floatingactionbutton
│ │ │ │ ├── RecyclerItemViewHolder.java
│ │ │ │ ├── RecyclerAdapter.java
│ │ │ │ └── MainActivity.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── foosample
│ │ │ └── bar
│ │ │ └── floatingactionbutton
│ │ │ └── ApplicationTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── .idea
│ ├── .name
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── modules.xml
│ ├── gradle.xml
│ ├── compiler.xml
│ └── misc.xml
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── ReadMe.md
├── build.gradle
├── FloatingActionButton.iml
├── gradle.properties
├── LICENSE
├── gradlew.bat
└── gradlew
├── LollipopNotifications
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ ├── tile.9.png
│ │ │ │ │ ├── ic_public.png
│ │ │ │ │ ├── ic_secret.png
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_private.png
│ │ │ │ │ ├── ic_contact_picture.png
│ │ │ │ │ ├── ic_launcher_notification.png
│ │ │ │ │ ├── ic_private_notification.png
│ │ │ │ │ ├── ic_public_notification.png
│ │ │ │ │ └── ic_secret_notification.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ │ ├── ic_public.png
│ │ │ │ │ ├── ic_secret.png
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_private.png
│ │ │ │ │ ├── ic_contact_picture.png
│ │ │ │ │ ├── ic_launcher_notification.png
│ │ │ │ │ ├── ic_private_notification.png
│ │ │ │ │ ├── ic_public_notification.png
│ │ │ │ │ └── ic_secret_notification.png
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ ├── ic_private.png
│ │ │ │ │ ├── ic_public.png
│ │ │ │ │ ├── ic_secret.png
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_contact_picture.png
│ │ │ │ │ ├── ic_private_notification.png
│ │ │ │ │ ├── ic_public_notification.png
│ │ │ │ │ ├── ic_secret_notification.png
│ │ │ │ │ └── ic_launcher_notification.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ ├── ic_public.png
│ │ │ │ │ ├── ic_secret.png
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_private.png
│ │ │ │ │ ├── ic_contact_picture.png
│ │ │ │ │ ├── ic_public_notification.png
│ │ │ │ │ ├── ic_secret_notification.png
│ │ │ │ │ ├── ic_launcher_notification.png
│ │ │ │ │ └── ic_private_notification.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ └── layout
│ │ │ │ │ └── custom_notification.xml
│ │ │ └── AndroidManifest.xml
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── foosample
│ │ │ └── bar
│ │ │ └── lollipopnotifications
│ │ │ └── ApplicationTest.java
│ ├── build.gradle
│ └── proguard-rules.pro
├── .idea
│ ├── .name
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── modules.xml
│ ├── misc.xml
│ ├── gradle.xml
│ └── compiler.xml
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── ReadMe.md
├── build.gradle
├── gradle.properties
├── LollipopNotifications.iml
├── LICENSE
├── gradlew.bat
└── gradlew
├── LollipopTransitions
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ ├── styles.xml
│ │ │ │ │ └── colors.xml
│ │ │ │ ├── menu
│ │ │ │ │ └── menu_main.xml
│ │ │ │ ├── values-w820dp
│ │ │ │ │ └── dimens.xml
│ │ │ │ └── layout
│ │ │ │ │ ├── activity_a.xml
│ │ │ │ │ ├── activity_c.xml
│ │ │ │ │ └── activity_b.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── foosample
│ │ │ │ └── bar
│ │ │ │ └── transitions
│ │ │ │ ├── ActivityA.java
│ │ │ │ ├── ActivityC.java
│ │ │ │ └── ActivityB.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── foosample
│ │ │ └── bar
│ │ │ └── transitions
│ │ │ └── ApplicationTest.java
│ ├── build.gradle
│ └── proguard-rules.pro
├── .idea
│ ├── .name
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── modules.xml
│ ├── misc.xml
│ ├── gradle.xml
│ └── compiler.xml
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── ReadMe.md
├── build.gradle
├── LollipopTransitions.iml
├── gradle.properties
├── LICENSE
├── gradlew.bat
└── gradlew
├── README.md
└── .gitignore
/HidingToolbar/.idea/.name:
--------------------------------------------------------------------------------
1 | HidingToolbar
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/.name:
--------------------------------------------------------------------------------
1 | ConcurrentTasks
--------------------------------------------------------------------------------
/ConcurrentTasks/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HidingToolbar/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HidingToolbar/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/ConcurrentTasks/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/.name:
--------------------------------------------------------------------------------
1 | FloatingActionButton
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/.name:
--------------------------------------------------------------------------------
1 | LollipopTransitions
--------------------------------------------------------------------------------
/FloatingActionButton/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/.name:
--------------------------------------------------------------------------------
1 | LollipopNotifications
--------------------------------------------------------------------------------
/LollipopNotifications/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/LollipopTransitions/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/HidingToolbar/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/FloatingActionButton/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HidingToolbar
3 |
4 |
--------------------------------------------------------------------------------
/LollipopNotifications/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/LollipopTransitions/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/HidingToolbar/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/HidingToolbar/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/ConcurrentTasks/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/ConcurrentTasks/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | FloatingActionButton
3 |
4 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | LollipopNotifications
3 |
4 |
--------------------------------------------------------------------------------
/LollipopTransitions/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopTransitions/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/FloatingActionButton/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/LollipopNotifications/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # android
2 | Android sample codes.
3 |
4 | Full tutorials are published at Xmodulo .
5 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/HidingToolbar/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/HidingToolbar/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/ConcurrentTasks/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/ConcurrentTasks/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/ConcurrentTasks/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/HidingToolbar/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/HidingToolbar/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/RecyclerViewCardView/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/RecyclerViewCardView/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/ConcurrentTasks/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/tile.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/tile.9.png
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/RecyclerViewCardView/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/RecyclerViewCardView/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-hdpi/fab_ic_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-hdpi/fab_ic_add.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-mdpi/fab_ic_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-mdpi/fab_ic_add.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_public.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_public.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_secret.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_secret.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_public.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_public.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_secret.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_secret.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopTransitions/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopTransitions/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopTransitions/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopTransitions/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-xhdpi/fab_ic_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-xhdpi/fab_ic_add.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-xxhdpi/fab_ic_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-xxhdpi/fab_ic_add.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_private.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_private.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_private.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_private.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_private.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_private.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_public.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_public.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_secret.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_secret.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_public.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_public.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_secret.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_secret.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-xxxhdpi/fab_ic_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/FloatingActionButton/app/src/main/res/drawable-xxxhdpi/fab_ic_add.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_private.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_private.png
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_contact_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_contact_picture.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_contact_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_contact_picture.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_contact_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_contact_picture.png
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_contact_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_contact_picture.png
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_launcher_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_launcher_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_private_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_private_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_public_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_public_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_secret_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-hdpi/ic_secret_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_launcher_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_launcher_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_private_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_private_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_public_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_public_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_secret_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-mdpi/ic_secret_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_private_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_private_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_public_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_public_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_secret_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_secret_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_public_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_public_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_secret_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_secret_notification.png
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | RecyclerViewAndCardView
3 |
4 | Settings
5 |
6 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_launcher_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xhdpi/ic_launcher_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_launcher_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_launcher_notification.png
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_private_notification.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xmodulo/android/HEAD/LollipopNotifications/app/src/main/res/drawable-xxhdpi/ic_private_notification.png
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/ReadMe.md:
--------------------------------------------------------------------------------
1 | # RecyclerViewCardView
2 |
3 | This is a simple implementation of the Android Lollipop RecyclerView and CardView APIs.
4 |
5 | The complete tutorial is available [here](http://xmodulo.com/recyclerview-cardview-android.html)
6 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #4CAF50
4 | #388E3C
5 | #FF5722
6 |
7 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/LollipopNotifications/ReadMe.md:
--------------------------------------------------------------------------------
1 | # Lollipopnotifications
2 |
3 | This is a sample android application that shows the different possible notifications using the Android Lollipop API.
4 |
5 | The complete tutorial is available [here](http://xmodulo.com/implement-notifications-android.html)
6 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 32dp
4 | 32dp
5 | 36sp
6 |
--------------------------------------------------------------------------------
/ConcurrentTasks/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/FloatingActionButton/ReadMe.md:
--------------------------------------------------------------------------------
1 | # Implement Floating Action Bar (FAB)
2 |
3 | This is a sample program that implements a Floating Action Bar for both pre-Lollipop and Lollipop devices.
4 |
5 | The complete tutorial is available [here](http://xmodulo.com/implement-floating-action-button-android-apps.html)
6 |
--------------------------------------------------------------------------------
/LollipopTransitions/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 24sp
6 |
7 |
--------------------------------------------------------------------------------
/HidingToolbar/ReadMe.md:
--------------------------------------------------------------------------------
1 | # Hide/Show Toolbar in response to scrolling a RecyclerView
2 |
3 | This is a sample program that hides or shows a Toolbar in response to scrolling a RecyclerView upwards or downwards.
4 |
5 | The complete tutorial is available [here](http://xmodulo.com/hide-show-toolbar-scrolling-android.html)
6 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #4CAF50
4 | #388E3C
5 | #FF5722
6 | #E64A19
7 |
--------------------------------------------------------------------------------
/LollipopTransitions/ReadMe.md:
--------------------------------------------------------------------------------
1 | # LollipopTransitions
2 |
3 | This is a simple implementation of the Android Lollipop Transition APIs.
4 |
5 | There are examples for both Content Transitions and Shared Element Transitions
6 |
7 | The complete tutorial is available [here](http://xmodulo.com/activity-transition-animations-android.html)
8 |
--------------------------------------------------------------------------------
/HidingToolbar/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | #distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 | distributionUrl=file\:///home/obaro/Downloads/gradle-2.3-all.zip
8 |
--------------------------------------------------------------------------------
/FloatingActionButton/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | #distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 | distributionUrl=file\:///home/obaro/Downloads/gradle-2.3-all.zip
8 |
--------------------------------------------------------------------------------
/LollipopNotifications/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | #distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 | distributionUrl=file\:///home/obaro/Downloads/gradle-2.3-all.zip
8 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | LollipopTransitions
3 |
4 | Hello world!
5 | Settings
6 | One Shared Element
7 | Two Shared Elements
8 |
9 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable-v21/fab_ripple.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 |
15 | # Gradle files
16 | .gradle/
17 | build/
18 |
19 | # Local configuration file (sdk path, etc)
20 | local.properties
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 |
25 | # Log Files
26 | *.log
27 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 16dp
7 | 24dp
8 | 32dp
9 |
10 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 | 36sp
7 |
8 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/androidTest/java/com/foosample/bar/hidingtoolbar/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.hidingtoolbar;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/androidTest/java/com/foosample/bar/transitions/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.transitions;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/androidTest/java/com/foosample/bar/myapplication/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.myapplication;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/androidTest/java/com/foosample/bar/concurrenttasks/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.concurrenttasks;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/androidTest/java/com/foosample/bar/floatingactionbutton/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.floatingactionbutton;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/androidTest/java/com/foosample/bar/lollipopnotifications/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.lollipopnotifications;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/HidingToolbar/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.1.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ConcurrentTasks/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.1.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FloatingActionButton/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.1.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/LollipopNotifications/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.1.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/LollipopTransitions/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.1.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 | 56dp
8 | 16dp
9 | 16dp
10 | 8dp
11 | 12dp
12 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ConcurrentTasks/ReadMe.md:
--------------------------------------------------------------------------------
1 | # Concurrent Tasks with Android L
2 |
3 | This is a sample program that explores the new Document Centric (Concurrent Task) Android Lollipop APIs.
4 |
5 | ActivityA can start ActivityB in one of three ways
6 |
7 | 1. Default method that replaces ActivityA with ActivityB
8 |
9 | 2. As a concurrent task that is replaced each time
10 |
11 | 3. As multiple concurrent tasks.
12 |
13 | ActivityA can also close a random ActivityB, and each ActivityB can switch to ActivityA or close itself.
14 |
15 | The complete tutorial is available [here](http://xmodulo.com/document-centric-apps-concurrent-tasks-android.html)
16 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.concurrenttasks"
9 | minSdkVersion 21
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | }
25 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | ConcurrentTasks Sample
3 |
4 | Hello world!
5 | Settings
6 |
7 | Switch to Activity_B
8 | Single Concurrent Activity_B
9 | Multiple Concurrent Activity_B
10 | Close Random Activity_B
11 | Finish Activity
12 | Go to ActivityA
13 |
14 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.contenttransition"
9 | minSdkVersion 21
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | compile 'com.android.support:appcompat-v7:21.0.3'
25 | }
26 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/java/com/foosample/bar/myapplication/Palette.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.myapplication;
2 |
3 | /**
4 | * Created by obaro on 15/03/2015.
5 | */
6 | public class Palette {
7 | private String name;
8 | private String hexValue;
9 | private int intValue;
10 |
11 | public Palette(String name, String hexValue, int intValue) {
12 | this.name = name;
13 | this.hexValue = hexValue;
14 | this.intValue = intValue;
15 | }
16 |
17 | public String getName() {
18 | return name;
19 | }
20 |
21 | public String getHexValue() {
22 | return hexValue;
23 | }
24 |
25 | public int getIntValue() {
26 | return intValue;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.lollipopnotifications"
9 | minSdkVersion 14
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | compile 'com.android.support:appcompat-v7:21.0.3'
25 | }
26 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/HidingToolbar/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/obaro/Software/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
13 |
18 |
19 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/res/layout/list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/layout/list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/ConcurrentTasks/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/HidingToolbar/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/java/com/foosample/bar/myapplication/PaletteViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.myapplication;
2 |
3 | import android.support.v7.widget.CardView;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.View;
6 | import android.widget.TextView;
7 |
8 | /**
9 | * Created by obaro on 15/03/2015.
10 | */
11 | public class PaletteViewHolder extends RecyclerView.ViewHolder {
12 |
13 | protected TextView titleText;
14 | protected TextView contentText;
15 | protected CardView card;
16 |
17 | public PaletteViewHolder(View itemView) {
18 | super(itemView);
19 | titleText = (TextView) itemView.findViewById(R.id.name);
20 | contentText = (TextView) itemView.findViewById(R.id.hexValue);
21 | card = (CardView) itemView;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LollipopNotifications/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LollipopTransitions/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/HidingToolbar/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.hidingtoolbar"
9 | minSdkVersion 14
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | compile 'com.android.support:appcompat-v7:21.0.3'
25 | compile 'com.android.support:recyclerview-v7:21.0.3'
26 | compile 'com.android.support:cardview-v7:21.0.3'
27 | }
28 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.myapplication"
9 | minSdkVersion 14
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | compile 'com.android.support:appcompat-v7:21.0.3'
25 | compile 'com.android.support:cardview-v7:21.0.3'
26 | compile 'com.android.support:recyclerview-v7:21.0.3'
27 | }
28 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "21.1.2"
6 |
7 | defaultConfig {
8 | applicationId "com.foosample.bar.floatingactionbutton"
9 | minSdkVersion 14
10 | targetSdkVersion 21
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | compile 'com.android.support:appcompat-v7:21.0.3'
25 | compile 'com.android.support:cardview-v7:21.0.3'
26 | compile 'com.android.support:recyclerview-v7:21.0.3'
27 | }
28 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/anim-v21/fab_elevation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
10 |
11 | -
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/HidingToolbar/HidingToolbar.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/ConcurrentTasks/ConcurrentTasks.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/LollipopTransitions/LollipopTransitions.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/FloatingActionButton/FloatingActionButton.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/HidingToolbar/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/ConcurrentTasks/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/LollipopTransitions/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/FloatingActionButton/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/java/com/foosample/bar/hidingtoolbar/RecyclerItemViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.hidingtoolbar;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.View;
5 | import android.widget.TextView;
6 |
7 | /**
8 | * Created by obaro on 10/04/2015.
9 | */
10 | public class RecyclerItemViewHolder extends RecyclerView.ViewHolder {
11 | private final TextView mItemTextView;
12 |
13 | public RecyclerItemViewHolder(final View parent, TextView itemTextView) {
14 | super(parent);
15 | mItemTextView = itemTextView;
16 | }
17 | public static RecyclerItemViewHolder newInstance(View parent) {
18 | TextView itemTextView = (TextView) parent.findViewById(R.id.itemTextView);
19 | return new RecyclerItemViewHolder(parent, itemTextView);
20 | }
21 | public void setItemText(CharSequence text) {
22 | mItemTextView.setText(text);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/LollipopNotifications/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/LollipopNotifications/LollipopNotifications.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/java/com/foosample/bar/floatingactionbutton/RecyclerItemViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.floatingactionbutton;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.View;
5 | import android.widget.TextView;
6 |
7 | /**
8 | * Created by obaro on 10/04/2015.
9 | */
10 | public class RecyclerItemViewHolder extends RecyclerView.ViewHolder {
11 | private final TextView mItemTextView;
12 |
13 | public RecyclerItemViewHolder(final View parent, TextView itemTextView) {
14 | super(parent);
15 | mItemTextView = itemTextView;
16 | }
17 | public static RecyclerItemViewHolder newInstance(View parent) {
18 | TextView itemTextView = (TextView) parent.findViewById(R.id.itemTextView);
19 | return new RecyclerItemViewHolder(parent, itemTextView);
20 | }
21 | public void setItemText(CharSequence text) {
22 | mItemTextView.setText(text);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/LollipopNotifications/app/src/main/res/layout/custom_notification.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
25 |
26 |
--------------------------------------------------------------------------------
/HidingToolbar/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/ConcurrentTasks/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/FloatingActionButton/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/LollipopNotifications/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/LollipopTransitions/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/RecyclerViewCardView/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Obaro Ogbo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/layout-v21/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
27 |
28 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/java/com/foosample/bar/hidingtoolbar/RecyclerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.hidingtoolbar;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * Created by obaro on 10/04/2015.
12 | */
13 | public class RecyclerAdapter extends RecyclerView.Adapter {
14 | private List mItemList;
15 |
16 | public RecyclerAdapter(List itemList) {
17 | mItemList = itemList;
18 | }
19 | @Override
20 | public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
21 | final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, parent, false);
22 | return RecyclerItemViewHolder.newInstance(view);
23 | }
24 | @Override
25 | public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
26 | RecyclerItemViewHolder holder = (RecyclerItemViewHolder) viewHolder;
27 | String itemText = mItemList.get(position);
28 | holder.setItemText(itemText);
29 | }
30 | @Override
31 | public int getItemCount() {
32 | return mItemList == null ? 0 : mItemList.size();
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/java/com/foosample/bar/floatingactionbutton/RecyclerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.floatingactionbutton;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * Created by obaro on 10/04/2015.
12 | */
13 | public class RecyclerAdapter extends RecyclerView.Adapter {
14 | private List mItemList;
15 |
16 | public RecyclerAdapter(List itemList) {
17 | mItemList = itemList;
18 | }
19 | @Override
20 | public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
21 | final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, parent, false);
22 | return RecyclerItemViewHolder.newInstance(view);
23 | }
24 | @Override
25 | public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
26 | RecyclerItemViewHolder holder = (RecyclerItemViewHolder) viewHolder;
27 | String itemText = mItemList.get(position);
28 | holder.setItemText(itemText);
29 | }
30 | @Override
31 | public int getItemCount() {
32 | return mItemList == null ? 0 : mItemList.size();
33 | }
34 |
35 | public void addItem(String string) {
36 | mItemList.add(string);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/java/com/foosample/bar/hidingtoolbar/MyScrollListener.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.hidingtoolbar;
2 |
3 | import android.content.Context;
4 | import android.content.res.TypedArray;
5 | import android.support.v7.widget.RecyclerView;
6 | import android.util.Log;
7 |
8 | /**
9 | * Created by obaro on 10/04/2015.
10 | */
11 | public abstract class MyScrollListener extends RecyclerView.OnScrollListener {
12 |
13 |
14 | private int toolbarOffset = 0;
15 | private int toolbarHeight;
16 |
17 | public MyScrollListener(Context context) {
18 | int[] actionBarAttr = new int[] { android.R.attr.actionBarSize };
19 | TypedArray a = context.obtainStyledAttributes(actionBarAttr);
20 | toolbarHeight = (int) a.getDimension(0, 0) + 10;
21 | a.recycle();
22 | }
23 |
24 | @Override
25 | public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
26 | super.onScrolled(recyclerView, dx, dy);
27 |
28 | clipToolbarOffset();
29 | onMoved(toolbarOffset);
30 |
31 | if((toolbarOffset < toolbarHeight && dy>0) || (toolbarOffset > 0 && dy<0)) {
32 | toolbarOffset += dy;
33 | }
34 | }
35 |
36 | private void clipToolbarOffset() {
37 | if(toolbarOffset > toolbarHeight) {
38 | toolbarOffset = toolbarHeight;
39 | } else if(toolbarOffset < 0) {
40 | toolbarOffset = 0;
41 | }
42 | }
43 |
44 | public abstract void onMoved(int distance);
45 | }
46 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/java/com/foosample/bar/myapplication/MyRecyclerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.myapplication;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 | /**
12 | * Created by obaro on 15/03/2015.
13 | */
14 | public class MyRecyclerAdapter extends RecyclerView.Adapter {
15 |
16 | private List palettes;
17 |
18 | public MyRecyclerAdapter(List palettes) {
19 | this.palettes = new ArrayList<>();
20 | this.palettes.addAll(palettes);
21 | }
22 |
23 | @Override
24 | public PaletteViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
25 | View itemView = LayoutInflater.
26 | from(viewGroup.getContext()).
27 | inflate(R.layout.card_view, viewGroup, false);
28 |
29 | return new PaletteViewHolder(itemView);
30 | }
31 |
32 | @Override
33 | public void onBindViewHolder(PaletteViewHolder paletteViewHolder, int i) {
34 | Palette palette = palettes.get(i);
35 | paletteViewHolder.titleText.setText(palette.getName());
36 | paletteViewHolder.contentText.setText(palette.getHexValue());
37 | paletteViewHolder.card.setCardBackgroundColor(palette.getIntValue());
38 | }
39 |
40 | @Override
41 | public int getItemCount() {
42 | return palettes.size();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/res/layout/card_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
24 |
25 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/layout/activity_b.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
24 |
25 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/java/com/foosample/bar/floatingactionbutton/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.floatingactionbutton;
2 |
3 | import android.support.v7.app.ActionBarActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.LinearLayoutManager;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.view.View;
8 | import android.widget.ImageButton;
9 | import android.widget.ListView;
10 |
11 | import java.util.ArrayList;
12 |
13 | /**
14 | * Created by obaro on 20/04/2015.
15 | */
16 |
17 | public class MainActivity extends ActionBarActivity {
18 |
19 | @Override
20 | protected void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.activity_main);
23 |
24 | final ArrayList list = new ArrayList<>();
25 | list.add("List Item 0");
26 |
27 | RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
28 | recyclerView.setLayoutManager(new LinearLayoutManager(this));
29 | final RecyclerAdapter recyclerAdapter = new RecyclerAdapter(list);
30 | recyclerView.setAdapter(recyclerAdapter);
31 |
32 | ImageButton fabButton = (ImageButton) findViewById(R.id.fab_image_button);
33 | fabButton.setOnClickListener(new View.OnClickListener() {
34 | @Override
35 | public void onClick(View v) {
36 | recyclerAdapter.addItem("List Item " + recyclerAdapter.getItemCount());
37 | recyclerAdapter.notifyDataSetChanged();
38 | }
39 | });
40 | }
41 | }
--------------------------------------------------------------------------------
/RecyclerViewCardView/src/main/java/com/foosample/bar/myapplication/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.myapplication;
2 |
3 | import android.graphics.Color;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.os.Bundle;
6 | import android.support.v7.widget.LinearLayoutManager;
7 | import android.support.v7.widget.RecyclerView;
8 |
9 | import java.util.ArrayList;
10 |
11 |
12 | public class MainActivity extends ActionBarActivity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_main);
18 |
19 | RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerList);
20 | LinearLayoutManager linearLM = new LinearLayoutManager(this);
21 | linearLM.setOrientation(LinearLayoutManager.VERTICAL);
22 | recyclerView.setLayoutManager(linearLM);
23 |
24 | recyclerView.setAdapter(new MyRecyclerAdapter(generateBooks()));
25 | }
26 |
27 | private ArrayList generateBooks() {
28 | ArrayList palettes = new ArrayList<>();
29 | palettes.add(new Palette("RED", "#D32F2F", Color.parseColor("#d32f2f")));
30 | palettes.add(new Palette("PINK", "#FF4081", Color.parseColor("#ff4081")));
31 | palettes.add(new Palette("INDIGO", "#7B1FA2", Color.parseColor("#7b1fa2")));
32 | palettes.add(new Palette("BLUE", "#536DFE", Color.parseColor("#536dfe")));
33 | palettes.add(new Palette("GREEN", "#388E3C", Color.parseColor("#388e3c")));
34 | palettes.add(new Palette("ORANGE", "#FF5722", Color.parseColor("#ff5722")));
35 | palettes.add(new Palette("AMBER", "#FFA000", Color.parseColor("#ffa000")));
36 | return palettes;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/java/com/foosample/bar/transitions/ActivityA.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.transitions;
2 |
3 | import android.annotation.TargetApi;
4 | import android.app.ActivityOptions;
5 | import android.content.Intent;
6 | import android.os.Build;
7 | import android.support.v7.app.ActionBarActivity;
8 | import android.os.Bundle;
9 | import android.transition.Explode;
10 | import android.transition.Slide;
11 | import android.transition.Transition;
12 | import android.view.Gravity;
13 | import android.view.View;
14 | import android.view.ViewGroup;
15 |
16 |
17 | public class ActivityA extends ActionBarActivity {
18 |
19 | ViewGroup viewGroup;
20 | View blueButton;
21 |
22 | @Override
23 | protected void onCreate(Bundle savedInstanceState) {
24 | super.onCreate(savedInstanceState);
25 |
26 | Transition exitTrans = new Explode();
27 | getWindow().setExitTransition(exitTrans);
28 |
29 | Transition reenterTrans = new Slide();
30 | reenterTrans.setDuration(3000);
31 | ((Slide)reenterTrans).setSlideEdge(Gravity.RIGHT);
32 | getWindow().setReenterTransition(reenterTrans);
33 |
34 | setContentView(R.layout.activity_a);
35 |
36 | viewGroup = (ViewGroup) findViewById(R.id.main_layout);
37 | viewGroup.setOnClickListener(new View.OnClickListener() {
38 | @TargetApi(Build.VERSION_CODES.KITKAT)
39 | @Override
40 | public void onClick(View view) {
41 | ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
42 | ActivityA.this);
43 | Intent intent = new Intent(ActivityA.this, ActivityB.class);
44 | startActivity(intent, options.toBundle());
45 | }
46 | });
47 |
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/HidingToolbar/app/src/main/java/com/foosample/bar/hidingtoolbar/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.hidingtoolbar;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.support.v7.widget.LinearLayoutManager;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.support.v7.widget.Toolbar;
8 |
9 | import java.util.ArrayList;
10 | import java.util.List;
11 |
12 | /**
13 | * Created by obaro on 10/04/2015.
14 | */
15 | public class MainActivity extends ActionBarActivity {
16 | private Toolbar toolbar;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_main);
22 |
23 | toolbar = (Toolbar) findViewById(R.id.toolbar);
24 | setSupportActionBar(toolbar);
25 | setTitle(getString(R.string.app_name));
26 | toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));
27 |
28 | RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
29 | recyclerView.setLayoutManager(new LinearLayoutManager(this));
30 | RecyclerAdapter recyclerAdapter = new RecyclerAdapter(createItemList());
31 | recyclerView.setAdapter(recyclerAdapter);
32 |
33 | recyclerView.setOnScrollListener(new MyScrollListener(this) {
34 | @Override
35 | public void onMoved(int distance) {
36 | toolbar.setTranslationY(-distance);
37 | }
38 | });
39 | }
40 |
41 | private List createItemList() {
42 | ArrayList list = new ArrayList();
43 | for(int i = 0; i < 20; i++) {
44 | list.add(new String("List Item " + i));
45 | }
46 | return list;
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/java/com/foosample/bar/concurrenttasks/ActivityB.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.concurrenttasks;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.Button;
8 |
9 | /**
10 | * Created by obaro on 29/03/2015.
11 | */
12 | public class ActivityB extends Activity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | Intent intent = getIntent();
18 | int counter = intent.getIntExtra(ActivityA.KEY_EXTRA_NEW_DOCUMENT_COUNTER, -1);
19 | setTitle(getResources().getString(R.string.app_name) + " " + counter);
20 | setContentView(R.layout.activity_b);
21 |
22 | Button buttonExit = (Button) findViewById(R.id.buttonExit);
23 | buttonExit.setOnClickListener(new View.OnClickListener() {
24 | @Override
25 | public void onClick(View view) {
26 | exitActivity();
27 | }
28 | });
29 |
30 | Button buttonMain = (Button) findViewById(R.id.buttonMain);
31 | buttonMain.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View view) {
34 | mainActivity();
35 | }
36 | });
37 | }
38 |
39 | private void exitActivity() {
40 | finishAndRemoveTask();
41 | }
42 |
43 | private void mainActivity() {
44 | Intent intent = new Intent(this, ActivityA.class);
45 | intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
46 | // intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
47 | // intent.putExtra(KEY_EXTRA_NEW_DOCUMENT_COUNTER, ++NEW_DOCUMENT_COUNTER);
48 | startActivity(intent);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/java/com/foosample/bar/transitions/ActivityC.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.transitions;
2 |
3 | import android.annotation.TargetApi;
4 | import android.app.ActivityOptions;
5 | import android.content.Intent;
6 | import android.os.Build;
7 | import android.os.Bundle;
8 | import android.support.v7.app.ActionBarActivity;
9 | import android.transition.Explode;
10 | import android.transition.Slide;
11 | import android.transition.Transition;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 |
15 |
16 | public class ActivityC extends ActionBarActivity {
17 |
18 | ViewGroup viewGroup;
19 | View blueButton;
20 |
21 | @Override
22 | protected void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 |
25 | Transition exitTrans = new Explode();
26 | exitTrans.setDuration(3000);
27 | exitTrans.setStartDelay(1000);
28 | getWindow().setExitTransition(exitTrans);
29 |
30 | Transition enterTrans = new Slide();
31 | enterTrans.setDuration(3000);
32 | getWindow().setReenterTransition(enterTrans);
33 |
34 |
35 | // Transition shared = new Slide();
36 | // shared.setDuration(3000);
37 | // getWindow().setSharedElementEnterTransition(shared);
38 |
39 | setContentView(R.layout.activity_c);
40 |
41 | viewGroup = (ViewGroup) findViewById(R.id.main_layout);
42 | viewGroup.setOnClickListener(new View.OnClickListener() {
43 | @TargetApi(Build.VERSION_CODES.KITKAT)
44 | @Override
45 | public void onClick(View view) {
46 | ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
47 | ActivityC.this);
48 | Intent intent = new Intent(ActivityC.this, ActivityB.class);
49 | startActivity(intent, options.toBundle());
50 | }
51 | });
52 |
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/res/layout/activity_a.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
24 |
33 |
42 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/ConcurrentTasks/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/HidingToolbar/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/FloatingActionButton/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/LollipopNotifications/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/LollipopTransitions/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/FloatingActionButton/app/src/main/res/drawable/fab_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
8 | -
9 |
10 |
11 |
17 |
18 |
19 | -
20 |
21 |
22 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | -
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | -
43 |
44 |
45 |
46 | -
47 |
48 | -
49 |
50 |
51 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | -
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/java/com/foosample/bar/transitions/ActivityB.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.transitions;
2 |
3 | import android.app.ActivityOptions;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.support.v7.app.ActionBarActivity;
7 | import android.transition.Explode;
8 | import android.transition.Slide;
9 | import android.transition.Transition;
10 | import android.util.Pair;
11 | import android.view.Gravity;
12 | import android.view.Menu;
13 | import android.view.MenuItem;
14 | import android.view.View;
15 | import android.widget.TextView;
16 |
17 |
18 | public class ActivityB extends ActionBarActivity {
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 |
24 | Transition trans = new Explode();
25 | getWindow().setEnterTransition(trans);
26 |
27 | Transition returnTrans = new Slide();
28 | returnTrans.setDuration(2000);
29 | ((Slide)returnTrans).setSlideEdge(Gravity.LEFT);
30 | getWindow().setReturnTransition(returnTrans);
31 | getWindow().setAllowReturnTransitionOverlap(true);
32 |
33 | setContentView(R.layout.activity_b);
34 |
35 | final TextView fuchsiaTextView = (TextView) findViewById(R.id.fuchsiaView);
36 | fuchsiaTextView.setOnClickListener(new View.OnClickListener() {
37 | @Override
38 | public void onClick(View view) {
39 | ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
40 | ActivityB.this, fuchsiaTextView, "fuchsiaView");
41 | Intent intent = new Intent(ActivityB.this, ActivityC.class);
42 | startActivity(intent, options.toBundle());
43 | }
44 | });
45 |
46 | final TextView redTextView = (TextView) findViewById(R.id.redTextView);
47 | redTextView.setOnClickListener(new View.OnClickListener() {
48 | @Override
49 | public void onClick(View view) {
50 | ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
51 | ActivityB.this, new Pair(fuchsiaTextView, "fuchsiaView"),
52 | new Pair(redTextView, "redView"));
53 | Intent intent = new Intent(ActivityB.this, ActivityC.class);
54 | startActivity(intent, options.toBundle());
55 | }
56 | });
57 |
58 | }
59 |
60 |
61 | @Override
62 | public boolean onCreateOptionsMenu(Menu menu) {
63 | // Inflate the menu; this adds items to the action bar if it is present.
64 | getMenuInflater().inflate(R.menu.menu_main, menu);
65 | return true;
66 | }
67 |
68 | @Override
69 | public boolean onOptionsItemSelected(MenuItem item) {
70 | // Handle action bar item clicks here. The action bar will
71 | // automatically handle clicks on the Home/Up button, so long
72 | // as you specify a parent activity in AndroidManifest.xml.
73 | int id = item.getItemId();
74 |
75 | //noinspection SimplifiableIfStatement
76 | if (id == R.id.action_settings) {
77 | return true;
78 | }
79 |
80 | return super.onOptionsItemSelected(item);
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/layout/activity_a.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
20 |
21 |
28 |
29 |
36 |
37 |
44 |
45 |
46 |
53 |
54 |
61 |
62 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/layout/activity_c.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
18 |
19 |
26 |
27 |
36 |
37 |
45 |
46 |
47 |
54 |
55 |
66 |
67 |
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/layout/activity_b.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
17 |
18 |
25 |
26 |
37 |
38 |
46 |
47 |
48 |
55 |
56 |
64 |
65 |
76 |
77 |
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/LollipopTransitions/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | #FFFFFF
53 | #FFFF00
54 | #FF00FF
55 | #FF0000
56 | #C0C0C0
57 | #808080
58 | #808000
59 | #800080
60 | #800000
61 | #00FFFF
62 | #00FF00
63 | #008080
64 | #008000
65 | #0000FF
66 | #000080
67 | #000000
68 | #00000000
69 | #66000000
70 |
71 | #6464ac
72 | #e5aa44
73 | #fa99cc
74 | #337733
75 | #000000
76 |
77 | #a4a4ac
78 | #f8bb88
79 | #d877aa
80 | #44AA44
81 | #565656
82 |
83 | #666464fc
84 | #66e5aa44
85 | #66fa99cc
86 | #66337733
87 | #66000000
88 |
89 | #FFFFFF
90 | #FFFFFF
91 |
92 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/src/main/java/com/foosample/bar/concurrenttasks/ActivityA.java:
--------------------------------------------------------------------------------
1 | package com.foosample.bar.concurrenttasks;
2 |
3 | import android.app.Activity;
4 | import android.app.ActivityManager;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.os.Build;
8 | import android.os.Bundle;
9 | import android.util.Log;
10 | import android.view.View;
11 | import android.widget.Button;
12 |
13 | import java.util.ArrayList;
14 | import java.util.List;
15 | import java.util.Random;
16 |
17 |
18 | public class ActivityA extends Activity {
19 |
20 | public static final String KEY_EXTRA_NEW_DOCUMENT_COUNTER = "KEY_EXTRA_NEW_DOCUMENT_COUNTER";
21 | public static final String KEY_EXTRA_ACTIVITY_NAME = "KEY_EXTRA_ACTIVITY_NAME";
22 | public static final String STRING_ACTIVITY_B = "ACTIVITY_B";
23 | public static int NEW_DOCUMENT_COUNTER = 0;
24 |
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 | setContentView(R.layout.activity_a);
29 |
30 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
31 | // Do something for froyo and above versions
32 | } else{
33 | // do something for phones running an SDK before froyo
34 | }
35 |
36 | Button buttonSwitch = (Button) findViewById(R.id.buttonSwitch);
37 | buttonSwitch.setOnClickListener(new View.OnClickListener() {
38 | @Override
39 | public void onClick(View view) {
40 | Intent intent = new Intent(ActivityA.this, ActivityB.class);
41 | startActivity(intent);
42 | }
43 | });
44 |
45 | Button buttonSingle = (Button) findViewById(R.id.buttonSingle);
46 | buttonSingle.setOnClickListener(new View.OnClickListener() {
47 | @Override
48 | public void onClick(View view) {
49 | startSingleConcurrent();
50 | }
51 | });
52 |
53 | Button buttonConcurrent = (Button) findViewById(R.id.buttonConcurrent);
54 | buttonConcurrent.setOnClickListener(new View.OnClickListener() {
55 | @Override
56 | public void onClick(View view) {
57 | startMultipleConcurrent();
58 | }
59 | });
60 |
61 | Button buttonCancel = (Button) findViewById(R.id.buttonCloseConcurrent);
62 | buttonCancel.setOnClickListener(new View.OnClickListener() {
63 | @Override
64 | public void onClick(View view) {
65 | removeRandomActivityB();
66 | }
67 | });
68 | }
69 |
70 | private void startSingleConcurrent() {
71 | Intent intent = new Intent(this, ActivityB.class);
72 | intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
73 | intent.putExtra(KEY_EXTRA_NEW_DOCUMENT_COUNTER, NEW_DOCUMENT_COUNTER++);
74 | intent.putExtra(KEY_EXTRA_ACTIVITY_NAME, STRING_ACTIVITY_B);
75 | startActivity(intent);
76 | }
77 |
78 | private void startMultipleConcurrent() {
79 | Intent intent = new Intent(this, ActivityB.class);
80 | intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
81 | intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
82 | intent.putExtra(KEY_EXTRA_NEW_DOCUMENT_COUNTER, NEW_DOCUMENT_COUNTER++);
83 | intent.putExtra(KEY_EXTRA_ACTIVITY_NAME, STRING_ACTIVITY_B);
84 | startActivity(intent);
85 | }
86 |
87 | private void getRecent() {
88 | ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
89 | List myTasks = manager.getAppTasks();
90 |
91 | int counter = 1;
92 | for(ActivityManager.AppTask task : myTasks) {
93 | Intent baseIntent = task.getTaskInfo().baseIntent;
94 | Log.e("TASK " + counter++, baseIntent.getIntExtra(KEY_EXTRA_NEW_DOCUMENT_COUNTER, -1) + "");
95 | }
96 | }
97 |
98 | private void removeRandomActivityB() {
99 | ArrayList tasks = new ArrayList();
100 |
101 | ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
102 | List myTasks = manager.getAppTasks();
103 | for(ActivityManager.AppTask task : myTasks) {
104 | Intent baseIntent = task.getTaskInfo().baseIntent;
105 | if(STRING_ACTIVITY_B.equalsIgnoreCase(baseIntent.getStringExtra(KEY_EXTRA_ACTIVITY_NAME))) {
106 | tasks.add(task);
107 | }
108 | }
109 |
110 | Random random = new Random();
111 | int toRemove = random.nextInt(tasks.size());
112 | tasks.get(toRemove).finishAndRemoveTask();
113 | }
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/FloatingActionButton/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | localhost
107 | 5050
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/HidingToolbar/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/ConcurrentTasks/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/LollipopTransitions/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/FloatingActionButton/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/LollipopNotifications/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/ConcurrentTasks/app/app.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------