Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-fixing bits of the rotated image view
- Loading branch information
1 parent
6afa4ab
commit d292dc9
Showing
5 changed files
with
76 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,59 +1,55 @@ | |||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.novoda.example.compass" | package="com.novoda.example.compass" android:versionCode="1" | ||
android:versionCode="1" | android:versionName="1.0"> | ||
android:versionName="1.0" > | |||
|
|
||
<uses-sdk | <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="15" /> | ||
android:minSdkVersion="9" |
|
||
android:targetSdkVersion="15" /> | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
|
|||
<application android:icon="@drawable/ic_launcher" | |||
android:label="@string/app_name" android:theme="@style/Theme.Sherlock.Light" | |||
android:name="NovoCompass"> | |||
|
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | <activity android:name=".activities.CompassActivity" | ||
|
android:screenOrientation="portrait" android:label="@string/title_activity_compass"> | ||
<application | <intent-filter> | ||
android:icon="@drawable/ic_launcher" | <action android:name="android.intent.action.MAIN" /> | ||
android:label="@string/app_name" | <category android:name="android.intent.category.LAUNCHER" /> | ||
android:theme="@style/Theme.Sherlock.Light" android:name="NovoCompass"> | </intent-filter> | ||
<activity | </activity> | ||
android:name=".activities.CompassActivity" |
|
||
android:label="@string/title_activity_compass" > | <!-- Receivers --> | ||
<intent-filter> |
|
||
<action android:name="android.intent.action.MAIN" /> | <receiver android:name="com.novoda.location.receiver.LocationChanged"> | ||
|
<intent-filter> | ||
<category android:name="android.intent.category.LAUNCHER" /> | <action android:name="com.novoda.location.ACTIVE_LOCATION_UPDATE_ACTION" /> | ||
</intent-filter> | </intent-filter> | ||
</activity> | </receiver> | ||
|
|
||
<!-- Receivers --> | <receiver android:name="com.novoda.location.receiver.PassiveLocationChanged" /> | ||
|
|
||
<receiver android:name="com.novoda.location.receiver.LocationChanged" > | <receiver | ||
<intent-filter> | android:name="com.novoda.location.receiver.UnregisterPassiveListenerOnLostConnectivity" | ||
<action android:name="com.novoda.location.ACTIVE_LOCATION_UPDATE_ACTION" /> | enabled="false"> | ||
</intent-filter> | <intent-filter> | ||
</receiver> | <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | ||
|
</intent-filter> | ||
<receiver android:name="com.novoda.location.receiver.PassiveLocationChanged" /> | </receiver> | ||
|
|
||
<receiver | <receiver | ||
android:name="com.novoda.location.receiver.UnregisterPassiveListenerOnLostConnectivity" | android:name="com.novoda.location.receiver.UnregisterPassiveListenerOnLowBattery"> | ||
enabled="false" > | <intent-filter> | ||
<intent-filter> | <action android:name="android.intent.action.BATTERY_LOW" /> | ||
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | <action android:name="android.intent.action.BATTERY_OKAY" /> | ||
</intent-filter> | </intent-filter> | ||
</receiver> | </receiver> | ||
|
|
||
<receiver android:name="com.novoda.location.receiver.UnregisterPassiveListenerOnLowBattery" > | <receiver android:name="com.novoda.location.receiver.RestorePassiveListenerBoot"> | ||
<intent-filter> | <intent-filter> | ||
<action android:name="android.intent.action.BATTERY_LOW" /> | <action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
<action android:name="android.intent.action.BATTERY_OKAY" /> | </intent-filter> | ||
</intent-filter> | </receiver> | ||
</receiver> |
|
||
|
</application> | ||
<receiver android:name="com.novoda.location.receiver.RestorePassiveListenerBoot" > | |||
<intent-filter> | |||
<action android:name="android.intent.action.BOOT_COMPLETED" /> | |||
</intent-filter> | |||
</receiver> | |||
|
|||
</application> | |||
|
|
||
</manifest> | </manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,14 @@ | |||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | ||
android:layout_width="match_parent" | android:layout_height="match_parent" android:orientation="vertical"> | ||
android:layout_height="match_parent" > | |||
|
|
||
<TextView | <TextView android:layout_width="match_parent" | ||
android:layout_width="wrap_content" | android:layout_height="match_parent" android:id="@android:id/text1" | ||
android:layout_height="wrap_content" | android:padding="@dimen/padding_medium" android:layout_weight="10" /> | ||
android:layout_centerHorizontal="true" | |||
android:layout_centerVertical="true" | |||
android:id="@android:id/text1" | |||
android:padding="@dimen/padding_medium" | |||
android:text="@string/hello_world" | |||
tools:context=".CompassActivity" /> | |||
|
|
||
</RelativeLayout> | <com.novoda.example.compass.view.RotatedImageView | ||
android:layout_width="match_parent" android:layout_height="match_parent" | |||
android:layout_weight="1" android:id="@+id/image" /> | |||
|
|||
|
|||
</LinearLayout> |
68 changes: 0 additions & 68 deletions
68
CompassExample/src/com/novoda/example/compass/ImageActivity.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters