├── app
├── .gitignore
├── libs
│ ├── ActiveAndroid.jar
│ └── GraphView-3.1.2.jar
├── src
│ ├── main
│ │ ├── assets
│ │ │ ├── player.png
│ │ │ └── npc-oldman1.png
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── devahoy.png
│ │ │ │ ├── guitar.png
│ │ │ │ ├── nuuneoi.png
│ │ │ │ ├── akexorcist.png
│ │ │ │ ├── androidthai.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── martroutine.png
│ │ │ │ ├── android4health.png
│ │ │ │ ├── day2_example_sky.jpg
│ │ │ │ ├── day2_example_image.jpg
│ │ │ │ └── day2_example_rainbow.jpg
│ │ │ ├── drawable-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable
│ │ │ │ └── day15_actionbar_bg.xml
│ │ │ ├── values
│ │ │ │ └── dimens.xml
│ │ │ ├── layout
│ │ │ │ ├── day2_parallax_list_view.xml
│ │ │ │ ├── day27_activity_adapter_kit.xml
│ │ │ │ ├── day13_activity_viewpager.xml
│ │ │ │ ├── day5_activity_graphview.xml
│ │ │ │ ├── day15_header.xml
│ │ │ │ ├── day1_activity_main.xml
│ │ │ │ ├── day4_activity_swipe_to_refresh.xml
│ │ │ │ ├── day23_activity_listview_animation.xml
│ │ │ │ ├── day3_activity_retrofit.xml
│ │ │ │ ├── activity_eazegraph.xml
│ │ │ │ ├── day20_activity_view_animation.xml
│ │ │ │ ├── day1_list_item_simple.xml
│ │ │ │ ├── day13_fragment.xml
│ │ │ │ ├── day8_activity_crashlytics.xml
│ │ │ │ ├── day6_activity_holo_color.xml
│ │ │ │ ├── day7_activity_async.xml
│ │ │ │ ├── day25_fragment_bar_chart.xml
│ │ │ │ ├── day25_fragment_pie_chart.xml
│ │ │ │ ├── day27_list_item.xml
│ │ │ │ ├── day14_activity_viewpager_line.xml
│ │ │ │ ├── day14_activity_viewpager_titlepage.xml
│ │ │ │ ├── day16_activity_autofit.xml
│ │ │ │ ├── day25_fragment_line_chart.xml
│ │ │ │ ├── day14_activity_viewpager_circle.xml
│ │ │ │ ├── day17_activity_swipe_listview.xml
│ │ │ │ ├── day26_activity_cards.xml
│ │ │ │ ├── day27_list_item2.xml
│ │ │ │ ├── day6_dialog.xml
│ │ │ │ ├── day15_activity_scrollview.xml
│ │ │ │ ├── day2_parallax_background.xml
│ │ │ │ ├── day26_list_item_cards.xml
│ │ │ │ ├── day9_activity_butter_knife.xml
│ │ │ │ ├── day10_activity_annotations.xml
│ │ │ │ ├── day22_activity_twitter4j.xml
│ │ │ │ └── day30_activity_firebase.xml
│ │ │ ├── menu
│ │ │ │ ├── menu.xml
│ │ │ │ └── main.xml
│ │ │ └── values-w820dp
│ │ │ │ └── dimens.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── devahoy
│ │ │ │ └── learn30androidlibraries
│ │ │ │ ├── day3
│ │ │ │ ├── ShotList.java
│ │ │ │ ├── SimpleRetrofit.java
│ │ │ │ └── Shot.java
│ │ │ │ ├── day7
│ │ │ │ ├── Players.java
│ │ │ │ └── Player.java
│ │ │ │ ├── day21
│ │ │ │ ├── AAApplication.java
│ │ │ │ ├── AAHelper.java
│ │ │ │ └── Book.java
│ │ │ │ ├── day17
│ │ │ │ └── Website.java
│ │ │ │ ├── day27
│ │ │ │ └── Player.java
│ │ │ │ ├── day26
│ │ │ │ └── MyCard.java
│ │ │ │ ├── day2
│ │ │ │ └── ParallaxBackgroundActivity.java
│ │ │ │ ├── day15
│ │ │ │ └── FadingActionBarActivity.java
│ │ │ │ ├── day19
│ │ │ │ └── GreenDaoApplication.java
│ │ │ │ ├── day30
│ │ │ │ └── Chat.java
│ │ │ │ ├── day29
│ │ │ │ └── FlatUIActivity.java
│ │ │ │ ├── day13
│ │ │ │ └── SimplePagerAdapter.java
│ │ │ │ ├── day10
│ │ │ │ └── AnnotationsActivity.java
│ │ │ │ ├── day8
│ │ │ │ └── CrashlyticsActivity.java
│ │ │ │ └── day16
│ │ │ │ └── AutoFitTextViewActivity.java
│ │ ├── java-gen
│ │ │ └── com
│ │ │ │ └── devahoy
│ │ │ │ └── learn30androidlibraries
│ │ │ │ ├── Player.java
│ │ │ │ └── DaoSession.java
│ │ └── AndroidManifest.xml
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── devahoy
│ │ └── learn30androidlibraries
│ │ └── ApplicationTest.java
└── proguard-rules.pro
├── andEngine
├── src
│ └── main
│ │ ├── res
│ │ └── .gitignore
│ │ ├── jni
│ │ ├── Application.mk
│ │ ├── Android.mk
│ │ ├── build.sh
│ │ └── src
│ │ │ ├── BufferUtils.h
│ │ │ ├── GLES20Fix.c
│ │ │ └── BufferUtils.cpp
│ │ ├── jniLibs
│ │ ├── x86
│ │ │ └── libandengine.so
│ │ ├── armeabi
│ │ │ └── libandengine.so
│ │ └── armeabi-v7a
│ │ │ └── libandengine.so
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── org
│ │ └── andengine
│ │ ├── util
│ │ ├── adt
│ │ │ ├── bounds
│ │ │ │ ├── IBounds.java
│ │ │ │ ├── IIntBounds.java
│ │ │ │ └── IFloatBounds.java
│ │ │ ├── list
│ │ │ │ ├── ISortedList.java
│ │ │ │ ├── IUniqueList.java
│ │ │ │ ├── IIntList.java
│ │ │ │ ├── ILongList.java
│ │ │ │ ├── IFloatList.java
│ │ │ │ └── IList.java
│ │ │ ├── queue
│ │ │ │ ├── ISortedQueue.java
│ │ │ │ ├── IUniqueQueue.java
│ │ │ │ └── IQueue.java
│ │ │ ├── spatial
│ │ │ │ └── ISpatialItem.java
│ │ │ ├── io
│ │ │ │ └── in
│ │ │ │ │ └── IInputStreamOpener.java
│ │ │ ├── trie
│ │ │ │ └── ITrie.java
│ │ │ └── pool
│ │ │ │ └── RunnablePoolItem.java
│ │ ├── IMatcher.java
│ │ ├── call
│ │ │ ├── Callback.java
│ │ │ ├── ParameterCallable.java
│ │ │ ├── Callable.java
│ │ │ └── AsyncCallable.java
│ │ ├── color
│ │ │ └── constants
│ │ │ │ └── ColorConstants.java
│ │ ├── algorithm
│ │ │ ├── path
│ │ │ │ ├── IPathFinderMap.java
│ │ │ │ ├── ICostFunction.java
│ │ │ │ └── astar
│ │ │ │ │ └── IAStarHeuristic.java
│ │ │ └── hull
│ │ │ │ └── IHullAlgorithm.java
│ │ ├── modifier
│ │ │ └── ease
│ │ │ │ └── IEaseFunction.java
│ │ ├── Constants.java
│ │ ├── level
│ │ │ ├── IEntityLoader.java
│ │ │ └── constants
│ │ │ │ └── LevelConstants.java
│ │ ├── progress
│ │ │ ├── IProgressListener.java
│ │ │ └── ProgressCallable.java
│ │ └── math
│ │ │ └── MathConstants.java
│ │ ├── entity
│ │ ├── IEntityComparator.java
│ │ ├── IEntityFactory.java
│ │ ├── sprite
│ │ │ ├── vbo
│ │ │ │ ├── IUncoloredSpriteVertexBufferObject.java
│ │ │ │ ├── IDiamondSpriteVertexBufferObject.java
│ │ │ │ ├── IUniformColorSpriteVertexBufferObject.java
│ │ │ │ ├── ITiledSpriteVertexBufferObject.java
│ │ │ │ └── ISpriteVertexBufferObject.java
│ │ │ └── batch
│ │ │ │ └── vbo
│ │ │ │ └── ISpriteBatchVertexBufferObject.java
│ │ ├── IEntityMatcher.java
│ │ ├── IEntityParameterCallable.java
│ │ ├── particle
│ │ │ ├── emitter
│ │ │ │ └── IParticleEmitter.java
│ │ │ ├── initializer
│ │ │ │ └── IParticleInitializer.java
│ │ │ └── modifier
│ │ │ │ └── IParticleModifier.java
│ │ ├── scene
│ │ │ ├── menu
│ │ │ │ ├── item
│ │ │ │ │ └── IMenuItem.java
│ │ │ │ └── animator
│ │ │ │ │ └── IMenuAnimator.java
│ │ │ ├── IOnSceneTouchListener.java
│ │ │ └── background
│ │ │ │ ├── IBackground.java
│ │ │ │ └── modifier
│ │ │ │ └── IBackgroundModifier.java
│ │ ├── primitive
│ │ │ └── vbo
│ │ │ │ ├── ILineVertexBufferObject.java
│ │ │ │ ├── IRectangleVertexBufferObject.java
│ │ │ │ └── IMeshVertexBufferObject.java
│ │ ├── text
│ │ │ └── vbo
│ │ │ │ └── ITextVertexBufferObject.java
│ │ └── shape
│ │ │ └── IAreaShape.java
│ │ ├── engine
│ │ ├── handler
│ │ │ ├── timer
│ │ │ │ └── ITimerCallback.java
│ │ │ ├── IDrawHandler.java
│ │ │ ├── collision
│ │ │ │ └── ICollisionCallback.java
│ │ │ └── IUpdateHandler.java
│ │ └── options
│ │ │ └── resolutionpolicy
│ │ │ └── IResolutionPolicy.java
│ │ ├── opengl
│ │ ├── shader
│ │ │ └── source
│ │ │ │ └── IShaderSource.java
│ │ ├── texture
│ │ │ ├── ITextureStateListener.java
│ │ │ └── atlas
│ │ │ │ ├── bitmap
│ │ │ │ └── source
│ │ │ │ │ ├── IBitmapTextureAtlasSource.java
│ │ │ │ │ └── decorator
│ │ │ │ │ └── shape
│ │ │ │ │ └── IBitmapTextureAtlasSourceDecoratorShape.java
│ │ │ │ └── source
│ │ │ │ └── ITextureAtlasSource.java
│ │ ├── view
│ │ │ └── IRendererListener.java
│ │ ├── util
│ │ │ └── criteria
│ │ │ │ └── IGLCriteria.java
│ │ └── font
│ │ │ └── IFont.java
│ │ ├── input
│ │ ├── touch
│ │ │ └── controller
│ │ │ │ ├── ITouchEventCallback.java
│ │ │ │ └── ITouchController.java
│ │ └── sensor
│ │ │ ├── orientation
│ │ │ └── IOrientationListener.java
│ │ │ ├── acceleration
│ │ │ └── IAccelerationListener.java
│ │ │ └── location
│ │ │ └── ILocationListener.java
│ │ └── audio
│ │ ├── IAudioManager.java
│ │ ├── IAudioEntity.java
│ │ ├── music
│ │ └── MusicLibrary.java
│ │ └── sound
│ │ └── SoundLibrary.java
└── build.gradle
├── DaoGenerator
├── .gitignore
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── devahoy
│ │ └── learn30androidlibraries
│ │ └── daogenerator
│ │ └── MyDaoGenerator.java
└── build.gradle
├── libs
├── paralloid-git
│ ├── settings.gradle
│ ├── assets
│ │ ├── screen1.png
│ │ └── screen2.png
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── paralloidexample
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── ic_launcher-web.png
│ │ │ │ ├── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ │ ├── example_sky.jpg
│ │ │ │ │ ├── example_image.jpg
│ │ │ │ │ └── example_rainbow.jpg
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values-sw600dp
│ │ │ │ │ └── dimens.xml
│ │ │ │ ├── menu
│ │ │ │ │ └── home.xml
│ │ │ │ ├── values-sw720dp-land
│ │ │ │ │ └── dimens.xml
│ │ │ │ ├── layout
│ │ │ │ │ ├── fragment_parallax_list_background.xml
│ │ │ │ │ └── activity_home.xml
│ │ │ │ ├── drawable
│ │ │ │ │ ├── bg_gradient.xml
│ │ │ │ │ ├── bg_gradient_invert.xml
│ │ │ │ │ └── bg_gradient_with_middle.xml
│ │ │ │ ├── values
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values-v11
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-v14
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── java
│ │ │ │ └── uk
│ │ │ │ └── co
│ │ │ │ └── chrisjenx
│ │ │ │ └── paralloidexample
│ │ │ │ ├── ParallaxBackgroundFragment.java
│ │ │ │ ├── ShiftBackgroundFragment.java
│ │ │ │ ├── ParallaxViewRightFragment.java
│ │ │ │ └── ParallaxViewUpFragment.java
│ │ ├── keystore
│ │ │ └── paralloidkeystore.jks
│ │ └── build.gradle
│ ├── CHANGELOG.md
│ ├── paralloidviews
│ │ ├── src
│ │ │ └── main
│ │ │ │ └── AndroidManifest.xml
│ │ └── build.gradle
│ ├── paralloid
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── java
│ │ │ │ └── uk
│ │ │ │ │ └── co
│ │ │ │ │ └── chrisjenx
│ │ │ │ │ └── paralloid
│ │ │ │ │ ├── measure
│ │ │ │ │ ├── ScrollSize.java
│ │ │ │ │ └── ViewScrollSize.java
│ │ │ │ │ ├── OnScrollChangedListener.java
│ │ │ │ │ ├── transform
│ │ │ │ │ ├── Transformer.java
│ │ │ │ │ ├── InvertTransformer.java
│ │ │ │ │ ├── LinearTransformer.java
│ │ │ │ │ ├── LeftAngleTransformer.java
│ │ │ │ │ └── RightAngleTransformer.java
│ │ │ │ │ ├── ParallaxorListener.java
│ │ │ │ │ └── ParallaxViewInfo.java
│ │ │ │ └── AndroidManifest.xml
│ │ └── build.gradle
│ └── build.gradle
└── showcaseview
│ ├── example.png
│ ├── example2.png
│ ├── example@2x.png
│ ├── example2@2x.png
│ ├── library
│ ├── src
│ │ └── main
│ │ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── cling.png
│ │ │ │ ├── hand.png
│ │ │ │ ├── btn_cling_normal.9.png
│ │ │ │ └── btn_cling_pressed.9.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── cling.png
│ │ │ │ ├── hand.png
│ │ │ │ ├── btn_cling_normal.9.png
│ │ │ │ └── btn_cling_pressed.9.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── hand.png
│ │ │ │ ├── cling.png
│ │ │ │ ├── cling_bleached.png
│ │ │ │ ├── btn_cling_normal.9.png
│ │ │ │ └── btn_cling_pressed.9.png
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── ids.xml
│ │ │ │ └── dimens.xml
│ │ │ ├── drawable
│ │ │ │ ├── button.xml
│ │ │ │ ├── cling_button_bg.xml
│ │ │ │ └── button_normal.xml
│ │ │ └── layout
│ │ │ │ ├── showcase_button.xml
│ │ │ │ └── handy.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── github
│ │ │ └── amlcurran
│ │ │ └── showcaseview
│ │ │ ├── targets
│ │ │ ├── Target.java
│ │ │ ├── Reflector.java
│ │ │ └── PointTarget.java
│ │ │ ├── Calculator.java
│ │ │ ├── AnimationFactory.java
│ │ │ ├── ShowcaseDrawer.java
│ │ │ └── ApiUtils.java
│ ├── gradle.properties
│ ├── project.properties
│ └── build.gradle
│ ├── .gitignore
│ ├── settings.gradle
│ ├── build.gradle
│ └── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
├── 30-android-libraries-in-30-days.iml
├── gradle.properties
└── Learn30AndroidLibraries.iml
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/andEngine/src/main/res/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/DaoGenerator/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/libs/paralloid-git/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':paralloid', ':paralloidexample', ':paralloidviews'
--------------------------------------------------------------------------------
/app/libs/ActiveAndroid.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/libs/ActiveAndroid.jar
--------------------------------------------------------------------------------
/app/libs/GraphView-3.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/libs/GraphView-3.1.2.jar
--------------------------------------------------------------------------------
/libs/showcaseview/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/example.png
--------------------------------------------------------------------------------
/app/src/main/assets/player.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/assets/player.png
--------------------------------------------------------------------------------
/libs/showcaseview/example2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/example2.png
--------------------------------------------------------------------------------
/libs/showcaseview/example@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/example@2x.png
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/libs/showcaseview/example2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/example2@2x.png
--------------------------------------------------------------------------------
/app/src/main/assets/npc-oldman1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/assets/npc-oldman1.png
--------------------------------------------------------------------------------
/libs/paralloid-git/assets/screen1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/assets/screen1.png
--------------------------------------------------------------------------------
/libs/paralloid-git/assets/screen2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/assets/screen2.png
--------------------------------------------------------------------------------
/andEngine/src/main/jni/Application.mk:
--------------------------------------------------------------------------------
1 | # Build both ARMv5TE and ARMv7-A and x86 machine code.
2 | APP_ABI := armeabi armeabi-v7a x86
3 | APP_STL := gnustl_shared
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/devahoy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/devahoy.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/guitar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/guitar.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/nuuneoi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/nuuneoi.png
--------------------------------------------------------------------------------
/andEngine/src/main/jniLibs/x86/libandengine.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/andEngine/src/main/jniLibs/x86/libandengine.so
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/akexorcist.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/akexorcist.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/androidthai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/androidthai.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/martroutine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/martroutine.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/android4health.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/android4health.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/andEngine/src/main/jniLibs/armeabi/libandengine.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/andEngine/src/main/jniLibs/armeabi/libandengine.so
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/day2_example_sky.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/day2_example_sky.jpg
--------------------------------------------------------------------------------
/libs/paralloid-git/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/andEngine/src/main/jniLibs/armeabi-v7a/libandengine.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/andEngine/src/main/jniLibs/armeabi-v7a/libandengine.so
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/day2_example_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/day2_example_image.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/day2_example_rainbow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/app/src/main/res/drawable-hdpi/day2_example_rainbow.jpg
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-hdpi/cling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-hdpi/cling.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-hdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-hdpi/hand.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-mdpi/cling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-mdpi/cling.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-mdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-mdpi/hand.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-xhdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-xhdpi/hand.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-xhdpi/cling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-xhdpi/cling.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/keystore/paralloidkeystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/keystore/paralloidkeystore.jks
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-xhdpi/cling_bleached.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-xhdpi/cling_bleached.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/day15_actionbar_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-hdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-hdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-hdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-hdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-mdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-mdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-mdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-mdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-xhdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-xhdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable-xhdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/showcaseview/library/src/main/res/drawable-xhdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/libs/paralloid-git/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | ## 0.3.0
4 | - Added Concept of Transformers
5 |
6 | ## 0.2.0
7 | - API Change
8 | - Added the ability to scroll multiple backgrounds.
9 |
10 | ## 0.1.0
11 | Initial Release
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_sky.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_sky.jpg
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_image.jpg
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_rainbow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Phonbopit/30-android-libraries-in-30-days/master/libs/paralloid-git/paralloidexample/src/main/res/drawable-nodpi/example_rainbow.jpg
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day2_parallax_list_view.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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=http\://services.gradle.org/distributions/gradle-1.12-all.zip
7 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidviews/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/libs/paralloid-git/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Oct 20 22:09:45 BST 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day27_activity_adapter_kit.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/menu/home.xml:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/measure/ScrollSize.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.measure;
2 |
3 | /**
4 | * Created by chris on 23/10/2013
5 | * Project: Paralloid
6 | */
7 | public interface ScrollSize {
8 |
9 | int getMaxScrollX();
10 |
11 | int getMaxScrollY();
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 128dp
5 |
6 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/layout/fragment_parallax_list_background.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/OnScrollChangedListener.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid;
2 |
3 | /**
4 | * OnScrolled changed Listener for {@link android.view.View} and this alike to implement
5 | */
6 | public interface OnScrollChangedListener {
7 | void onScrollChanged(Object who, int l, int t, int oldl, int oldt);
8 | }
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/andEngine/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable/bg_gradient.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day13_activity_viewpager.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day5_activity_graphview.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable/bg_gradient_invert.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 172dp
7 | 16dp
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day3/ShotList.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day3;
2 |
3 | import java.util.List;
4 |
5 | public class ShotList {
6 |
7 | private List shots;
8 |
9 | public List getShots() {
10 | return shots;
11 | }
12 |
13 | public void setShots(List shots) {
14 | this.shots = shots;
15 | }
16 | }
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/Transformer.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.transform;
2 |
3 | /**
4 | * Created by chris on 23/10/2013
5 | * Project: Paralloid
6 | */
7 | public interface Transformer {
8 |
9 | /**
10 | * @return can not be null, otherwise scroll will fail
11 | */
12 | int[] scroll(float x, float y, float factor);
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day15_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day7/Players.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day7;
2 |
3 | import java.util.List;
4 |
5 | public class Players {
6 | private List players;
7 |
8 |
9 |
10 | public List getPlayers() {
11 | return players;
12 | }
13 |
14 | public void setPlayers(List players) {
15 | this.players = players;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day1_activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/InvertTransformer.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.transform;
2 |
3 | /**
4 | * Created by chris on 23/10/2013
5 | * Project: Paralloid
6 | */
7 | public class InvertTransformer implements Transformer {
8 | @Override
9 | public int[] scroll(float x, float y, float factor) {
10 | return new int[]{(int) -(x * factor), (int) -(y * factor)};
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/andEngine/src/main/jni/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := andengine_shared
6 | LOCAL_MODULE_FILENAME := libandengine
7 | LOCAL_CFLAGS := -Werror
8 | LOCAL_SRC_FILES := src/GLES20Fix.c \
9 | src/BufferUtils.cpp
10 | LOCAL_LDLIBS := -lGLESv2
11 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/src
12 |
13 | include $(BUILD_SHARED_LIBRARY)
14 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/LinearTransformer.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.transform;
2 |
3 | /**
4 | * Created by chris on 23/10/2013
5 | * Project: Paralloid
6 | */
7 | public class LinearTransformer implements Transformer {
8 |
9 | @Override
10 | public int[] scroll(float x, float y, float factor) {
11 | return new int[]{(int) (x * factor), (int) (y * factor)};
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/andEngine/src/main/jni/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | NDK_DIRECTORY="/Users/ngramlich/SDKs/Android/ndk/r7b/"
4 | PROJECT_DIRECTORY="/Users/ngramlich/Workspace/gdk/graphic_engines/AndEngine/AndEngine/"
5 |
6 | # Run build:
7 | pushd ${PROJECT_DIRECTORY}
8 | ${NDK_DIRECTORY}ndk-build
9 |
10 | # Clean temporary files:
11 | # rm -rf ${PROJECT_DIRECTORY}obj
12 | # find . -name gdbserver -print0 | xargs -0 rm -rf
13 | # find . -name gdb.setup -print0 | xargs -0 rm -rf
14 |
15 | popd
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/devahoy/learn30androidlibraries/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries;
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 | }
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/drawable/bg_gradient_with_middle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
10 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day4_activity_swipe_to_refresh.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/.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 |
26 | # InteliJ IDEA
27 | .idea/
28 |
29 | # Crashlytics
30 | crashlytics.properties
31 | com_crashlytics_export_strings.xml
32 | crashlytics-build.properties
--------------------------------------------------------------------------------
/app/src/main/res/layout/day23_activity_listview_animation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day3_activity_retrofit.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/LeftAngleTransformer.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.transform;
2 |
3 | /**
4 | * Put simply turns up into left, left into down, down into right, right into up.
5 | *
6 | * Created by chris on 23/10/2013
7 | * Project: Paralloid
8 | */
9 | public class LeftAngleTransformer implements Transformer {
10 |
11 | @Override
12 | public int[] scroll(float x, float y, float factor) {
13 | return new int[]{(int) (y * factor), (int) (x * factor)};
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':DaoGenerator'
2 | include ':libs:paralloid:paralloid'
3 | include ':libs:paralloid:paralloidviews'
4 | include ':libs:showcaseview:library'
5 |
6 | // Or one line
7 | // include ':app', ':libs:paralloid:paralloid', ':libs:paralloid:paralloidviews'
8 | /*
9 | project(':paralloidexample').projectDir = new File('libs/paralloid/paralloidexample')
10 | project(':paralloidviews').projectDir = new File('libs/paralloid/paralloidviews')
11 | project(':paralloid').projectDir = new File('libs/paralloid/paralloid')*/
12 | include ':andEngine'
13 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/transform/RightAngleTransformer.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.transform;
2 |
3 | /**
4 | * Put simply turns up into right, right into down, down into left, left into up.
5 | *
6 | * Created by chris on 23/10/2013
7 | * Project: Paralloid
8 | */
9 | public class RightAngleTransformer implements Transformer {
10 |
11 | @Override
12 | public int[] scroll(float x, float y, float factor) {
13 | return new int[]{(int) -(y * factor), (int) -(x * factor)};
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 | dependencies {
6 | classpath 'com.android.tools.build:gradle:0.12.2'
7 | }
8 | }
9 | apply plugin: 'com.android.library'
10 |
11 | repositories {
12 | mavenCentral()
13 | }
14 |
15 | android {
16 | compileSdkVersion 19
17 | buildToolsVersion "20.0.0"
18 |
19 | defaultConfig {
20 | minSdkVersion 7
21 | targetSdkVersion 19
22 | }
23 | }
24 |
25 | dependencies {
26 | compile "com.android.support:support-v4:20.0.+"
27 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eazegraph.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
13 |
14 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/bounds/IBounds.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.bounds;
2 |
3 | /**
4 | * (c) Zynga 2011
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 7:45:19 AM - Oct 10, 2011
8 | */
9 | public interface IBounds {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 | }
18 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day21/AAApplication.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day21;
2 |
3 | import android.app.Application;
4 |
5 | import com.activeandroid.ActiveAndroid;
6 |
7 | /**
8 | * AA stand for ActiveAndroid
9 | */
10 | public class AAApplication extends Application {
11 |
12 | @Override
13 | public void onCreate() {
14 | super.onCreate();
15 | ActiveAndroid.initialize(this);
16 | }
17 |
18 | @Override
19 | public void onTerminate() {
20 | super.onTerminate();
21 | ActiveAndroid.dispose();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/ParallaxorListener.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid;
2 |
3 | /**
4 | * Created by chris on 20/10/2013
5 | * Project: Paralloid
6 | */
7 | public interface ParallaxorListener extends Parallaxor, OnScrollChangedListener {
8 |
9 | /**
10 | * Add a scroll listener you can listen too if you want to do something custom your end as well.
11 | *
12 | * @param onScrollChangedListener Null is valid (it will remove it if set).
13 | */
14 | public void setOnScrollListener(OnScrollChangedListener onScrollChangedListener);
15 | }
16 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/ISortedList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 |
4 | /**
5 | * (c) Zynga 2012
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 15:37:19 - 01.02.2012
9 | */
10 | public interface ISortedList extends IList {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 | }
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/IUniqueList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 |
4 | /**
5 | * (c) Zynga 2012
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 15:37:19 - 01.02.2012
9 | */
10 | public interface IUniqueList extends IList {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 | }
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/jni/src/BufferUtils.h:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | extern "C" {
4 | // ===========================================================
5 | // org.andengine.opengl.util.BufferUtils
6 | // ===========================================================
7 |
8 | JNIEXPORT void JNICALL Java_org_andengine_opengl_util_BufferUtils_jniPut(JNIEnv *, jclass, jobject, jfloatArray, jint, jint);
9 | JNIEXPORT jobject JNICALL Java_org_andengine_opengl_util_BufferUtils_jniAllocateDirect(JNIEnv *, jclass, jint);
10 | JNIEXPORT void JNICALL Java_org_andengine_opengl_util_BufferUtils_jniFreeDirect(JNIEnv *, jclass, jobject);
11 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day3/SimpleRetrofit.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day3;
2 |
3 | import retrofit.Callback;
4 | import retrofit.http.GET;
5 | import retrofit.http.Path;
6 |
7 | public interface SimpleRetrofit {
8 |
9 | @GET("/shots/21603")
10 | Shot getShot();
11 |
12 | @GET("/shots/{id}")
13 | Shot getShotById(@Path("id") int id);
14 |
15 | @GET("/shots/{id}")
16 | void getShotByIdWithCallback(@Path("id") int id, Callback callback);
17 |
18 | @GET("/shots/popular")
19 | void getShotsByPopular(Callback callback);
20 | }
21 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day17/Website.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day17;
2 |
3 | public class Website {
4 | String title;
5 | String url;
6 | int imageResourceId;
7 |
8 | public Website(String title, String url, int imgId) {
9 | this.title = title;
10 | this.url = url;
11 | this.imageResourceId = imgId;
12 | }
13 |
14 | public String getTitle() {
15 | return title;
16 | }
17 | public String getUrl() {
18 | return url;
19 | }
20 | public int getImageResourceId() {
21 | return imageResourceId;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidviews/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 | dependencies {
6 | classpath 'com.android.tools.build:gradle:0.12.2'
7 | }
8 | }
9 | apply plugin: 'com.android.library'
10 |
11 | repositories {
12 | mavenCentral()
13 | }
14 |
15 | android {
16 | compileSdkVersion 19
17 | buildToolsVersion "20.0.0"
18 |
19 | defaultConfig {
20 | minSdkVersion 11
21 | targetSdkVersion 19
22 | }
23 | }
24 |
25 | dependencies {
26 | compile 'com.android.support:support-v4:20.0.0'
27 | compile project(':libs:paralloid:paralloid')
28 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/IMatcher.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 12:32:22 - 26.12.2010
9 | */
10 | public interface IMatcher {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public boolean matches(final T pObject);
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day20_activity_view_animation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
15 |
16 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/call/Callback.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.call;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 09:40:55 - 14.12.2009
9 | */
10 | public interface Callback {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void onCallback(final T pCallbackValue);
20 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day1_list_item_simple.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/IEntityComparator.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity;
2 |
3 | import java.util.Comparator;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 14:02:56 - 10.04.2012
10 | */
11 | public interface IEntityComparator extends Comparator {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 | }
20 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/call/ParameterCallable.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.call;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 23:40:42 - 27.12.2010
9 | */
10 | public interface ParameterCallable {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void call(final T pParameter);
20 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/IEntityFactory.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity;
2 |
3 |
4 | /**
5 | * (c) Zynga 2011
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 20:04:41 - 19.11.2011
9 | */
10 | public interface IEntityFactory {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public T create(final float pX, final float pY);
20 | }
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/vbo/IUncoloredSpriteVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.vbo;
2 |
3 |
4 | /**
5 | * (c) Zynga 2012
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 18:37:49 - 28.03.2012
9 | */
10 | public interface IUncoloredSpriteVertexBufferObject extends ISpriteVertexBufferObject {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day13_fragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
16 |
17 |
--------------------------------------------------------------------------------
/libs/showcaseview/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 | gen/
14 | lib/
15 | target/
16 | out/
17 | sample/gen-external-apklibs
18 |
19 | # Local configuration file (sdk path, etc)
20 | local.properties
21 |
22 | # Eclipse project files
23 | .classpath
24 | .project
25 |
26 | # Os specific files
27 | .DS_Store
28 |
29 | # IntelliJ project files
30 | *.iml
31 | *.ipr
32 | *.iws
33 | .idea/i
34 | .idea/
35 |
36 | # Maven Files
37 | pom.xml.*
38 | settings.xml
39 |
40 | # Gradle
41 | .gradle
42 | build
43 |
44 | library/coverage-error.log
45 |
--------------------------------------------------------------------------------
/andEngine/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 16
5 | buildToolsVersion "19.1.0"
6 |
7 | defaultConfig {
8 | applicationId "org.andengine"
9 | minSdkVersion 8
10 | targetSdkVersion 8
11 |
12 | ndk {
13 | moduleName "andengine_shared"
14 | }
15 | }
16 |
17 | sourceSets {
18 | main {
19 | jni.srcDirs = []
20 | }
21 | }
22 |
23 | buildTypes {
24 | release {
25 | runProguard false
26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/vbo/IDiamondSpriteVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.vbo;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 18:43:22 - 28.03.2012
8 | */
9 | public interface IDiamondSpriteVertexBufferObject extends ISpriteVertexBufferObject {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/vbo/IUniformColorSpriteVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.vbo;
2 |
3 |
4 | /**
5 | * (c) Zynga 2012
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 18:35:57 - 28.03.2012
9 | */
10 | public interface IUniformColorSpriteVertexBufferObject extends ISpriteVertexBufferObject {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day8_activity_crashlytics.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day6_activity_holo_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/queue/ISortedQueue.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.queue;
2 |
3 | import org.andengine.util.adt.list.ISortedList;
4 |
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 15:37:19 - 01.02.2012
11 | */
12 | public interface ISortedQueue extends IQueue, ISortedList {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 | }
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/queue/IUniqueQueue.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.queue;
2 |
3 | import org.andengine.util.adt.list.ISortedList;
4 |
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 15:37:19 - 01.02.2012
11 | */
12 | public interface IUniqueQueue extends IQueue, ISortedList {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 | }
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/engine/handler/timer/ITimerCallback.java:
--------------------------------------------------------------------------------
1 | package org.andengine.engine.handler.timer;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 16:23:25 - 12.03.2010
9 | */
10 | public interface ITimerCallback {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void onTimePassed(final TimerHandler pTimerHandler);
20 | }
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/color/constants/ColorConstants.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.color.constants;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 10:21:46 - 19.07.2010
9 | */
10 | public interface ColorConstants {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | public static final float COLOR_FACTOR_INT_TO_FLOAT = 255.0f;
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 | }
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/spatial/ISpatialItem.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.spatial;
2 |
3 | import org.andengine.util.adt.bounds.IBounds;
4 |
5 |
6 | /**
7 | * (c) Zynga 2011
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 20:23:12 - 07.10.2011
11 | */
12 | public interface ISpatialItem {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public B getBounds();
22 | }
23 |
--------------------------------------------------------------------------------
/andEngine/src/main/jni/src/GLES20Fix.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | // ===========================================================
5 | // org.andengine.opengl.GLES20Fix
6 | // ===========================================================
7 |
8 | void Java_org_andengine_opengl_GLES20Fix_glVertexAttribPointer (JNIEnv *env, jclass c, jint index, jint size, jint type, jboolean normalized, jint stride, jint offset) {
9 | glVertexAttribPointer(index, size, type, normalized, stride, (void*) offset);
10 | }
11 |
12 | void Java_org_andengine_opengl_GLES20Fix_glDrawElements (JNIEnv *env, jclass c, jint mode, jint count, jint type, jint offset) {
13 | glDrawElements(mode, count, type, (void*) offset);
14 | }
--------------------------------------------------------------------------------
/libs/showcaseview/settings.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | include ':library', ':sample'
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/algorithm/path/IPathFinderMap.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.algorithm.path;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 23:00:24 - 16.08.2010
10 | */
11 | public interface IPathFinderMap {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Fields
18 | // ===========================================================
19 |
20 | public boolean isBlocked(final int pX, final int pY, final T pEntity);
21 | }
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/IEntityMatcher.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity;
2 |
3 | import org.andengine.util.IMatcher;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 20:06:28 - 26.03.2012
10 | */
11 | public interface IEntityMatcher extends IMatcher {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | @Override
21 | public boolean matches(final IEntity pEntity);
22 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/shader/source/IShaderSource.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.shader.source;
2 |
3 | import org.andengine.opengl.util.GLState;
4 |
5 | /**
6 | * (c) Zynga 2011
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 16:24:57 - 10.10.2011
10 | */
11 | public interface IShaderSource {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public String getShaderSource(final GLState pGLState);
21 | }
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/bounds/IIntBounds.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.bounds;
2 |
3 | /**
4 | * (c) Zynga 2011
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 7:42:02 AM - Oct 10, 2011
8 | */
9 | public interface IIntBounds extends IBounds {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public int getXMin();
19 | public int getYMin();
20 | public int getXMax();
21 | public int getYMax();
22 | }
23 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/modifier/ease/IEaseFunction.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.modifier.ease;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Gil
8 | * @author Nicolas Gramlich
9 | * @since 17:13:17 - 26.07.2010
10 | */
11 | public interface IEaseFunction {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public float getPercentage(final float pSecondsElapsed, final float pDuration);
21 | }
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/bounds/IFloatBounds.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.bounds;
2 |
3 | /**
4 | * (c) Zynga 2011
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 7:42:02 AM - Oct 10, 2011
8 | */
9 | public interface IFloatBounds extends IBounds {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public float getXMin();
19 | public float getYMin();
20 | public float getXMax();
21 | public float getYMax();
22 | }
23 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/io/in/IInputStreamOpener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.io.in;
2 |
3 | import java.io.IOException;
4 | import java.io.InputStream;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 11:54:25 - 02.03.2012
11 | */
12 | public interface IInputStreamOpener {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public InputStream open() throws IOException;
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/texture/ITextureStateListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.texture;
2 |
3 |
4 | /**
5 | * (c) Zynga 2012
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 11:25:58 - 05.04.2012
9 | */
10 | public interface ITextureStateListener {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void onLoadedToHardware(final ITexture pTexture);
20 | public void onUnloadedFromHardware(final ITexture pTexture);
21 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/input/touch/controller/ITouchEventCallback.java:
--------------------------------------------------------------------------------
1 | package org.andengine.input.touch.controller;
2 |
3 | import org.andengine.input.touch.TouchEvent;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 16:44:26 - 04.04.2012
10 | */
11 | public interface ITouchEventCallback {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public boolean onTouchEvent(final TouchEvent pTouchEvent);
21 | }
22 |
--------------------------------------------------------------------------------
/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/phonbopit/Programs/android-studio/sdk/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 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/Constants.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 13:52:21 - 08.03.2010
9 | */
10 | public interface Constants {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | public static final String DEBUGTAG = "AndEngine";
16 |
17 | public static final int VERTEX_INDEX_X = 0;
18 | public static final int VERTEX_INDEX_Y = 1;
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 | }
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day7_activity_async.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
12 |
13 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/gradle.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2014 Alex Curran
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | POM_NAME=ShowcaseView library
18 | POM_ARTIFACT_ID=library
19 | POM_PACKAGING=aar
--------------------------------------------------------------------------------
/DaoGenerator/src/main/java/com/devahoy/learn30androidlibraries/daogenerator/MyDaoGenerator.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.daogenerator;
2 |
3 | import de.greenrobot.daogenerator.DaoGenerator;
4 | import de.greenrobot.daogenerator.Entity;
5 | import de.greenrobot.daogenerator.Schema;
6 |
7 | public class MyDaoGenerator {
8 |
9 | public static void main(String[] args) throws Exception {
10 | Schema schema = new Schema(1, "com.devahoy.learn30androidlibraries");
11 | Entity player = schema.addEntity("Player");
12 |
13 | player.addIdProperty();
14 | player.addStringProperty("name");
15 | player.addStringProperty("club");
16 |
17 | new DaoGenerator().generateAll(schema, args[0]);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/IEntityParameterCallable.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity;
2 |
3 | import org.andengine.util.call.ParameterCallable;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 20:06:53 - 26.03.2012
10 | */
11 | public interface IEntityParameterCallable extends ParameterCallable {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | @Override
21 | public void call(final IEntity pEntity);
22 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/level/IEntityLoader.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.level;
2 |
3 | import org.andengine.entity.IEntity;
4 | import org.xml.sax.Attributes;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 18:38:40 - 18.04.2012
11 | */
12 | public interface IEntityLoader {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public IEntity onLoadEntity(final String pEntityName, final Attributes pAttributes);
22 | }
--------------------------------------------------------------------------------
/DaoGenerator/build.gradle:
--------------------------------------------------------------------------------
1 | /*apply plugin: 'java'
2 |
3 | dependencies {
4 | compile fileTree(dir: 'libs', include: ['*.jar'])
5 | compile('de.greenrobot:DaoGenerator:1.3.0')
6 | }
7 | */
8 |
9 | project(':DaoGenerator') {
10 | apply plugin: 'application'
11 | apply plugin: 'java'
12 |
13 | mainClassName = "com.devahoy.learn30androidlibraries.daogenerator.MyDaoGenerator"
14 | outputDir = "../app/src/main/java-gen"
15 |
16 | dependencies {
17 | compile fileTree(dir: 'libs', include: ['*.jar'])
18 | compile('de.greenrobot:DaoGenerator:1.3.0')
19 | }
20 |
21 | task createDocs {
22 | def docs = file(outputDir)
23 | docs.mkdirs()
24 | }
25 |
26 | run {
27 | args outputDir
28 | }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day21/AAHelper.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day21;
2 |
3 | import com.activeandroid.query.Select;
4 |
5 | import java.util.List;
6 |
7 | /**
8 | * AA stand for ActiveAndroid :D
9 | * This class use for helper method ex. create, read, update, delete.
10 | */
11 | public class AAHelper {
12 |
13 | public static List findBooks() {
14 | return new Select()
15 | .from(Book.class)
16 | .execute();
17 | }
18 |
19 | public static Book findBookById(long id) {
20 | return new Select()
21 | .from(Book.class)
22 | .where("id = ?", String.valueOf(id))
23 | .executeSingle();
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day25_fragment_bar_chart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
18 |
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/algorithm/path/ICostFunction.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.algorithm.path;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 23:00:24 - 16.08.2010
9 | */
10 | public interface ICostFunction {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Fields
17 | // ===========================================================
18 |
19 | public float getCost(final IPathFinderMap pPathFinderMap, final int pFromX, final int pFromY, final int pToX, final int pToY, final T pEntity);
20 | }
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day25_fragment_pie_chart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
18 |
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/particle/emitter/IParticleEmitter.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.particle.emitter;
2 |
3 | import org.andengine.engine.handler.IUpdateHandler;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 15:48:09 - 01.10.2010
11 | */
12 | public interface IParticleEmitter extends IUpdateHandler {
13 | // ===========================================================
14 | // Final Fields
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void getPositionOffset(final float[] pOffset);
22 | }
23 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/engine/handler/IDrawHandler.java:
--------------------------------------------------------------------------------
1 | package org.andengine.engine.handler;
2 |
3 | import org.andengine.engine.camera.Camera;
4 | import org.andengine.opengl.util.GLState;
5 |
6 |
7 | /**
8 | * (c) 2010 Nicolas Gramlich
9 | * (c) 2011 Zynga Inc.
10 | *
11 | * @author Nicolas Gramlich
12 | * @since 10:50:58 - 08.08.2010
13 | */
14 | public interface IDrawHandler {
15 | // ===========================================================
16 | // Constants
17 | // ===========================================================
18 |
19 | // ===========================================================
20 | // Methods
21 | // ===========================================================
22 |
23 | public void onDraw(final GLState pGLState, final Camera pCamera);
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day27_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
20 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/scene/menu/item/IMenuItem.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.scene.menu.item;
2 |
3 | import org.andengine.entity.shape.IAreaShape;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 13:27:16 - 07.07.2010
11 | */
12 | public interface IMenuItem extends IAreaShape {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public int getID();
22 | public abstract void onSelected();
23 | public abstract void onUnselected();
24 | }
25 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/input/sensor/orientation/IOrientationListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.input.sensor.orientation;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 11:30:42 - 25.05.2010
9 | */
10 | public interface IOrientationListener {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void onOrientationAccuracyChanged(final OrientationData pOrientationData);
20 | public void onOrientationChanged(final OrientationData pOrientationData);
21 | }
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/view/IRendererListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.view;
2 |
3 | import org.andengine.opengl.util.GLState;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 11:57:29 - 08.03.2010
11 | */
12 | public interface IRendererListener {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | public void onSurfaceCreated(final GLState pGlState);
18 | public void onSurfaceChanged(final GLState pGlState, final int pWidth, final int pHeight);
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day14_activity_viewpager_line.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day14_activity_viewpager_titlepage.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/input/sensor/acceleration/IAccelerationListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.input.sensor.acceleration;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 16:58:38 - 10.03.2010
9 | */
10 | public interface IAccelerationListener {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void onAccelerationAccuracyChanged(final AccelerationData pAccelerationData);
20 | public void onAccelerationChanged(final AccelerationData pAccelerationData);
21 | }
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/call/Callable.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.call;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 20:52:44 - 03.01.2010
9 | */
10 | public interface Callable {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | /**
20 | * Computes a result, or throws an exception if unable to do so.
21 | *
22 | * @return the computed result.
23 | * @throws Exception if unable to compute a result.
24 | */
25 | public T call() throws Exception;
26 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/queue/IQueue.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.queue;
2 |
3 | import org.andengine.util.adt.list.IList;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 15:00:30 - 24.01.2012
10 | */
11 | public interface IQueue extends IList {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public T peek();
21 | public T poll();
22 | public void enter(final T pItem);
23 | public void enter(final int pIndex, final T pItem) throws IndexOutOfBoundsException;
24 | }
25 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | OK
20 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/particle/initializer/IParticleInitializer.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.particle.initializer;
2 |
3 | import org.andengine.entity.IEntity;
4 | import org.andengine.entity.particle.Particle;
5 |
6 | /**
7 | * (c) 2010 Nicolas Gramlich
8 | * (c) 2011 Zynga Inc.
9 | *
10 | * @author Nicolas Gramlich
11 | * @since 10:12:09 - 29.06.2010
12 | */
13 | public interface IParticleInitializer {
14 | // ===========================================================
15 | // Final Fields
16 | // ===========================================================
17 |
18 | // ===========================================================
19 | // Methods
20 | // ===========================================================
21 |
22 | public void onInitializeParticle(final Particle pParticle);
23 | }
24 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/progress/IProgressListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.progress;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 18:07:35 - 09.07.2009
10 | */
11 | public interface IProgressListener {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | public static final int PROGRESS_MIN = 0;
17 | public static final int PROGRESS_MAX = 100;
18 |
19 | // ===========================================================
20 | // Methods
21 | // ===========================================================
22 |
23 | /**
24 | * @param pProgress between 0 and 100.
25 | */
26 | public void onProgressChanged(final int pProgress);
27 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/engine/options/resolutionpolicy/IResolutionPolicy.java:
--------------------------------------------------------------------------------
1 | package org.andengine.engine.options.resolutionpolicy;
2 |
3 | import org.andengine.opengl.view.RenderSurfaceView;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 11:02:35 - 29.03.2010
11 | */
12 | public interface IResolutionPolicy {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void onMeasure(final RenderSurfaceView pRenderSurfaceView, final int pWidthMeasureSpec, final int pHeightMeasureSpec);
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day27/Player.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day27;
2 |
3 | import com.devahoy.learn30androidlibraries.R;
4 | import com.mobsandgeeks.adapters.InstantText;
5 |
6 | public class Player {
7 |
8 | public Player(String name, String club) {
9 | setName(name);
10 | setClub(club);
11 | }
12 | private String name;
13 | private String club;
14 |
15 | @InstantText(viewId = R.id.name)
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | @InstantText(viewId = R.id.club)
25 | public String getClub() {
26 | return club;
27 | }
28 |
29 | public void setClub(String club) {
30 | this.club = club;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/measure/ViewScrollSize.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid.measure;
2 |
3 | import android.view.View;
4 |
5 | /**
6 | * Created by chris on 23/10/2013
7 | * Project: Paralloid
8 | */
9 |
10 | public class ViewScrollSize implements ScrollSize {
11 |
12 | final T viewToSize;
13 |
14 | public ViewScrollSize(T viewToSize) {
15 | this.viewToSize = viewToSize;
16 | }
17 |
18 | /**
19 | * Default impl returns the View width
20 | */
21 | @Override
22 | public int getMaxScrollX() {
23 | return viewToSize.getWidth();
24 | }
25 |
26 | /**
27 | * Default impl returns the View height
28 | */
29 | @Override
30 | public int getMaxScrollY() {
31 | return viewToSize.getHeight();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/audio/IAudioManager.java:
--------------------------------------------------------------------------------
1 | package org.andengine.audio;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 15:02:06 - 13.06.2010
9 | */
10 | public interface IAudioManager {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public float getMasterVolume();
20 | public void setMasterVolume(final float pMasterVolume);
21 |
22 | public void add(final T pAudioEntity);
23 | public boolean remove(final T pAudioEntity);
24 |
25 | public void releaseAll();
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day16_activity_autofit.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
21 |
22 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/primitive/vbo/ILineVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.primitive.vbo;
2 |
3 | import org.andengine.entity.primitive.Line;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 18:45:00 - 28.03.2012
11 | */
12 | public interface ILineVertexBufferObject extends IVertexBufferObject {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void onUpdateColor(final Line pLine);
22 | public void onUpdateVertices(final Line pLine);
23 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/text/vbo/ITextVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.text.vbo;
2 |
3 | import org.andengine.entity.text.Text;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | *
8 | * (c) Zynga 2012
9 | *
10 | * @author Nicolas Gramlich
11 | * @since 12:38:05 - 29.03.2012
12 | */
13 | public interface ITextVertexBufferObject extends IVertexBufferObject {
14 | // ===========================================================
15 | // Constants
16 | // ===========================================================
17 |
18 | // ===========================================================
19 | // Methods
20 | // ===========================================================
21 |
22 | public void onUpdateColor(final Text pText);
23 | public void onUpdateVertices(final Text pText);
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/algorithm/path/astar/IAStarHeuristic.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.algorithm.path.astar;
2 |
3 | import org.andengine.util.algorithm.path.IPathFinderMap;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 22:59:20 - 16.08.2010
11 | */
12 | public interface IAStarHeuristic {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Fields
19 | // ===========================================================
20 |
21 | public float getExpectedRestCost(final IPathFinderMap pPathFinderMap, final T pEntity, final int pFromX, final int pFromY, final int pToX, final int pToY);
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day25_fragment_line_chart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
20 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/util/criteria/IGLCriteria.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.util.criteria;
2 |
3 | import org.andengine.opengl.util.GLState;
4 |
5 | /**
6 | * (c) Zynga 2011
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 16:43:34 - 10.10.2011
10 | */
11 | public interface IGLCriteria {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Fields
18 | // ===========================================================
19 |
20 | public boolean isMet(final GLState pGLState);
21 |
22 | // ===========================================================
23 | // Inner and Anonymous Classes
24 | // ===========================================================
25 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/math/MathConstants.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.math;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 16:49:25 - 26.07.2010
9 | */
10 | public interface MathConstants {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | public static final float PI = (float) Math.PI;
16 |
17 | public static float PI_TWICE = PI * 2.0f;
18 | public static float PI_HALF = PI * 0.5f;
19 |
20 | public static final float DEG_TO_RAD = PI / 180.0f;
21 | public static final float RAD_TO_DEG = 180.0f / PI;
22 |
23 | // ===========================================================
24 | // Methods
25 | // ===========================================================
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day14_activity_viewpager_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/primitive/vbo/IRectangleVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.primitive.vbo;
2 |
3 | import org.andengine.entity.primitive.Rectangle;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 18:48:14 - 28.03.2012
11 | */
12 | public interface IRectangleVertexBufferObject extends IVertexBufferObject {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void onUpdateColor(final Rectangle pRectangle);
22 | public void onUpdateVertices(final Rectangle pRectangle);
23 | }
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/primitive/vbo/IMeshVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.primitive.vbo;
2 |
3 | import org.andengine.entity.primitive.Mesh;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 18:46:51 - 28.03.2012
11 | */
12 | public interface IMeshVertexBufferObject extends IVertexBufferObject {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public float[] getBufferData();
22 | public void onUpdateColor(final Mesh pMesh);
23 | public void onUpdateVertices(final Mesh pMesh);
24 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day26/MyCard.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day26;
2 |
3 | import android.content.Context;
4 | import android.view.View;
5 | import android.view.ViewGroup;
6 | import android.widget.TextView;
7 |
8 | import com.devahoy.learn30androidlibraries.R;
9 |
10 | import it.gmariotti.cardslib.library.internal.Card;
11 |
12 |
13 | public class MyCard extends Card {
14 |
15 | public MyCard(Context context) {
16 | super(context, R.layout.day26_list_item_cards);
17 | }
18 |
19 | public MyCard(Context context, int innerLayout) {
20 | super(context, innerLayout);
21 | }
22 |
23 | @Override
24 | public void setupInnerViewElements(ViewGroup parent, View view) {
25 |
26 | TextView title = (TextView) view.findViewById(R.id.title);
27 | title.setText("Lorem ipsum, This is a book!!");
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable/button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day2/ParallaxBackgroundActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day2;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 |
6 | import com.devahoy.learn30androidlibraries.R;
7 |
8 | import uk.co.chrisjenx.paralloid.views.ParallaxScrollView;
9 |
10 | /**
11 | * Created by phonbopit on 7/10/14.
12 | */
13 | public class ParallaxBackgroundActivity extends ActionBarActivity {
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.day2_parallax_background);
19 | ParallaxScrollView scrollView = (ParallaxScrollView) findViewById(R.id.scroll_view);
20 | scrollView.parallaxViewBackgroundBy(scrollView, getResources().getDrawable(R.drawable.day2_example_image), .2f);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/progress/ProgressCallable.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.progress;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 20:52:44 - 03.01.2010
10 | */
11 | public interface ProgressCallable {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | /**
21 | * Computes a result, or throws an exception if unable to do so.
22 | * @param pProgressListener
23 | * @return computed result
24 | * @throws Exception if unable to compute a result
25 | */
26 | public T call(final IProgressListener pProgressListener) throws Exception;
27 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/shape/IAreaShape.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.shape;
2 |
3 |
4 | /**
5 | * (c) Zynga 2011
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 19:01:16 - 07.08.2011
9 | */
10 | public interface IAreaShape extends IShape {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public float getWidth();
20 | public float getHeight();
21 |
22 | public float getWidthScaled();
23 | public float getHeightScaled();
24 |
25 | public void setHeight(final float pHeight);
26 | public void setWidth(final float pWidth);
27 | public void setSize(final float pWidth, final float pHeight);
28 | }
29 |
--------------------------------------------------------------------------------
/30-android-libraries-in-30-days.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/font/IFont.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.font;
2 |
3 | import org.andengine.opengl.font.exception.LetterNotFoundException;
4 | import org.andengine.opengl.texture.ITexture;
5 |
6 | /**
7 | * (c) Zynga 2011
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 12:15:25 - 03.11.2011
11 | */
12 | public interface IFont {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void load();
22 | public void unload();
23 |
24 | public ITexture getTexture();
25 |
26 | public float getLineHeight();
27 |
28 | public Letter getLetter(final char pChar) throws LetterNotFoundException;
29 | }
30 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Settings specified in this file will override any Gradle settings
5 | # configured through the IDE.
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
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day17_activity_swipe_listview.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
20 |
21 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/particle/modifier/IParticleModifier.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.particle.modifier;
2 |
3 | import org.andengine.entity.IEntity;
4 | import org.andengine.entity.particle.Particle;
5 | import org.andengine.entity.particle.initializer.IParticleInitializer;
6 |
7 | /**
8 | * (c) 2010 Nicolas Gramlich
9 | * (c) 2011 Zynga Inc.
10 | *
11 | * @author Nicolas Gramlich
12 | * @since 20:06:05 - 14.03.2010
13 | */
14 | public interface IParticleModifier extends IParticleInitializer {
15 | // ===========================================================
16 | // Final Fields
17 | // ===========================================================
18 |
19 | // ===========================================================
20 | // Methods
21 | // ===========================================================
22 |
23 | public void onUpdateParticle(final Particle pParticle);
24 | }
25 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/vbo/ITiledSpriteVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.vbo;
2 |
3 | import org.andengine.entity.sprite.TiledSprite;
4 |
5 | /**
6 | * (c) Zynga 2012
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 18:39:06 - 28.03.2012
10 | */
11 | public interface ITiledSpriteVertexBufferObject extends ISpriteVertexBufferObject {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public void onUpdateColor(final TiledSprite pTiledSprite);
21 | public void onUpdateVertices(final TiledSprite pTiledSprite);
22 | public void onUpdateTextureCoordinates(final TiledSprite pTiledSprite);
23 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day15/FadingActionBarActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day15;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 |
6 | import com.devahoy.learn30androidlibraries.R;
7 | import com.manuelpeinado.fadingactionbar.FadingActionBarHelper;
8 |
9 | public class FadingActionBarActivity extends ActionBarActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 |
15 | FadingActionBarHelper helper = new FadingActionBarHelper();
16 | helper.actionBarBackground(R.drawable.day15_actionbar_bg);
17 | helper.headerLayout(R.layout.day15_header);
18 | helper.contentLayout(R.layout.day15_activity_scrollview);
19 |
20 | setContentView(helper.createView(this));
21 | helper.initActionBar(this);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Learn30AndroidLibraries.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/vbo/ISpriteVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.vbo;
2 |
3 | import org.andengine.entity.sprite.Sprite;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 18:40:47 - 28.03.2012
11 | */
12 | public interface ISpriteVertexBufferObject extends IVertexBufferObject {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void onUpdateColor(final Sprite pSprite);
22 | public void onUpdateVertices(final Sprite pSprite);
23 | public void onUpdateTextureCoordinates(final Sprite pSprite);
24 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day21/Book.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day21;
2 |
3 | import com.activeandroid.Model;
4 | import com.activeandroid.annotation.Column;
5 | import com.activeandroid.annotation.Table;
6 |
7 | @Table(name = "Book")
8 | public class Book extends Model{
9 |
10 | public Book() {
11 | super();
12 | }
13 | public Book(String title, String author, String publisher, String date) {
14 | super();
15 | this.title = title;
16 | this.author = author;
17 | this.publisher = publisher;
18 | this.releaseDate = date;
19 | }
20 |
21 | @Column(name = "title")
22 | public String title;
23 |
24 | @Column(name = "author")
25 | public String author;
26 |
27 | @Column(name = "publisher")
28 | public String publisher;
29 |
30 | @Column(name = "release_date")
31 | public String releaseDate;
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day26_activity_cards.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day27_list_item2.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
20 |
21 |
25 |
26 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloid/src/main/java/uk/co/chrisjenx/paralloid/ParallaxViewInfo.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloid;
2 |
3 | import uk.co.chrisjenx.paralloid.transform.LinearTransformer;
4 | import uk.co.chrisjenx.paralloid.transform.Transformer;
5 |
6 | class ParallaxViewInfo {
7 |
8 | final float factor;
9 | final Transformer interpolator;
10 |
11 | private int maxX;
12 | private int maxY;
13 |
14 | ParallaxViewInfo(float factor, Transformer transformer) {
15 | this.factor = factor;
16 | this.interpolator = transformer == null ? new LinearTransformer() : transformer;
17 | }
18 |
19 | public int getMaxX() {
20 | return maxX;
21 | }
22 |
23 | public void setMaxX(int maxX) {
24 | this.maxX = maxX;
25 | }
26 |
27 | public int getMaxY() {
28 | return maxY;
29 | }
30 |
31 | public void setMaxY(int maxY) {
32 | this.maxY = maxY;
33 | }
34 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day6_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
18 |
19 |
23 |
24 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/layout/showcase_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/engine/handler/collision/ICollisionCallback.java:
--------------------------------------------------------------------------------
1 | package org.andengine.engine.handler.collision;
2 |
3 | import org.andengine.entity.shape.IShape;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 12:05:39 - 11.03.2010
11 | */
12 | public interface ICollisionCallback {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | /**
22 | * @param pCheckShape
23 | * @param pTargetShape
24 | * @return true to proceed, false to stop further collosion-checks.
25 | */
26 | public boolean onCollision(final IShape pCheckShape, final IShape pTargetShape);
27 | }
28 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/level/constants/LevelConstants.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.level.constants;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 14:23:27 - 11.10.2010
10 | */
11 | public interface LevelConstants {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | public static final String TAG_LEVEL = "level";
17 | public static final String TAG_LEVEL_ATTRIBUTE_NAME = "name";
18 | public static final String TAG_LEVEL_ATTRIBUTE_UID = "uid";
19 | public static final String TAG_LEVEL_ATTRIBUTE_WIDTH = "width";
20 | public static final String TAG_LEVEL_ATTRIBUTE_HEIGHT = "height";
21 |
22 | // ===========================================================
23 | // Methods
24 | // ===========================================================
25 | }
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day15_activity_scrollview.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
21 |
22 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/layout/activity_home.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/libs/showcaseview/build.gradle:
--------------------------------------------------------------------------------
1 | def isReleaseBuild() {
2 | return version.contains("SNAPSHOT") == false
3 | }
4 |
5 | /*
6 | * Copyright 2014 Alex Curran
7 | *
8 | * Licensed under the Apache License, Version 2.0 (the "License");
9 | * you may not use this file except in compliance with the License.
10 | * You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing, software
15 | * distributed under the License is distributed on an "AS IS" BASIS,
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | * See the License for the specific language governing permissions and
18 | * limitations under the License.
19 | */
20 |
21 | allprojects {
22 | group = GROUP
23 | version = VERSION_CODE
24 |
25 | repositories {
26 | mavenCentral()
27 | }
28 |
29 | tasks.withType(Compile) {
30 | options.encoding = "UTF-8"
31 | }
32 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/IIntList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 19:21:53 - 03.05.2012
8 | */
9 | public interface IIntList {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public boolean isEmpty();
19 | public float get(final int pIndex) throws ArrayIndexOutOfBoundsException;
20 | public void add(final int pItem);
21 | public void add(final int pIndex, final int pItem) throws ArrayIndexOutOfBoundsException;
22 | public float remove(final int pIndex) throws ArrayIndexOutOfBoundsException;
23 | public int size();
24 | public void clear();
25 | public int[] toArray();
26 | }
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/layout/handy.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/ILongList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 19:36:57 - 03.05.2012
8 | */
9 | public interface ILongList {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public boolean isEmpty();
19 | public float get(final int pIndex) throws ArrayIndexOutOfBoundsException;
20 | public void add(final long pItem);
21 | public void add(final int pIndex, final long pItem) throws ArrayIndexOutOfBoundsException;
22 | public float remove(final int pIndex) throws ArrayIndexOutOfBoundsException;
23 | public int size();
24 | public void clear();
25 | public long[] toArray();
26 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/IFloatList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 11:14:45 - 27.01.2012
8 | */
9 | public interface IFloatList {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public boolean isEmpty();
19 | public float get(final int pIndex) throws ArrayIndexOutOfBoundsException;
20 | public void add(final float pItem);
21 | public void add(final int pIndex, final float pItem) throws ArrayIndexOutOfBoundsException;
22 | public float remove(final int pIndex) throws ArrayIndexOutOfBoundsException;
23 | public int size();
24 | public void clear();
25 | public float[] toArray();
26 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/texture/atlas/bitmap/source/IBitmapTextureAtlasSource.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.texture.atlas.bitmap.source;
2 |
3 | import org.andengine.opengl.texture.atlas.source.ITextureAtlasSource;
4 |
5 | import android.graphics.Bitmap;
6 | import android.graphics.Bitmap.Config;
7 |
8 | /**
9 | * (c) 2010 Nicolas Gramlich
10 | * (c) 2011 Zynga Inc.
11 | *
12 | * @author Nicolas Gramlich
13 | * @since 12:08:52 - 09.03.2010
14 | */
15 | public interface IBitmapTextureAtlasSource extends ITextureAtlasSource {
16 | // ===========================================================
17 | // Constants
18 | // ===========================================================
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 |
24 | @Override
25 | public IBitmapTextureAtlasSource deepCopy();
26 |
27 | public Bitmap onLoadBitmap(final Config pBitmapConfig);
28 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day19/GreenDaoApplication.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day19;
2 |
3 | import android.app.Application;
4 | import android.database.sqlite.SQLiteDatabase;
5 |
6 | import com.devahoy.learn30androidlibraries.DaoMaster;
7 | import com.devahoy.learn30androidlibraries.DaoSession;
8 |
9 | public class GreenDaoApplication extends Application {
10 |
11 | DaoSession mDaoSession;
12 |
13 | @Override
14 | public void onCreate() {
15 | super.onCreate();
16 | setupDatabase();
17 | }
18 |
19 | private void setupDatabase() {
20 | DaoMaster.DevOpenHelper helper =
21 | new DaoMaster.DevOpenHelper(this, "MyGreenDao.db", null);
22 | SQLiteDatabase db = helper.getWritableDatabase();
23 | DaoMaster daoMaster = new DaoMaster(db);
24 | mDaoSession = daoMaster.newSession();
25 | }
26 |
27 | public DaoSession getDaoSession() {
28 | return mDaoSession;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable/cling_button_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day30/Chat.java:
--------------------------------------------------------------------------------
1 | /*
2 | package com.devahoy.learn30androidlibraries.day30;
3 |
4 | */
5 | /**
6 | * Created by phonbopit on 8/7/14.
7 | *//*
8 |
9 | public class Chat {
10 |
11 | public class KEY {
12 | public static final String OWNER = "owner";
13 | public static final String MESSAGE = "message";
14 | }
15 |
16 | private String message;
17 | private String owner;
18 |
19 | private Chat() {
20 | // Default Constructor for firebase mapping
21 | }
22 | public Chat(String message, String owner) {
23 | setMessage(message);
24 | setOwner(owner);
25 | }
26 |
27 | public String getMessage() {
28 | return message;
29 | }
30 |
31 | public void setMessage(String message) {
32 | this.message = message;
33 | }
34 |
35 | public String getOwner() {
36 | return owner;
37 | }
38 |
39 | public void setOwner(String owner) {
40 | this.owner = owner;
41 | }
42 | }
43 | */
44 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day2_parallax_background.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/call/AsyncCallable.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.call;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 15:00:30 - 14.05.2010
9 | * @param
10 | */
11 | public interface AsyncCallable {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | /**
21 | * Computes a result asynchronously, return values and exceptions are to be handled through the callbacks.
22 | * This method is expected to return almost immediately, after starting a {@link Thread} or similar.
23 | *
24 | * @return computed result
25 | * @throws Exception if unable to compute a result
26 | */
27 | public void call(final Callback pCallback, final Callback pExceptionCallback);
28 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/texture/atlas/source/ITextureAtlasSource.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.texture.atlas.source;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 11:46:56 - 12.07.2011
10 | */
11 | public interface ITextureAtlasSource {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | public int getTextureX();
21 | public int getTextureY();
22 | public void setTextureX(final int pTextureX);
23 | public void setTextureY(final int pTextureY);
24 |
25 | public int getTextureWidth();
26 | public int getTextureHeight();
27 | public void setTextureWidth(final int pTextureWidth);
28 | public void setTextureHeight(final int pTextureHeight);
29 |
30 | public ITextureAtlasSource deepCopy();
31 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/scene/menu/animator/IMenuAnimator.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.scene.menu.animator;
2 |
3 | import java.util.ArrayList;
4 |
5 | import org.andengine.entity.scene.menu.item.IMenuItem;
6 |
7 | /**
8 | * (c) 2010 Nicolas Gramlich
9 | * (c) 2011 Zynga Inc.
10 | *
11 | * @author Nicolas Gramlich
12 | * @since 10:50:36 - 02.04.2010
13 | */
14 | public interface IMenuAnimator {
15 | // ===========================================================
16 | // Constants
17 | // ===========================================================
18 |
19 | public static final IMenuAnimator DEFAULT = new AlphaMenuAnimator();
20 |
21 | // ===========================================================
22 | // Methods
23 | // ===========================================================
24 |
25 | public void prepareAnimations(final ArrayList pMenuItems, final float pCameraWidth, final float pCameraHeight);
26 | public void buildAnimations(final ArrayList pMenuItems, final float pCameraWidth, final float pCameraHeight);
27 | }
28 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/targets/Target.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.graphics.Point;
20 |
21 | public interface Target {
22 | Target NONE = new Target() {
23 | @Override
24 | public Point getPoint() {
25 | return new Point(1000000, 1000000);
26 | }
27 | };
28 |
29 | public Point getPoint();
30 | }
31 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/opengl/texture/atlas/bitmap/source/decorator/shape/IBitmapTextureAtlasSourceDecoratorShape.java:
--------------------------------------------------------------------------------
1 | package org.andengine.opengl.texture.atlas.bitmap.source.decorator.shape;
2 |
3 | import org.andengine.opengl.texture.atlas.bitmap.source.decorator.BaseBitmapTextureAtlasSourceDecorator.TextureAtlasSourceDecoratorOptions;
4 |
5 | import android.graphics.Canvas;
6 | import android.graphics.Paint;
7 |
8 | /**
9 | * (c) 2010 Nicolas Gramlich
10 | * (c) 2011 Zynga Inc.
11 | *
12 | * @author Nicolas Gramlich
13 | * @since 12:47:40 - 04.01.2011
14 | */
15 | public interface IBitmapTextureAtlasSourceDecoratorShape {
16 | // ===========================================================
17 | // Constants
18 | // ===========================================================
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 |
24 | public void onDecorateBitmap(final Canvas pCanvas, final Paint pPaint, final TextureAtlasSourceDecoratorOptions pDecoratorOptions);
25 | }
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 | dependencies {
6 | classpath 'com.android.tools.build:gradle:0.12.2'
7 | }
8 | }
9 | apply plugin: 'com.android.application'
10 |
11 | repositories {
12 | mavenCentral()
13 | }
14 |
15 | android {
16 | compileSdkVersion 18
17 | buildToolsVersion "20.0.0"
18 |
19 | defaultConfig {
20 | minSdkVersion 14
21 | targetSdkVersion 18
22 | }
23 |
24 | signingConfigs {
25 | release {
26 | // We can leave these in environment variables
27 | storeFile file("keystore/paralloidkeystore.jks")
28 | keyAlias "paralloid"
29 |
30 | storePassword 'paralloid'
31 | keyPassword 'paralloid'
32 | }
33 | }
34 |
35 | buildTypes {
36 | release {
37 | signingConfig signingConfigs.release
38 | }
39 | }
40 | }
41 |
42 | dependencies {
43 | compile 'com.android.support:appcompat-v7:20.0.+'
44 | compile project(':paralloidviews')
45 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/input/touch/controller/ITouchController.java:
--------------------------------------------------------------------------------
1 | package org.andengine.input.touch.controller;
2 |
3 | import org.andengine.engine.handler.IUpdateHandler;
4 |
5 | import android.view.MotionEvent;
6 |
7 | /**
8 | * (c) 2010 Nicolas Gramlich
9 | * (c) 2011 Zynga Inc.
10 | *
11 | * @author Nicolas Gramlich
12 | * @since 20:23:45 - 13.07.2010
13 | */
14 | public interface ITouchController extends IUpdateHandler {
15 | // ===========================================================
16 | // Constants
17 | // ===========================================================
18 |
19 | // ===========================================================
20 | // Methods
21 | // ===========================================================
22 |
23 | public void setTouchEventCallback(final ITouchEventCallback pTouchEventCallback);
24 |
25 | public void onHandleMotionEvent(final MotionEvent pMotionEvent);
26 |
27 | // ===========================================================
28 | // Inner and Anonymous Classes
29 | // ===========================================================
30 | }
31 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/trie/ITrie.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.trie;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 12:18:44 - 30.01.2012
8 | */
9 | public interface ITrie {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public void add(final CharSequence pCharSequence);
19 | public void add(final CharSequence pCharSequence, final int pStart, final int pEnd);
20 | public boolean contains(final CharSequence pCharSequence);
21 | public boolean contains(final CharSequence pCharSequence, final int pStart, final int pEnd);
22 | /* TODO public void clear(); */
23 | /* TODO public boolean remove(final CharSequence pCharSequence); */
24 | /* TODO public boolean remove(final CharSequence pCharSequence, final int pStart, final int pEnd); */
25 | }
26 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | 12dp
20 | 24dp
21 | 66dp
22 | 94dp
23 | 96dp
24 | 128dp
25 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/audio/IAudioEntity.java:
--------------------------------------------------------------------------------
1 | package org.andengine.audio;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 14:53:29 - 13.06.2010
9 | */
10 | public interface IAudioEntity {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Methods
17 | // ===========================================================
18 |
19 | public void play();
20 | public void pause();
21 | public void resume();
22 | public void stop();
23 |
24 | public float getVolume();
25 | public void setVolume(final float pVolume);
26 |
27 | public float getLeftVolume();
28 | public float getRightVolume();
29 | public void setVolume(final float pLeftVolume, final float pRightVolume);
30 |
31 | public void onMasterVolumeChanged(final float pMasterVolume);
32 |
33 | public void setLooping(final boolean pLooping);
34 |
35 | public void release();
36 | }
37 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day29/FlatUIActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day29;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBar;
5 | import android.support.v7.app.ActionBarActivity;
6 |
7 | import com.cengalabs.flatui.FlatUI;
8 | import com.cengalabs.flatui.views.FlatToggleButton;
9 | import com.devahoy.learn30androidlibraries.R;
10 |
11 | public class FlatUIActivity extends ActionBarActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 |
17 | FlatUI.initDefaultValues(this);
18 | // FlatUI.setDefaultTheme(FlatUI.SEA);
19 |
20 | ActionBar actionBar = getSupportActionBar();
21 | actionBar.setBackgroundDrawable(FlatUI.getActionBarDrawable(this, FlatUI.GRASS, false));
22 |
23 | setContentView(R.layout.day29_activity_flatui);
24 |
25 | FlatToggleButton toggleButton = (FlatToggleButton) findViewById(R.id.toggle_button);
26 | toggleButton.getAttributes().setTheme(FlatUI.BLOSSOM, getResources());
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day7/Player.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day7;
2 |
3 | public class Player {
4 |
5 | private String id;
6 | private String name;
7 | private String club;
8 | private String national;
9 | private int age;
10 |
11 | public String getId() {
12 | return id;
13 | }
14 |
15 | public void setId(String id) {
16 | this.id = id;
17 | }
18 |
19 | public String getName() {
20 | return name;
21 | }
22 |
23 | public void setName(String name) {
24 | this.name = name;
25 | }
26 |
27 | public String getClub() {
28 | return club;
29 | }
30 |
31 | public void setClub(String club) {
32 | this.club = club;
33 | }
34 |
35 | public String getNational() {
36 | return national;
37 | }
38 |
39 | public void setNational(String national) {
40 | this.national = national;
41 | }
42 |
43 | public int getAge() {
44 | return age;
45 | }
46 |
47 | public void setAge(int age) {
48 | this.age = age;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/targets/Reflector.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.view.View;
20 | import android.view.ViewParent;
21 |
22 | interface Reflector {
23 | View getHomeButton();
24 |
25 | void showcaseActionItem(int itemId);
26 |
27 | ViewParent getActionBarView();
28 |
29 | public enum ActionBarType {
30 | STANDARD, APP_COMPAT, ACTIONBAR_SHERLOCK
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day13/SimplePagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day13;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentManager;
6 | import android.support.v4.app.FragmentStatePagerAdapter;
7 |
8 | public class SimplePagerAdapter extends FragmentStatePagerAdapter {
9 |
10 | public static final String ARGS_POSITION = "name";
11 | public static final int NUM_PAGES = 5;
12 |
13 | public SimplePagerAdapter(FragmentManager fm) {
14 | super(fm);
15 | }
16 |
17 | @Override
18 | public Fragment getItem(int position) {
19 |
20 | Fragment fragment = new SimpleFragment();
21 | Bundle args = new Bundle();
22 | args.putInt(ARGS_POSITION, position);
23 | fragment.setArguments(args);
24 |
25 | return fragment;
26 | }
27 |
28 | @Override
29 | public int getCount() {
30 | return NUM_PAGES;
31 | }
32 |
33 | @Override
34 | public CharSequence getPageTitle(int position) {
35 | return "PAGE#" + (position + 1);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Paralloid Example
5 | Settings
6 | Parallax View
7 | Shift Background
8 | Parallax Background
9 | Parallax List Background
10 | OverParallax Background
11 | Invert Transformer
12 | RightAngle Transformer
13 | Transformer Combination
14 | Peek a boo!
15 |
16 | Bacon ipsum dolor sit amet ut t-bone ham hock pariatur. Ex aliquip est dolore strip steak enim. Fugiat reprehenderit tenderloin ham hock. Pork minim chicken, jowl do strip steak short loin meatball bacon doner proident nulla eiusmod. Elit veniam beef sunt.
17 |
18 |
19 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/list/IList.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.list;
2 |
3 | /**
4 | * (c) Zynga 2012
5 | *
6 | * @author Nicolas Gramlich
7 | * @since 15:27:16 - 01.02.2012
8 | */
9 | public interface IList {
10 | // ===========================================================
11 | // Constants
12 | // ===========================================================
13 |
14 | // ===========================================================
15 | // Methods
16 | // ===========================================================
17 |
18 | public boolean isEmpty();
19 | public T get(final int pIndex) throws IndexOutOfBoundsException;
20 | public void set(final int pIndex, final T pItem) throws IndexOutOfBoundsException;
21 | public int indexOf(final T pItem);
22 | public void add(final T pItem);
23 | public void add(final int pIndex, final T pItem) throws IndexOutOfBoundsException;
24 | public boolean remove(final T pItem);
25 | public T removeFirst();
26 | public T removeLast();
27 | public T remove(final int pIndex) throws IndexOutOfBoundsException;
28 | public int size();
29 | public void clear();
30 | }
31 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/algorithm/hull/IHullAlgorithm.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.algorithm.hull;
2 |
3 |
4 | /**
5 | * (c) 2010 Nicolas Gramlich
6 | * (c) 2011 Zynga Inc.
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 13:46:22 - 14.09.2010
10 | */
11 | public interface IHullAlgorithm {
12 | // ===========================================================
13 | // Final Fields
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Methods
18 | // ===========================================================
19 |
20 | /**
21 | * @param pVertices a interleaved float[] containing vertex data.
22 | * @param pVertexCount the amount of vertices to look at in pVertices.
23 | * @param pVertexOffsetX the offset of the x-coordinate in a vertex.
24 | * @param pVertexOffsetY the offset of the y-coordinate in a vertex.
25 | * @param pStride the stride between each vertex.
26 | * @return
27 | */
28 | public int computeHull(final float[] pVertices, final int pVertexCount, final int pVertexOffsetX, final int pVertexOffsetY, final int pStride);
29 | }
30 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/java/uk/co/chrisjenx/paralloidexample/ParallaxBackgroundFragment.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloidexample;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import uk.co.chrisjenx.paralloid.views.ParallaxScrollView;
10 |
11 | /**
12 | * A dummy fragment representing a section of the app, but that simply
13 | * displays dummy text.
14 | */
15 | public class ParallaxBackgroundFragment extends Fragment {
16 |
17 | public ParallaxBackgroundFragment() {
18 | }
19 |
20 | @Override
21 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
22 | Bundle savedInstanceState) {
23 | View rootView = inflater.inflate(R.layout.fragment_parallax_background, container, false);
24 | ParallaxScrollView scrollView = (ParallaxScrollView) rootView.findViewById(R.id.scroll_view);
25 | scrollView.parallaxViewBackgroundBy(scrollView, getResources().getDrawable(R.drawable.example_image), .2f);
26 |
27 | return rootView;
28 | }
29 | }
--------------------------------------------------------------------------------
/app/src/main/java-gen/com/devahoy/learn30androidlibraries/Player.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries;
2 |
3 | // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
4 | /**
5 | * Entity mapped to table PLAYER.
6 | */
7 | public class Player {
8 |
9 | private Long id;
10 | private String name;
11 | private String club;
12 |
13 | public Player() {
14 | }
15 |
16 | public Player(Long id) {
17 | this.id = id;
18 | }
19 |
20 | public Player(Long id, String name, String club) {
21 | this.id = id;
22 | this.name = name;
23 | this.club = club;
24 | }
25 |
26 | public Long getId() {
27 | return id;
28 | }
29 |
30 | public void setId(Long id) {
31 | this.id = id;
32 | }
33 |
34 | public String getName() {
35 | return name;
36 | }
37 |
38 | public void setName(String name) {
39 | this.name = name;
40 | }
41 |
42 | public String getClub() {
43 | return club;
44 | }
45 |
46 | public void setClub(String club) {
47 | this.club = club;
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day10/AnnotationsActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day10;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.widget.TextView;
6 | import android.widget.Toast;
7 |
8 | import com.devahoy.learn30androidlibraries.R;
9 |
10 | import org.androidannotations.annotations.AfterViews;
11 | import org.androidannotations.annotations.Click;
12 | import org.androidannotations.annotations.EActivity;
13 | import org.androidannotations.annotations.ViewById;
14 |
15 | @EActivity(R.layout.day10_activity_annotations)
16 | public class AnnotationsActivity extends ActionBarActivity {
17 |
18 | @ViewById(R.id.greeting)
19 | TextView greeting;
20 |
21 | @ViewById
22 | TextView name;
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 |
28 | }
29 |
30 | @Click(R.id.button_click)
31 | void onClick() {
32 | Toast.makeText(this, "Hello " ,Toast.LENGTH_LONG).show();
33 | }
34 |
35 | @AfterViews
36 | void setGreeting() {
37 | greeting.setText("Hello I'm John Doe");
38 | }
39 | }
--------------------------------------------------------------------------------
/libs/paralloid-git/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 |
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:0.12.+'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | mavenCentral()
14 | }
15 |
16 | group = 'uk.co.chrisjenx.paralloid'
17 | version = '0.3.0'
18 |
19 | ext.isReleaseVersion = has("release")
20 | if (isReleaseVersion) {
21 | ext.sonatypeRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
22 | } else {
23 | version += "-SNAPSHOT"
24 | ext.sonatypeRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
25 | }
26 |
27 | ext.sonatypeUsername = has("sonatypeUsername") ? sonatypeUsername : ""
28 | ext.sonatypePassword = has("sonatypePassword") ? sonatypePassword : ""
29 |
30 | apply plugin: 'maven'
31 | apply plugin: 'signing'
32 |
33 | configurations {
34 | archives {
35 | extendsFrom configurations.default
36 | }
37 | }
38 |
39 | signing {
40 | required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
41 | sign configurations.archives
42 | }
43 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/day26_list_item_cards.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
12 |
13 |
20 |
21 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/Calculator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Point;
20 | import android.view.View;
21 |
22 | /**
23 | * Calculates various items for use with ShowcaseView
24 | */
25 | class Calculator {
26 |
27 | static Point getShowcasePointFromView(View view) {
28 | Point result = new Point();
29 | result.x = view.getLeft() + view.getWidth() / 2;
30 | result.y = view.getTop() + view.getHeight() / 2;
31 | return result;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day9_activity_butter_knife.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
21 |
22 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day10_activity_annotations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
21 |
22 |
31 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day8/CrashlyticsActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day8;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.view.View;
6 | import android.widget.Button;
7 |
8 | import com.devahoy.learn30androidlibraries.R;
9 |
10 | public class CrashlyticsActivity extends ActionBarActivity {
11 |
12 | @Override
13 | protected void onCreate(Bundle savedInstanceState) {
14 | super.onCreate(savedInstanceState);
15 | setContentView(R.layout.day8_activity_crashlytics);
16 |
17 | /**
18 | * Crashlytics มันต้องใช้ API_KEY จาก Plugin ของแต่ละคน generate ออกมาก่อน
19 | * ถึงจะสามารถใช้งานได้ ผมเลยเอาออก และ uncomment ที่เกี่ยวกับ Crashlytics ออกก่อนนะครับ
20 | * เพื่อให้ทั้งโปรเจ็คสามารถ build ผ่านครับ
21 | */
22 | /* Crashlytics.start(this);
23 |
24 | Crashlytics.log("Hello initial Crashlytics");*/
25 |
26 | Button button = null;
27 | button.setOnClickListener(new View.OnClickListener() {
28 | @Override
29 | public void onClick(View v) {
30 | // always NPE.
31 | }
32 | });
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/java/uk/co/chrisjenx/paralloidexample/ShiftBackgroundFragment.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloidexample;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.ScrollView;
9 |
10 | import uk.co.chrisjenx.paralloid.Parallaxor;
11 |
12 | /**
13 | * A dummy fragment representing a section of the app, but that simply
14 | * displays dummy text.
15 | */
16 | public class ShiftBackgroundFragment extends Fragment {
17 |
18 | public ShiftBackgroundFragment() {
19 | }
20 |
21 | @Override
22 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
23 | Bundle savedInstanceState) {
24 | View rootView = inflater.inflate(R.layout.fragment_parallax_background, container, false);
25 | ScrollView scrollView = (ScrollView) rootView.findViewById(R.id.scroll_view);
26 | if (scrollView instanceof Parallaxor) {
27 | ((Parallaxor) scrollView).parallaxViewBackgroundBy(scrollView, getResources().getDrawable(R.drawable.example_rainbow), 1f);
28 | }
29 |
30 | return rootView;
31 | }
32 | }
--------------------------------------------------------------------------------
/andEngine/src/main/jni/src/BufferUtils.cpp:
--------------------------------------------------------------------------------
1 | #include "BufferUtils.h"
2 | #include
3 | #include
4 |
5 | // ===========================================================
6 | // org.andengine.opengl.util.BufferUtils
7 | // ===========================================================
8 |
9 | JNIEXPORT void JNICALL Java_org_andengine_opengl_util_BufferUtils_jniPut(JNIEnv *env, jclass, jobject pBuffer, jfloatArray pData, jint pLength, jint pOffset) {
10 | unsigned char* bufferAddress = (unsigned char*)env->GetDirectBufferAddress(pBuffer);
11 | float* dataAddress = (float*)env->GetPrimitiveArrayCritical(pData, 0);
12 |
13 | memcpy(bufferAddress, dataAddress + pOffset, pLength << 2);
14 | env->ReleasePrimitiveArrayCritical(pData, dataAddress, 0);
15 | }
16 |
17 | JNIEXPORT jobject JNICALL Java_org_andengine_opengl_util_BufferUtils_jniAllocateDirect(JNIEnv *env, jclass, jint pCapacity) {
18 | jbyte* bytebuffer = (jbyte*) malloc(sizeof(jbyte) * pCapacity);
19 | return env->NewDirectByteBuffer(bytebuffer, pCapacity);
20 | }
21 |
22 | JNIEXPORT void JNICALL Java_org_andengine_opengl_util_BufferUtils_jniFreeDirect(JNIEnv* env, jclass, jobject pBuffer) {
23 | unsigned char* bufferAddress = (unsigned char*)env->GetDirectBufferAddress(pBuffer);
24 | free(bufferAddress);
25 | }
26 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day3/Shot.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day3;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 |
5 | public class Shot {
6 |
7 | private int id;
8 | private String title;
9 | private String description;
10 | private String url;
11 |
12 |
13 |
14 | @SerializedName("image_url")
15 | private String imageUrl;
16 |
17 | public int getId() {
18 | return id;
19 | }
20 |
21 | public void setId(int id) {
22 | this.id = id;
23 | }
24 |
25 | public String getTitle() {
26 | return title;
27 | }
28 |
29 | public void setTitle(String title) {
30 | this.title = title;
31 | }
32 |
33 | public String getDescription() {
34 | return description;
35 | }
36 |
37 | public void setDescription(String description) {
38 | this.description = description;
39 | }
40 |
41 | public String getUrl() {
42 | return url;
43 | }
44 |
45 | public void setUrl(String url) {
46 | this.url = url;
47 | }
48 |
49 | public String getImageUrl() {
50 | return imageUrl;
51 | }
52 |
53 | public void setImageUrl(String imageUrl) {
54 | this.imageUrl = imageUrl;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/sprite/batch/vbo/ISpriteBatchVertexBufferObject.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.sprite.batch.vbo;
2 |
3 | import org.andengine.opengl.texture.region.ITextureRegion;
4 | import org.andengine.opengl.vbo.IVertexBufferObject;
5 |
6 | /**
7 | * (c) Zynga 2012
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 12:35:06 - 29.03.2012
11 | */
12 | public interface ISpriteBatchVertexBufferObject extends IVertexBufferObject {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public int getBufferDataOffset();
22 | public void setBufferDataOffset(final int pBufferDataOffset);
23 |
24 | public void addWithPackedColor(final ITextureRegion pTextureRegion, final float pX1, final float pY1, final float pX2, final float pY2, final float pColorABGRPackedInt);
25 | public void addWithPackedColor(final ITextureRegion pTextureRegion, final float pX1, final float pY1, final float pX2, final float pY2, final float pX3, final float pY3, final float pX4, final float pY4, final float pColorABGRPackedInt);
26 | }
--------------------------------------------------------------------------------
/libs/showcaseview/library/project.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2014 Alex Curran
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | # This file is automatically generated by Android Tools.
18 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
19 | #
20 | # This file must be checked in Version Control Systems.
21 | #
22 | # To customize properties used by the Ant build system edit
23 | # "ant.properties", and override values to adapt the script to your
24 | # project structure.
25 | #
26 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
27 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
28 |
29 | android.library=true
30 | # Project target.
31 | target=android-19
32 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/targets/PointTarget.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.graphics.Point;
20 |
21 | /**
22 | * Showcase a specific x/y co-ordinate on the screen.
23 | */
24 | public class PointTarget implements Target {
25 |
26 | private final Point mPoint;
27 |
28 | public PointTarget(Point point) {
29 | mPoint = point;
30 | }
31 |
32 | public PointTarget(int xValue, int yValue) {
33 | mPoint = new Point(xValue, yValue);
34 | }
35 |
36 | @Override
37 | public Point getPoint() {
38 | return mPoint;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/AnimationFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Point;
20 | import android.view.View;
21 |
22 | interface AnimationFactory {
23 | void fadeInView(View target, long duration, AnimationStartListener listener);
24 |
25 | void fadeOutView(View target, long duration, AnimationEndListener listener);
26 |
27 | void animateTargetToPoint(ShowcaseView showcaseView, Point point);
28 |
29 | public interface AnimationStartListener {
30 | void onAnimationStart();
31 | }
32 |
33 | public interface AnimationEndListener {
34 | void onAnimationEnd();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseDrawer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Bitmap;
20 | import android.graphics.Canvas;
21 |
22 | /**
23 | * Created by curraa01 on 13/10/2013.
24 | */
25 | interface ShowcaseDrawer {
26 |
27 | void setShowcaseColour(int color);
28 |
29 | void drawShowcase(Bitmap buffer, float x, float y, float scaleMultiplier);
30 |
31 | int getShowcaseWidth();
32 |
33 | int getShowcaseHeight();
34 |
35 | float getBlockedRadius();
36 |
37 | void setBackgroundColour(int backgroundColor);
38 |
39 | void erase(Bitmap bitmapBuffer);
40 |
41 | void drawToCanvas(Canvas canvas, Bitmap bitmapBuffer);
42 | }
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day22_activity_twitter4j.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
21 |
22 |
28 |
29 |
30 |
31 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/day30_activity_firebase.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
12 |
13 |
18 |
19 |
27 |
28 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/java/com/github/amlcurran/showcaseview/ApiUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.annotation.TargetApi;
20 | import android.os.Build;
21 | import android.view.View;
22 |
23 | public class ApiUtils {
24 |
25 | public boolean isCompatWith(int versionCode) {
26 | return Build.VERSION.SDK_INT >= versionCode;
27 | }
28 |
29 | public boolean isCompatWithHoneycomb() {
30 | return isCompatWith(Build.VERSION_CODES.HONEYCOMB);
31 | }
32 |
33 | @TargetApi(14)
34 | public void setFitsSystemWindowsCompat(View view) {
35 | if (isCompatWith(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
36 | view.setFitsSystemWindows(true);
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/java/uk/co/chrisjenx/paralloidexample/ParallaxViewRightFragment.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloidexample;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.ImageView;
9 | import android.widget.ScrollView;
10 |
11 | import uk.co.chrisjenx.paralloid.Parallaxor;
12 | import uk.co.chrisjenx.paralloid.transform.RightAngleTransformer;
13 |
14 | /**
15 | * A dummy fragment representing a section of the app, but that simply
16 | * displays dummy text.
17 | */
18 | public class ParallaxViewRightFragment extends Fragment {
19 |
20 | public ParallaxViewRightFragment() {
21 | }
22 |
23 | @Override
24 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
25 | Bundle savedInstanceState) {
26 | View rootView = inflater.inflate(R.layout.fragment_invert_transformer, container, false);
27 | ImageView imageView = (ImageView) rootView.findViewById(R.id.image_view);
28 | ScrollView scrollView = (ScrollView) rootView.findViewById(R.id.scroll_view);
29 | if (scrollView instanceof Parallaxor) {
30 | ((Parallaxor) scrollView).parallaxViewBy(imageView, new RightAngleTransformer(), 0.4f);
31 | }
32 |
33 | return rootView;
34 | }
35 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/scene/IOnSceneTouchListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.scene;
2 |
3 | import org.andengine.input.touch.TouchEvent;
4 |
5 | /**
6 | * An interface for a callback to be invoked when a {@link TouchEvent} is
7 | * dispatched to a {@link Scene}. The callback will be invoked
8 | * after all {@link ITouchArea}s have been checked and none consumed the {@link TouchEvent}.
9 | *
10 | * (c) Zynga 2012
11 | *
12 | * @author Nicolas Gramlich
13 | * @since 15:02:20 - 27.03.2012
14 | */
15 | public interface IOnSceneTouchListener {
16 | // ===========================================================
17 | // Constants
18 | // ===========================================================
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 |
24 | /**
25 | * Called when a {@link TouchEvent} is dispatched to a {@link Scene}.
26 | *
27 | * @param pScene The {@link Scene} that the {@link TouchEvent} has been dispatched to.
28 | * @param pSceneTouchEvent The {@link TouchEvent} object containing full information about the event.
29 | *
30 | * @return true if this {@link IOnSceneTouchListener} has consumed the {@link TouchEvent}, false otherwise.
31 | */
32 | public boolean onSceneTouchEvent(final Scene pScene, final TouchEvent pSceneTouchEvent);
33 | }
--------------------------------------------------------------------------------
/libs/showcaseview/gradle.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2014 Alex Curran
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | VERSION_CODE=50101
18 | VERSION_NAME=5.1.0-SNAPSHOT
19 | GROUP=com.github.amlcurran.showcaseview
20 |
21 | POM_DESCRIPTION=Highlight the best bits of your app to users quickly, simply, and cool...ly
22 | POM_URL=https://github.com/amlcurran/ShowcaseView/tree/new-scv
23 | POM_SCM_URL=https://github.com/amlcurran/ShowcaseView/tree/new-scv
24 | POM_SCM_CONNECTION=scm:git@github.com:amlcurran/ShowcaseView.git
25 | POM_SCM_DEV_CONNECTION=scm:git@github.com:amlcurran/ShowcaseView.git
26 | POM_LICENCE_NAME=The Apache Software License, Version 2.0
27 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
28 | POM_LICENCE_DIST=repo
29 | POM_DEVELOPER_ID=amlcurran
30 | POM_DEVELOPER_NAME=Alex Curran
31 |
32 | BUILD_TOOLS_VERSION=19.1.0
33 | COMPILE_SDK=19
34 | MIN_SDK=11
35 | TARGET_SDK=19
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/input/sensor/location/ILocationListener.java:
--------------------------------------------------------------------------------
1 | package org.andengine.input.sensor.location;
2 |
3 | import android.location.Location;
4 | import android.location.LocationListener;
5 | import android.os.Bundle;
6 |
7 | /**
8 | * (c) 2010 Nicolas Gramlich
9 | * (c) 2011 Zynga Inc.
10 | *
11 | * @author Nicolas Gramlich
12 | * @since 10:39:23 - 31.10.2010
13 | */
14 | public interface ILocationListener {
15 | // ===========================================================
16 | // Constants
17 | // ===========================================================
18 |
19 | // ===========================================================
20 | // Methods
21 | // ===========================================================
22 |
23 | /**
24 | * @see {@link LocationListener#onProviderEnabled(String)}
25 | */
26 | public void onLocationProviderEnabled();
27 |
28 | /**
29 | * @see {@link LocationListener#onLocationChanged(Location)}
30 | */
31 | public void onLocationChanged(final Location pLocation);
32 |
33 | public void onLocationLost();
34 |
35 | /**
36 | * @see {@link LocationListener#onProviderDisabled(String)}
37 | */
38 | public void onLocationProviderDisabled();
39 |
40 | /**
41 | * @see {@link LocationListener#onStatusChanged(String, int, android.os.Bundle)}
42 | */
43 | public void onLocationProviderStatusChanged(final LocationProviderStatus pLocationProviderStatus, final Bundle pBundle);
44 | }
45 |
--------------------------------------------------------------------------------
/app/src/main/java/com/devahoy/learn30androidlibraries/day16/AutoFitTextViewActivity.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries.day16;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.text.Editable;
6 | import android.text.TextWatcher;
7 | import android.widget.EditText;
8 |
9 | import com.devahoy.learn30androidlibraries.R;
10 |
11 | import me.grantland.widget.AutofitTextView;
12 |
13 | public class AutoFitTextViewActivity extends ActionBarActivity {
14 |
15 | AutofitTextView mTextView;
16 | EditText mEditText;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.day16_activity_autofit);
22 | mTextView = (AutofitTextView) findViewById(R.id.text_view);
23 | mEditText = (EditText) findViewById(R.id.edit_text);
24 |
25 | mEditText.addTextChangedListener(new TextWatcher() {
26 | @Override
27 | public void beforeTextChanged(CharSequence s, int start, int count, int after) {
28 |
29 | }
30 |
31 | @Override
32 | public void onTextChanged(CharSequence s, int start, int before, int count) {
33 | mTextView.setText(s);
34 | }
35 |
36 | @Override
37 | public void afterTextChanged(Editable s) {
38 |
39 | }
40 | });
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | buildscript {
18 | repositories {
19 | mavenCentral()
20 | }
21 |
22 | dependencies {
23 | classpath 'com.android.tools.build:gradle:0.12.2'
24 | }
25 | }
26 |
27 | apply plugin: 'com.android.library'
28 | apply plugin: 'maven'
29 |
30 | dependencies {
31 | repositories {
32 | mavenCentral()
33 | }
34 | }
35 |
36 | android {
37 | compileSdkVersion Integer.parseInt(COMPILE_SDK)
38 | buildToolsVersion BUILD_TOOLS_VERSION
39 |
40 | defaultConfig {
41 | versionName VERSION_NAME
42 | versionCode Integer.parseInt(VERSION_CODE)
43 | targetSdkVersion Integer.parseInt(TARGET_SDK)
44 | minSdkVersion Integer.parseInt(MIN_SDK)
45 | }
46 | }
47 |
48 | apply from: 'gradle-mvn-push.gradle'
49 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/scene/background/IBackground.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.scene.background;
2 |
3 | import org.andengine.engine.handler.IDrawHandler;
4 | import org.andengine.engine.handler.IUpdateHandler;
5 | import org.andengine.util.color.Color;
6 | import org.andengine.util.modifier.IModifier;
7 |
8 | /**
9 | * (c) 2010 Nicolas Gramlich
10 | * (c) 2011 Zynga Inc.
11 | *
12 | * @author Nicolas Gramlich
13 | * @since 13:47:41 - 19.07.2010
14 | */
15 | public interface IBackground extends IDrawHandler, IUpdateHandler {
16 | // ===========================================================
17 | // Constants
18 | // ===========================================================
19 |
20 | // ===========================================================
21 | // Methods
22 | // ===========================================================
23 |
24 | public void registerBackgroundModifier(final IModifier pBackgroundModifier);
25 | public boolean unregisterBackgroundModifier(final IModifier pBackgroundModifier);
26 | public void clearBackgroundModifiers();
27 |
28 | public boolean isColorEnabled();
29 | public void setColorEnabled(final boolean pColorEnabled);
30 |
31 | public void setColor(final Color pColor);
32 | public void setColor(final float pRed, final float pGreen, final float pBlue);
33 | public void setColor(final float pRed, final float pGreen, final float pBlue, final float pAlpha);
34 | }
35 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/engine/handler/IUpdateHandler.java:
--------------------------------------------------------------------------------
1 | package org.andengine.engine.handler;
2 |
3 | import org.andengine.util.IMatcher;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 12:24:09 - 11.03.2010
11 | */
12 | public interface IUpdateHandler {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Methods
19 | // ===========================================================
20 |
21 | public void onUpdate(final float pSecondsElapsed);
22 | public void reset();
23 |
24 | // TODO Maybe add onRegister and onUnregister. (Maybe add SimpleUpdateHandler that implements all methods, but onUpdate)
25 |
26 | // ===========================================================
27 | // Inner and Anonymous Classes
28 | // ===========================================================
29 |
30 | public interface IUpdateHandlerMatcher extends IMatcher {
31 | // ===========================================================
32 | // Constants
33 | // ===========================================================
34 |
35 | // ===========================================================
36 | // Methods
37 | // ===========================================================
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/libs/showcaseview/library/src/main/res/drawable/button_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 | -
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | -
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/util/adt/pool/RunnablePoolItem.java:
--------------------------------------------------------------------------------
1 | package org.andengine.util.adt.pool;
2 |
3 | /**
4 | * (c) 2010 Nicolas Gramlich
5 | * (c) 2011 Zynga Inc.
6 | *
7 | * @author Nicolas Gramlich
8 | * @since 23:46:50 - 27.08.2010
9 | */
10 | public abstract class RunnablePoolItem extends PoolItem implements Runnable {
11 | // ===========================================================
12 | // Constants
13 | // ===========================================================
14 |
15 | // ===========================================================
16 | // Fields
17 | // ===========================================================
18 |
19 | // ===========================================================
20 | // Constructors
21 | // ===========================================================
22 |
23 | // ===========================================================
24 | // Getter & Setter
25 | // ===========================================================
26 |
27 | // ===========================================================
28 | // Methods for/from SuperClass/Interfaces
29 | // ===========================================================
30 |
31 | // ===========================================================
32 | // Methods
33 | // ===========================================================
34 |
35 | // ===========================================================
36 | // Inner and Anonymous Classes
37 | // ===========================================================
38 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/audio/music/MusicLibrary.java:
--------------------------------------------------------------------------------
1 | package org.andengine.audio.music;
2 |
3 | import org.andengine.util.adt.map.Library;
4 |
5 | /**
6 | * (c) Zynga 2011
7 | *
8 | * @author Nicolas Gramlich
9 | * @since 20:30:34 - 09.11.2011
10 | */
11 | public class MusicLibrary extends Library {
12 | // ===========================================================
13 | // Constants
14 | // ===========================================================
15 |
16 | // ===========================================================
17 | // Fields
18 | // ===========================================================
19 |
20 | // ===========================================================
21 | // Constructors
22 | // ===========================================================
23 |
24 | // ===========================================================
25 | // Getter & Setter
26 | // ===========================================================
27 |
28 | // ===========================================================
29 | // Methods for/from SuperClass/Interfaces
30 | // ===========================================================
31 |
32 | // ===========================================================
33 | // Methods
34 | // ===========================================================
35 |
36 | // ===========================================================
37 | // Inner and Anonymous Classes
38 | // ===========================================================
39 | }
40 |
--------------------------------------------------------------------------------
/libs/paralloid-git/paralloidexample/src/main/java/uk/co/chrisjenx/paralloidexample/ParallaxViewUpFragment.java:
--------------------------------------------------------------------------------
1 | package uk.co.chrisjenx.paralloidexample;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.ImageView;
9 | import android.widget.ScrollView;
10 |
11 | import uk.co.chrisjenx.paralloid.Parallaxor;
12 |
13 | /**
14 | * A dummy fragment representing a section of the app, but that simply
15 | * displays dummy text.
16 | */
17 | public class ParallaxViewUpFragment extends Fragment {
18 | /**
19 | * The fragment argument representing the section number for this
20 | * fragment.
21 | */
22 | public static final String ARG_SECTION_NUMBER = "section_number";
23 |
24 | public ParallaxViewUpFragment() {
25 | }
26 |
27 | @Override
28 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
29 | Bundle savedInstanceState) {
30 | View rootView = inflater.inflate(R.layout.fragment_home_dummy, container, false);
31 | ImageView imageView = (ImageView) rootView.findViewById(R.id.image_view);
32 | ScrollView scrollView = (ScrollView) rootView.findViewById(R.id.scroll_view);
33 | if (scrollView instanceof Parallaxor) {
34 | ((Parallaxor) scrollView).parallaxViewBy(imageView, 0.5f);
35 | }
36 |
37 | return rootView;
38 | }
39 | }
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/entity/scene/background/modifier/IBackgroundModifier.java:
--------------------------------------------------------------------------------
1 | package org.andengine.entity.scene.background.modifier;
2 |
3 | import org.andengine.entity.scene.background.IBackground;
4 | import org.andengine.util.modifier.IModifier;
5 |
6 | /**
7 | * (c) 2010 Nicolas Gramlich
8 | * (c) 2011 Zynga Inc.
9 | *
10 | * @author Nicolas Gramlich
11 | * @since 14:55:54 - 03.09.2010
12 | */
13 | public interface IBackgroundModifier extends IModifier {
14 | // ===========================================================
15 | // Constants
16 | // ===========================================================
17 |
18 | // ===========================================================
19 | // Methods
20 | // ===========================================================
21 |
22 | @Override
23 | public IBackgroundModifier deepCopy() throws DeepCopyNotSupportedException;
24 |
25 | // ===========================================================
26 | // Inner and Anonymous Classes
27 | // ===========================================================
28 |
29 | public static interface IBackgroundModifierListener extends IModifierListener{
30 | // ===========================================================
31 | // Constants
32 | // ===========================================================
33 |
34 | // ===========================================================
35 | // Methods
36 | // ===========================================================
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/andEngine/src/main/java/org/andengine/audio/sound/SoundLibrary.java:
--------------------------------------------------------------------------------
1 | package org.andengine.audio.sound;
2 |
3 | import org.andengine.util.adt.map.Library;
4 |
5 | /**
6 | * (c) 2010 Nicolas Gramlich
7 | * (c) 2011 Zynga Inc.
8 | *
9 | * @author Nicolas Gramlich
10 | * @since 20:41:56 - 20.08.2010
11 | */
12 | public class SoundLibrary extends Library {
13 | // ===========================================================
14 | // Constants
15 | // ===========================================================
16 |
17 | // ===========================================================
18 | // Fields
19 | // ===========================================================
20 |
21 | // ===========================================================
22 | // Constructors
23 | // ===========================================================
24 |
25 | // ===========================================================
26 | // Getter & Setter
27 | // ===========================================================
28 |
29 | // ===========================================================
30 | // Methods for/from SuperClass/Interfaces
31 | // ===========================================================
32 |
33 | // ===========================================================
34 | // Methods
35 | // ===========================================================
36 |
37 | // ===========================================================
38 | // Inner and Anonymous Classes
39 | // ===========================================================
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java-gen/com/devahoy/learn30androidlibraries/DaoSession.java:
--------------------------------------------------------------------------------
1 | package com.devahoy.learn30androidlibraries;
2 |
3 | import android.database.sqlite.SQLiteDatabase;
4 |
5 | import java.util.Map;
6 |
7 | import de.greenrobot.dao.AbstractDao;
8 | import de.greenrobot.dao.AbstractDaoSession;
9 | import de.greenrobot.dao.identityscope.IdentityScopeType;
10 | import de.greenrobot.dao.internal.DaoConfig;
11 |
12 | import com.devahoy.learn30androidlibraries.Player;
13 |
14 | import com.devahoy.learn30androidlibraries.PlayerDao;
15 |
16 | // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
17 |
18 | /**
19 | * {@inheritDoc}
20 | *
21 | * @see de.greenrobot.dao.AbstractDaoSession
22 | */
23 | public class DaoSession extends AbstractDaoSession {
24 |
25 | private final DaoConfig playerDaoConfig;
26 |
27 | private final PlayerDao playerDao;
28 |
29 | public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map>, DaoConfig>
30 | daoConfigMap) {
31 | super(db);
32 |
33 | playerDaoConfig = daoConfigMap.get(PlayerDao.class).clone();
34 | playerDaoConfig.initIdentityScope(type);
35 |
36 | playerDao = new PlayerDao(playerDaoConfig, this);
37 |
38 | registerDao(Player.class, playerDao);
39 | }
40 |
41 | public void clear() {
42 | playerDaoConfig.getIdentityScope().clear();
43 | }
44 |
45 | public PlayerDao getPlayerDao() {
46 | return playerDao;
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------