android app work in progress - added notification
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 354 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 437 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 501 B |
|
After Width: | Height: | Size: 616 B |
|
After Width: | Height: | Size: 391 B |
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zm1,15h-2v-6h2v6zm0,-8h-2V7h2v2z" />
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.5,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zm6.5,-6v-5.5c0,-3.07 -2.13,-5.64 -5,-6.32V3.5c0,-0.83 -0.67,-1.5 -1.5,-1.5S10,2.67 10,3.5v0.68c-2.87,0.68 -5,3.25 -5,6.32V16l-2,2v1h17v-1l-2,-2z" />
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01,-.25 1.97,-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0,-4.42,-3.58,-8,-8,-8zm0 14c-3.31 0,-6,-2.69,-6,-6 0,-1.01.25,-1.97.7,-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4,-4,-4,-4v3z" />
|
||||
</vector>
|
||||
@@ -14,6 +14,8 @@
|
||||
<WebView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/main_web_view"></WebView>
|
||||
android:id="@+id/main_web_view"
|
||||
android:partition="persist:browser"
|
||||
></WebView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -1,4 +1,39 @@
|
||||
<resources>
|
||||
<string name="app_name">Farm Alarm</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="title_activity_settings">Podešavanje</string>
|
||||
|
||||
<!-- Strings related to Settings -->
|
||||
|
||||
<!-- Example General settings -->
|
||||
<string name="pref_header_general">Generalno</string>
|
||||
|
||||
|
||||
<string name="pref_title_add_friends_to_messages">Add friends to messages</string>
|
||||
<string-array name="pref_example_list_titles">
|
||||
<item>Always</item>
|
||||
<item>When possible</item>
|
||||
<item>Never</item>
|
||||
</string-array>
|
||||
<string-array name="pref_example_list_values">
|
||||
<item>1</item>
|
||||
<item>0</item>
|
||||
<item>-1</item>
|
||||
</string-array>
|
||||
|
||||
<string name="alarm_notification_title_template">Alarm: %1$s</string>
|
||||
|
||||
<!-- TODO: remove this placeholder text -->
|
||||
<string name="alarm_notification_placeholder_text_template">You said %1$s and lorem ipsum dolor
|
||||
sit amet, consectetur adipiscing elit. Etiam non enim magna. Morbi dictum, velit vel semper
|
||||
venenatis, magna odio volutpat velit, at ullamcorper nulla lacus sed turpis. Pellentesque
|
||||
vitae metus elit, nec tincidunt tellus. Integer sed nisl sem, ullamcorper ornare lacus. Duis
|
||||
ac mauris sed massa congue volutpat. Donec sed erat sit amet turpis viverra rhoncus sit amet
|
||||
nec magna. Donec lacinia ligula at libero volutpat volutpat nec nec tortor.
|
||||
</string>
|
||||
|
||||
<string name="action_share">Share</string>
|
||||
<string name="action_reply">Reply</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
27
android/FarmAlarm/app/src/main/res/xml/pref_general.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- NOTE: EditTextPreference accepts EditText attributes. -->
|
||||
<!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:title="Uključiti alram"
|
||||
android:key="alarm_set" />
|
||||
<EditTextPreference
|
||||
android:selectAllOnFocus="true"
|
||||
android:singleLine="true"
|
||||
android:title="Kontroler"
|
||||
android:key="controllers"
|
||||
android:summary="Broj koji jedinstveno određuje vašu Zoblak kutiju" />
|
||||
<EditTextPreference
|
||||
android:defaultValue="7"
|
||||
android:selectAllOnFocus="true"
|
||||
android:singleLine="true"
|
||||
android:title="Period provjere"
|
||||
android:key="period_minutes"
|
||||
android:summary="Koliko često telefon provjerava da li je alarm uključen (u minutama)" />
|
||||
|
||||
<!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
|
||||
dismiss it. -->
|
||||
<!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
|
||||
|
||||
</PreferenceScreen>
|
||||
10
android/FarmAlarm/app/src/main/res/xml/pref_headers.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- These settings headers are only used on tablets. -->
|
||||
|
||||
<header
|
||||
android:fragment="com.zoblak.farmalarm.SettingsActivity$GeneralPreferenceFragment"
|
||||
android:icon="@drawable/ic_info_black_24dp"
|
||||
android:title="@string/pref_header_general" />
|
||||
|
||||
</preference-headers>
|
||||