Add original project.
This commit is contained in:
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Executable
+160
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/activity_main"
|
||||
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="com.hyperling.apps.infinitetimer.MainActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvUpperLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_margin="4dp"
|
||||
android:textSize="18sp"
|
||||
android:text="@string/tvUpperLabel"/>
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/btnEditTexts"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_below="@+id/tvUpperLabel"
|
||||
android:layout_centerHorizontal="true">
|
||||
|
||||
<TableRow
|
||||
android:id="@+id/trTime"
|
||||
android:weightSum="4">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnChooseTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:text="@string/btnChooseTime"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etHours"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/tvHoursHint"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:inputType="number"/>
|
||||
|
||||
<TextView
|
||||
android:text=":"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etMinutes"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/tvMinutesHint"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:inputType="number"/>
|
||||
|
||||
<TextView
|
||||
android:text=":"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etSeconds"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/tvSecondsHint"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:inputType="number"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDot"
|
||||
android:text="@string/tvDot"
|
||||
android:textStyle="bold"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etMillis"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/tvMillisHint"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:inputType="number"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
</TableLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvLowerLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_above="@+id/chronometer"
|
||||
android:textSize="18sp"
|
||||
android:text="@string/tvLowerLabel"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chronometer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_margin="4dp"
|
||||
android:textSize="64sp"/>
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tblButtons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@+id/chronometer"
|
||||
android:layout_margin="8dp" >
|
||||
|
||||
<TableRow
|
||||
android:weightSum="2">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnStartStop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnResetPause"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
</TableLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<?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">
|
||||
|
||||
</RelativeLayout>
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_milis"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/action_millis"
|
||||
app:showAsAction="never"
|
||||
android:checkable="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_enable_ads"
|
||||
android:orderInCategory="150"
|
||||
android:title="@string/action_enable_ads"
|
||||
app:showAsAction="never"
|
||||
android:checkable="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:orderInCategory="500"
|
||||
android:title="@string/action_exit"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Executable
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="InfiniteTimer" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
||||
<item name="android:colorBackground">@color/colorBG</item>
|
||||
</style>
|
||||
</resources>
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#CCAA66</color>
|
||||
<color name="colorPrimaryDark">#775533</color>
|
||||
<color name="colorAccent">#CCAA66</color>
|
||||
<color name="colorBG">#FFDD99</color>
|
||||
</resources>
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<resources>
|
||||
<!-- App details -->
|
||||
<string name="appName">Infinite Timer</string>
|
||||
<string name="appVersion">Test v201610291024</string>
|
||||
<string name="TAG">com.hyperling.apps.infinitetimer</string>
|
||||
|
||||
<!-- Keys -->
|
||||
<string name="keySharedPreferences">InfiniteTimer</string>
|
||||
<string name="keyDebug">DEBUG</string>
|
||||
<string name="keyChronometerTime">ChronometerTime</string>
|
||||
<string name="keyLoopInterval">LoopInterval</string>
|
||||
<string name="keyStartStop">StartStop</string>
|
||||
<string name="keyAppOpen">AppOpen</string>
|
||||
<string name="keyServiceRunning">ServiceRunning</string>
|
||||
|
||||
<!-- UI Text -->
|
||||
<string name="btnStart">Start</string>
|
||||
<string name="btnStop">Stop</string>
|
||||
<string name="btnChooseTime">Choose Time</string>
|
||||
<string name="btnReset">Reset</string>
|
||||
<string name="btnPause">Pause</string>
|
||||
<string name="btnResume">Resume</string>
|
||||
|
||||
<string name="chronometerDefault">00:00:00</string>
|
||||
|
||||
<string name="tvHoursHint">Hours</string>
|
||||
<string name="tvMinutesHint">Minutes</string>
|
||||
<string name="tvSecondsHint">Seconds</string>
|
||||
<string name="tvMillisHint">Millis</string>
|
||||
<string name="tvDot">.</string>
|
||||
|
||||
<string name="tvUpperLabel"><b>Amount of time between notifications:</b></string>
|
||||
<string name="tvLowerLabel"><b>Countdown to next notification:</b></string>
|
||||
|
||||
<string name="action_millis">Enable Millisecs</string>
|
||||
<string name="action_enable_ads">Enable Ads</string>
|
||||
<string name="action_exit">Exit</string>
|
||||
</resources>
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="InfiniteTimer" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:colorBackground">@color/colorBG</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user