Skip to content

Commit

Permalink
* Added icon
Browse files Browse the repository at this point in the history
* Start of a widget
  • Loading branch information
kconger committed Jun 19, 2014
1 parent 9e2d410 commit b1c6d27
Show file tree
Hide file tree
Showing 37 changed files with 275 additions and 70 deletions.
13 changes: 11 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="org.thecongers.itpms.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:configChanges="keyboardHidden|screenSize|orientation"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -28,6 +28,15 @@
<activity
android:name=".UserSettingActivity" >
</activity>
<receiver android:name="org.thecongers.itpms.iTPMSWidgetProvider">
<intent-filter>
<action
android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/itpms_appwidget" />
</receiver>
</application>

</manifest>
13 changes: 11 additions & 2 deletions bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="org.thecongers.itpms.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:configChanges="keyboardHidden|screenSize|orientation"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -28,6 +28,15 @@
<activity
android:name=".UserSettingActivity" >
</activity>
<receiver android:name="org.thecongers.itpms.iTPMSWidgetProvider">
<intent-filter>
<action
android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/itpms_appwidget" />
</receiver>
</application>

</manifest>
Binary file modified bin/classes.dex
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/MainActivity$1.class
Binary file not shown.
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/MainActivity.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$drawable.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$id.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$layout.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$menu.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$string.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$style.class
Binary file not shown.
Binary file modified bin/classes/org/thecongers/itpms/R$xml.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified bin/org.thecongers.itpms.apk
Binary file not shown.
Binary file removed bin/res/crunch/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed bin/res/crunch/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file modified bin/resources.ap_
Binary file not shown.
12 changes: 9 additions & 3 deletions gen/org/thecongers/itpms/R.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@ public static final class dimen {
public static final int activity_vertical_margin=0x7f060001;
}
public static final class drawable {
public static final int ic_launcher=0x7f020000;
public static final int app_icon=0x7f020000;
}
public static final class id {
public static final int action_settings=0x7f0b0005;
public static final int action_settings=0x7f0b0008;
public static final int alert=0x7f0b0007;
public static final int full_widget=0x7f0b0005;
public static final int imageView1=0x7f0b0002;
public static final int imageView2=0x7f0b0003;
public static final int linearLayout1=0x7f0b0001;
public static final int logo=0x7f0b0006;
public static final int relativeLayout1=0x7f0b0000;
public static final int txtOutput=0x7f0b0004;
}
public static final class layout {
public static final int activity_main=0x7f030000;
public static final int itpms_appwidget_layout=0x7f030001;
}
public static final class menu {
public static final int main=0x7f0a0000;
Expand All @@ -48,6 +52,7 @@ public static final class raw {
}
public static final class string {
public static final int action_settings=0x7f070003;
public static final int app_icon_desc=0x7f07001a;
public static final int app_name=0x7f070000;
public static final int back_wheel_desc=0x7f070002;
public static final int front_alert_settings_title=0x7f070010;
Expand Down Expand Up @@ -103,6 +108,7 @@ public static final class style {
public static final int AppTheme=0x7f090001;
}
public static final class xml {
public static final int user_settings=0x7f040000;
public static final int itpms_appwidget=0x7f040000;
public static final int user_settings=0x7f040001;
}
}
Binary file added res/drawable-hdpi/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file added res/drawable-mdpi/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file added res/drawable-xhdpi/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file added res/drawable-xxhdpi/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
46 changes: 46 additions & 0 deletions res/layout-land/activity_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:orientation="horizontal" >
<ImageView
android:id="@+id/imageView1"
android:contentDescription="@string/front_wheel_desc"
android:layout_width="200dp"
android:layout_height="200dp"
android:scaleType="fitXY"
android:src="@drawable/app_icon" />

<ImageView
android:id="@+id/imageView2"
android:contentDescription="@string/back_wheel_desc"
android:layout_width="200dp"
android:layout_height="200dp"
android:scaleType="fitXY"
android:src="@drawable/app_icon" />
</LinearLayout>

<TextView
android:id="@+id/txtOutput"
android:layout_width="292dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:gravity="bottom"
android:scrollbars="vertical"
android:textAppearance="?android:attr/textAppearanceLarge" />

</RelativeLayout>
4 changes: 2 additions & 2 deletions res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
android:layout_width="200dp"
android:layout_height="200dp"
android:scaleType="fitXY"
android:src="@drawable/ic_launcher" />
android:src="@drawable/app_icon" />

<ImageView
android:id="@+id/imageView2"
android:contentDescription="@string/back_wheel_desc"
android:layout_width="200dp"
android:layout_height="200dp"
android:scaleType="fitXY"
android:src="@drawable/ic_launcher" />
android:src="@drawable/app_icon" />

<TextView
android:id="@+id/txtOutput"
Expand Down
36 changes: 36 additions & 0 deletions res/layout/itpms_appwidget_layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/full_widget"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:gravity="center_vertical" >

<ImageView
android:id="@+id/logo"
android:contentDescription="@string/app_icon_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/app_icon"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:layout_alignParentLeft="true"
android:layout_toRightOf="@id/logo"
android:layout_centerHorizontal="true"
android:maxWidth="100dp"
android:minHeight="100dp" />

<TextView
android:id="@+id/alert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/logo"
android:layout_alignTop="@+id/logo"
android:layout_toRightOf="@id/logo"
android:padding="3dp"
android:gravity="center"
android:textColor="@android:color/black"
android:textSize="12sp"
android:textStyle="bold" />

</RelativeLayout>
3 changes: 3 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@
<string name="pref_rear_low_pressure_summary">Rear Low Pressure Alert Threshold</string>
<string name="pref_rear_high_pressure_name">Rear High Pressure</string>
<string name="pref_rear_high_pressure_summary">Rear High Pressure Alert Threshold</string>

<string name="app_icon_desc">iTPMS Logo</string>


</resources>
7 changes: 7 additions & 0 deletions res/xml/itpms_appwidget.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="220dp"
android:minHeight="72dp"
android:updatePeriodMillis="87000000"
android:initialLayout="@layout/itpms_appwidget_layout">
</appwidget-provider>
Loading

0 comments on commit b1c6d27

Please sign in to comment.