Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 18, 2016
0 parents commit b2eacd2
Show file tree
Hide file tree
Showing 136 changed files with 1,236 additions and 0 deletions.
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.
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.
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.
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 not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
<?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/ib_venus_hover" />
<item android:state_pressed="true"
android:drawable="@drawable/ib_venus_press" />
<item android:state_focused="true"
android:drawable="@drawable/ib_venus_focus" />
<item android:drawable="@drawable/ib_venus_normal" />
</selector>
@@ -0,0 +1,10 @@
<?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/ib_jupiter_hover" />
<item android:state_pressed="true"
android:drawable="@drawable/ib_jupiter_press" />
<item android:state_focused="true"
android:drawable="@drawable/ib_jupiter_focus" />
<item android:drawable="@drawable/ib_jupiter_normal" />
</selector>
@@ -0,0 +1,10 @@
<?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/ib_neptune_hover" />
<item android:state_pressed="true"
android:drawable="@drawable/ib_neptune_press" />
<item android:state_focused="true"
android:drawable="@drawable/ib_neptune_focus" />
<item android:drawable="@drawable/ib_neptune_normal" />
</selector>
@@ -0,0 +1,10 @@
<?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/ib_mars_hover" />
<item android:state_pressed="true"
android:drawable="@drawable/ib_mars_press" />
<item android:state_focused="true"
android:drawable="@drawable/ib_mars_focus" />
<item android:drawable="@drawable/ib_mars_normal" />
</selector>
@@ -0,0 +1,10 @@
<?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/ib_earth_hover" />
<item android:state_pressed="true"
android:drawable="@drawable/ib_earth_press" />
<item android:state_focused="true"
android:drawable="@drawable/ib_earth_focus" />
<item android:drawable="@drawable/ib_earth_normal" />
</selector>
@@ -0,0 +1,23 @@
<?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"
android:background="@drawable/plasma480" >
<TextView style="@style/ClockText" android:text="@string/hello_world"
android:id="@+id/analogView" />
<AnalogClock android:background="@drawable/analogclockhoop" android:id="@+id/analogClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogView" android:layout_centerVertical="true"
android:layout_marginLeft="72dip" />
<Button android:text="@string/simpleClockLabel" android:id="@+id/simpleClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogView" android:layout_toRightOf="@+id/analogClock"
android:layout_marginLeft="72dip" />
<Button android:text="@string/worldClockLabel" android:id="@+id/worldClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_toRightOf="@+id/analogClock" android:layout_below="@+id/simpleClock"
android:layout_marginLeft="72dip" android:layout_marginTop="5dip" />
<Button android:text="@string/happyClockLabel" android:id="@+id/happyClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_toRightOf="@+id/analogClock" android:layout_below="@+id/worldClock"
android:layout_marginLeft="72dip" android:layout_marginTop="5dip" />
</RelativeLayout>
@@ -0,0 +1,23 @@
<?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"
android:background="@drawable/plasma720" >
<TextView style="@style/ClockText" android:text="@string/hello_world"
android:id="@+id/analogView" />
<AnalogClock android:background="@drawable/analogclockhoop" android:id="@+id/analogClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogView" android:layout_centerHorizontal="true"
android:layout_marginTop="2dip" />
<Button android:text="@string/simpleClockLabel" android:id="@+id/simpleClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogClock" android:layout_centerHorizontal="true"
android:layout_marginTop="16dip" />
<Button android:text="@string/worldClockLabel" android:id="@+id/worldClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/simpleClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
<Button android:text="@string/happyClockLabel" android:id="@+id/happyClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/worldClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
</RelativeLayout>
@@ -0,0 +1,23 @@
<?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"
android:background="@drawable/plasma1080" >
<TextView style="@style/ClockText" android:text="@string/hello_world"
android:id="@+id/analogView" />
<AnalogClock android:background="@drawable/analogclockhoop" android:id="@+id/analogClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogView" android:layout_centerHorizontal="true"
android:layout_marginTop="2dip" />
<Button android:text="@string/simpleClockLabel" android:id="@+id/simpleClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogClock" android:layout_centerHorizontal="true"
android:layout_marginTop="16dip" />
<Button android:text="@string/worldClockLabel" android:id="@+id/worldClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/simpleClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
<Button android:text="@string/happyClockLabel" android:id="@+id/happyClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/worldClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
</RelativeLayout>
@@ -0,0 +1,23 @@
<?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"
android:background="@drawable/plasma480" >
<TextView style="@style/ClockText" android:text="@string/hello_world"
android:id="@+id/analogView" />
<AnalogClock android:background="@drawable/analogclockhoop" android:id="@+id/analogClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogView" android:layout_centerHorizontal="true"
android:layout_marginTop="2dip" />
<Button android:text="@string/simpleClockLabel" android:id="@+id/simpleClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/analogClock" android:layout_centerHorizontal="true"
android:layout_marginTop="16dip" />
<Button android:text="@string/worldClockLabel" android:id="@+id/worldClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/simpleClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
<Button android:text="@string/happyClockLabel" android:id="@+id/happyClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/worldClock" android:layout_centerHorizontal="true"
android:layout_marginTop="8dip" />
</RelativeLayout>
@@ -0,0 +1,14 @@
<?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" >
<TextView style="@style/ClockText"
android:text="@string/hello_world"
android:id="@+id/digitalView" />
<DigitalClock android:id="@+id/digitalClock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/digitalView"
android:layout_marginTop="32dip"
android:layout_centerHorizontal="true" />
</RelativeLayout>
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawerLayout" android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/plasma1080">
<LinearLayout android:orientation="vertical" android:paddingTop="16dip"
android:paddingLeft="30dip"
android:layout_width="wrap_content" android:layout_height="wrap_content" >
<ImageView android:id="@+id/iv1" android:background="@drawable/ib_earth_normal"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/planet_name_earth" />
<TextView android:text="@string/planet_name_earth" android:textColor="#FFFFFF"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="20sp" android:textStyle="bold" android:id="@+id/tv1" />
<ImageView android:id="@+id/iv2" android:background="@drawable/listviewdiv"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/drawer_layout" />
<TextView android:text="@string/planet_mass_earth" android:textColor="#FFFFFF"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="16sp" android:id="@+id/tv2" android:paddingLeft="30dip"
android:paddingTop="12dip" android:shadowColor="#77000000"
android:shadowDx="-2.4" android:shadowDy="2.4" android:shadowRadius="1.2" />
<TextView android:text="@string/planet_grav_earth" android:textColor="#FFFFFF"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="16sp" android:id="@+id/tv3" android:paddingLeft="30dip"
android:paddingTop="12dip" android:shadowColor="#77000000"
android:shadowDx="-2.4" android:shadowDy="2.4" android:shadowRadius="1.2" />
<TextView android:text="@string/planet_size_earth" android:textColor="#FFFFFF"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="16sp" android:id="@+id/tv4" android:paddingLeft="30dip"
android:paddingTop="12dip" android:shadowColor="#77000000"
android:shadowDx="-2.4" android:shadowDy="2.4" android:shadowRadius="1.2" />
</LinearLayout>
<ListView
android:id="@+id/listView" android:choiceMode="singleChoice"
android:layout_height="match_parent" android:layout_width="120dip"
android:divider="@drawable/listviewdiv" android:dividerHeight="6dip"
android:background="#AAFFFFFF" android:layout_gravity="start"
android:paddingLeft="1dip" android:paddingRight="1dip" >
</ListView>
</android.support.v4.widget.DrawerLayout>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/stars480"
android:layout_width="match_parent" android:layout_height="match_parent"
android:useDefaultMargins="true" android:id="@+id/gridLayout"
android:rowCount="3" android:columnCount="3" android:alignmentMode="alignMargins"
android:rowOrderPreserved="true" android:columnOrderPreserved="true" >
<ImageButton android:src="@drawable/ib_states" android:background="#FFAACCEE"
android:layout_gravity="left|top"
android:id="@+id/ib_earth" android:layout_column="0"
android:layout_row="0" android:contentDescription="@string/ib_earth" />
<ImageButton android:src="@drawable/ib2_states" android:background="#FFEECCAA"
android:layout_gravity="right|top"
android:id="@+id/ib_venus" android:layout_column="2"
android:layout_row="0" android:contentDescription="@string/ib_venus" />
<ImageButton android:src="@drawable/ib3_states" android:background="#FFCCAAEE"
android:layout_gravity="left|bottom"
android:id="@+id/ib_jupiter" android:layout_column="0"
android:layout_row="2" android:contentDescription="@string/ib_jupiter" />
<ImageButton android:src="@drawable/ib4_states" android:background="#FFCCEEAA"
android:layout_gravity="right|bottom"
android:id="@+id/ib_neptune" android:layout_column="2"
android:layout_row="2" android:contentDescription="@string/ib_neptune" />
<TextView android:text="@string/planet_name_earth" android:textColor="#FFFFFF"
android:textSize="20sp" android:textStyle="bold" android:layout_row="1"
android:layout_column="0" android:layout_columnSpan="3"
android:layout_marginBottom="180dip" android:id="@+id/tv1_earth"
android:layout_gravity="center" android:background="#00000000" />
<TextView android:text="@string/planet_mass_earth" android:textColor="#FFFFFF"
android:layout_row="1" android:background="#00000000"
android:layout_column="0" android:layout_columnSpan="3"
android:layout_marginBottom="120dip"
android:layout_gravity="center" android:textSize="16sp"
android:visibility="visible" android:id="@+id/tv2_earth" />
<TextView android:text="@string/planet_grav_earth" android:textColor="#FFFFFF"
android:layout_row="1" android:background="#00000000"
android:layout_column="0" android:layout_columnSpan="3"
android:layout_marginBottom="60dip"
android:layout_gravity="center" android:textSize="16sp"
android:visibility="visible" android:id="@+id/tv3_earth" />
<TextView android:text="@string/planet_size_earth" android:textColor="#FFFFFF"
android:layout_row="1" android:background="#00000000"
android:layout_column="0" android:layout_columnSpan="3"
android:layout_gravity="center" android:textSize="16sp"
android:visibility="visible" android:id="@+id/tv4_earth" />
</GridLayout>

0 comments on commit b2eacd2

Please sign in to comment.