Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 17, 2016
0 parents commit bf1f7c9
Show file tree
Hide file tree
Showing 82 changed files with 732 additions and 0 deletions.
Binary file added 9781430257851.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2013 Wallace Jackson

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


9 changes: 9 additions & 0 deletions ProAndroidGraphics/.classpath
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions ProAndroidGraphics/.project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>GraphicsDesign</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
27 changes: 27 additions & 0 deletions ProAndroidGraphics/AndroidManifest.xml
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pro.android.graphics" android:versionCode="1" android:versionName="1.0" >
<supports-screens
android:largeScreens="true" android:xlargeScreens="true" />
<uses-sdk
android:minSdkVersion="16" android:targetSdkVersion="17" />
<uses-permission
android:name="android.permission.INTERNET" />
<application
android:allowBackup="true" android:icon="@drawable/pag_icon"
android:label="@string/app_name" android:theme="@style/AppTheme" >
<activity
android:name="pro.android.graphics.MainActivity" android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="pro.android.graphics.ContentsActivity" android:label="@string/toc_title" />
<activity
android:name="pro.android.graphics.BookmarkActivity" android:label="@string/bmu_title" />
<activity
android:name="pro.android.graphics.SketchPad" android:label="@string/sketchPad_utility" />
</application>
</manifest>
Binary file added ProAndroidGraphics/ic_launcher-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions ProAndroidGraphics/proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
14 changes: 14 additions & 0 deletions ProAndroidGraphics/project.properties
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-17
32 changes: 32 additions & 0 deletions ProAndroidGraphics/res/anim/pag_anim.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<scale
android:fromXScale="0.0"
android:toXScale="1.0"
android:fromYScale="0.0"
android:toYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="9000"
android:startOffset="3000"
android:repeatCount="0" />
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="9000"
android:startOffset="3000"
android:repeatCount="0" />
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:interpolator="@android:anim/linear_interpolator"
android:duration="4400"
android:startOffset="200"
android:repeatCount="1"
android:repeatMode="reverse" />
</set>

Binary file added ProAndroidGraphics/res/drawable-hdpi/Thumbs.db
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-hdpi/pag_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-ldpi/Thumbs.db
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-ldpi/pag_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-mdpi/Thumbs.db
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-mdpi/pag_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-xhdpi/Thumbs.db
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/Thumbs.db
Binary file not shown.
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag0.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag1.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag2.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag3.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag4.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag5.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag6.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag7.png
Binary file added ProAndroidGraphics/res/drawable-xxhdpi/pag8.png
13 changes: 13 additions & 0 deletions ProAndroidGraphics/res/drawable/anim_intro.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/pag0" android:duration="112" />
<item android:drawable="@drawable/pag1" android:duration="111" />
<item android:drawable="@drawable/pag2" android:duration="111" />
<item android:drawable="@drawable/pag3" android:duration="111" />
<item android:drawable="@drawable/pag4" android:duration="111" />
<item android:drawable="@drawable/pag5" android:duration="111" />
<item android:drawable="@drawable/pag6" android:duration="111" />
<item android:drawable="@drawable/pag7" android:duration="111" />
<item android:drawable="@drawable/pag8" android:duration="111" />
</animation-list>
15 changes: 15 additions & 0 deletions ProAndroidGraphics/res/drawable/bookmark_states.xml
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >

<item android:state_hovered="true"
android:drawable="@drawable/imagebutton_hovered" /> <!-- hovered -->

<item android:state_pressed="true"
android:drawable="@drawable/imagebutton_pressed" /> <!-- pressed -->

<item android:state_focused="true"
android:drawable="@drawable/imagebutton_focused" /> <!-- focused -->

<item android:drawable="@drawable/imagebutton_normal" /> <!-- default -->

</selector>
12 changes: 12 additions & 0 deletions ProAndroidGraphics/res/drawable/contents_layers.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/layerOne"
android:drawable="@drawable/cloudsky" />
<item
android:id="@+id/layerTwo"
android:drawable="@drawable/ninepatchframe" />
<item
android:id="@+id/layerThree"
android:drawable="@drawable/bookmark0" />
</layer-list>
17 changes: 17 additions & 0 deletions ProAndroidGraphics/res/drawable/contents_shape.xml
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval" >
<gradient
android:startColor="#FF0000"
android:centerColor="#FFFF00"
android:endColor="#00FF00"
android:centerX="0.5"
android:centerY="0.5"
android:gradientRadius="100"
android:type="radial" />
<stroke
android:color="#000000"
android:width="5dip"
android:dashWidth="4dip"
android:dashGap="3dip" />
</shape>
9 changes: 9 additions & 0 deletions ProAndroidGraphics/res/drawable/trans_contents.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<transition xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/imageSource"
android:drawable="@drawable/cloudsky" />
<item
android:id="@+id/imageDestination"
android:drawable="@drawable/bookmark0" />
</transition>
20 changes: 20 additions & 0 deletions ProAndroidGraphics/res/layout/activity_bookmark.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent" >
<ImageView android:id="@+id/backgroundImage" android:background="@drawable/cloudsky"
android:layout_width="match_parent" android:layout_height="match_parent"
android:contentDescription="@string/bmi" android:scaleType="fitXY"
android:tint="#44FFFFFF" android:baseline="30dp" />
<TextView android:id="@+id/currentBookmarkText" android:background="#00000000"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/bookmark_text" android:layout_marginTop="0dip"
android:layout_centerHorizontal="true" android:typeface="monospace"
android:textStyle="bold" android:textSize="21sp" android:shadowDx="-1.7"
android:shadowDy="1.675" android:shadowColor="#BB333333"
android:shadowRadius="1.75" android:layout_alignBaseline="@+id/backgroundImage"/>
<ImageView android:id="@+id/currentBookmarkImage"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/bookmarks0" android:contentDescription="@string/bmi"
android:layout_below="@+id/currentBookmarkText" android:layout_margin="0dp"
android:clickable="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
39 changes: 39 additions & 0 deletions ProAndroidGraphics/res/layout/activity_contents.xml
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="horizontal" android:baselineAligned="false"
android:background="@drawable/ninepatchframe">
<LinearLayout android:orientation="vertical" android:layout_height="match_parent"
android:layout_width="0dip" android:layout_weight="0.75"
android:layout_marginLeft="10dip" android:layout_marginTop="10dip" >
<TextView android:text="@string/chap_one" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/chap_two" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/chap_three" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/chap_four" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@+id/bookmarkImageButton" android:layout_marginTop="-35dp"
android:scaleX="0.5" android:scaleY="0.5" android:layout_marginLeft="-35dip"
android:src="@drawable/bookmark_states" android:background="#00000000"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/bookmark_utility" />
<ImageView android:src="@drawable/contents_shape" android:background="@drawable/trans_contents"
android:id="@+id/porterDuffImageView" android:layout_margin="8dp"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/bookmark_utility" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_height="match_parent"
android:layout_width="0dip" android:layout_weight="0.25"
android:layout_marginTop="10dip" >
<TextView android:text="@string/page_one" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/page_two" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/page_three" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="@string/page_four" android:textSize="13sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
14 changes: 14 additions & 0 deletions ProAndroidGraphics/res/layout/activity_main.xml
@@ -0,0 +1,14 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:id="@+id/layoutContainer" >
<VideoView android:id="@+id/splashScreenVideoView"
android:layout_width="match_parent" android:layout_height="match_parent"
android:layout_alignParentLeft="true" android:layout_alignParentTop="true"
android:layout_alignParentRight="true" android:layout_alignParentBottom="true"
android:keepScreenOn="true" />
<ImageView android:id="@+id/pagImageView" android:src="@drawable/anim_intro"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/anim_intro_desc"
android:layout_centerInParent="true" />
</RelativeLayout>
14 changes: 14 additions & 0 deletions ProAndroidGraphics/res/menu/main.xml
@@ -0,0 +1,14 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/table_of_contents"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/table_of_contents" />
<item android:id="@+id/bookmark_utility"
android:orderInCategory="200"
android:showAsAction="never"
android:title="@string/bookmark_utility" />
<item android:id="@+id/sketchPad"
android:orderInCategory="300"
android:showAsAction="never"
android:title="@string/sketchPad_utility" />
</menu>
Binary file added ProAndroidGraphics/res/raw/Thumbs.db
Binary file not shown.
Binary file added ProAndroidGraphics/res/raw/pag480x800portrait.mp4
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions ProAndroidGraphics/res/values-sw600dp/dimens.xml
@@ -0,0 +1,8 @@
<resources>

<!--
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw600dp devices (e.g. 7" tablets) here.
-->

</resources>
9 changes: 9 additions & 0 deletions ProAndroidGraphics/res/values-sw720dp-land/dimens.xml
@@ -0,0 +1,9 @@
<resources>

<!--
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-->
<dimen name="activity_horizontal_margin">128dp</dimen>

</resources>
11 changes: 11 additions & 0 deletions ProAndroidGraphics/res/values-v11/styles.xml
@@ -0,0 +1,11 @@
<resources>

<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>

</resources>
12 changes: 12 additions & 0 deletions ProAndroidGraphics/res/values-v14/styles.xml
@@ -0,0 +1,12 @@
<resources>

<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>

</resources>
7 changes: 7 additions & 0 deletions ProAndroidGraphics/res/values/dimens.xml
@@ -0,0 +1,7 @@
<resources>

<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>

</resources>

0 comments on commit bf1f7c9

Please sign in to comment.