Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have removed some strings from resources #54

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
18 changes: 18 additions & 0 deletions LuttuLibrary/src/com/luttu/AppPrefes.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,23 @@ public void SaveData(String Tag, String text) {
prefsEditor.commit();
}

/****
*
* IsTrue() get the boolean value from the preference
*
* */
public boolean IsTrue(String key, boolean defValue) {
boolean res = appSharedPrefs.getBoolean(key, defValue);
return res;
}
/****
*
* SaveBoolean() save the boolean value to the preference
*
* */
public void SaveBoolean(String key, boolean boValue) {
prefsEditor.putBoolean(key, boValue);
prefsEditor.commit();
}

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OpenVehicleApp/res/drawable-mdpi/m_path_location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions OpenVehicleApp/res/layout/marker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
for map marker
http://stackoverflow.com/questions/15783227/aligning-the-text-in-google-maps-marker-snippet
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<!--
<TextView
android:id="@+id/info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
-->

<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:singleLine="true"
android:text="title"
android:textStyle="bold" />

<TextView
android:id="@+id/info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/title"
android:text="info" />

</RelativeLayout>
55 changes: 55 additions & 0 deletions OpenVehicleApp/res/layout/mmap.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/graphMap"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/graphParent"
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="vertical" >

<LinearLayout
android:id="@+id/graph"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/graphButtons"
android:layout_toStartOf="@+id/graphButtons"
android:orientation="horizontal" >

</LinearLayout>

<RelativeLayout
android:id="@+id/graphButtons"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:orientation="horizontal" >

<Button
android:id="@+id/buttonNexpLocation"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:enabled="false"
android:onClick="NexpLocation"
android:scaleType="fitXY"
android:text="@string/right_arrow" />

<Button
android:id="@+id/ButtonPrevLocation"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_below="@+id/buttonNexpLocation"
android:layout_centerHorizontal="true"
android:scaleType="fitXY"
android:enabled="false"
android:onClick="PrevLocation"
android:text="@string/left_arrow" />

</RelativeLayout>

</RelativeLayout>
<fragment
android:id="@+id/mmap"
android:name="pl.mg6.android.maps.extensions.SupportMapFragment"
Expand Down
2 changes: 1 addition & 1 deletion OpenVehicleApp/res/layout/progress_layer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Cancel"
android:text="@android:string/cancel"
android:id="@+id/progress_cancel"
android:layout_gravity="center_horizontal"
/>
Expand Down
119 changes: 116 additions & 3 deletions OpenVehicleApp/res/layout/setting.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
Expand Down Expand Up @@ -122,6 +122,119 @@

</TableRow>

</TableLayout>
<!-- LOGGED PATH -->

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="50dip"
android:background="#e3e3e3" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:text="@string/LOGGED_PATH"
android:textColor="@android:color/black"
android:textSize="15sp" />
</RelativeLayout>

<!-- Show logged path CheckBox -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:id="@+id/cluster_views_logged_path" >

<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Show_logged_path"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:textColor="@android:color/white" />

<CheckBox
android:id="@+id/checkbox_cluster_logged_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:checked="true" />

</RelativeLayout>

<!-- Show logged path EditText -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="2dp"
android:paddingTop="2dp"
android:paddingLeft="15dp"
android:paddingRight="15dp" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:text="@string/EditText_logged_path"
android:textColor="@android:color/white" />
</RelativeLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="2dp"
android:paddingTop="2dp"
android:paddingLeft="15dp"
android:paddingRight="15dp" >

<EditText
android:id="@+id/editText_logged_path"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="numberDecimal"
android:singleLine="true"
android:textColor="@android:color/white" >

<requestFocus />
</EditText>

<SeekBar
android:id="@+id/seekbar_cluster_size_logged_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="120"
/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="2dp"
android:paddingTop="2dp"
android:paddingLeft="15dp"
android:paddingRight="15dp" >

<Button
android:id="@+id/button_Default"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="defaultSettings"
android:text="@string/Default" />

</LinearLayout>
</LinearLayout>

</TableLayout>
</ScrollView>
8 changes: 8 additions & 0 deletions OpenVehicleApp/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<string name="LastUpdated" formatted="false">Letztes Update: %1$tD %1$tT</string>
<string formatted="false" name="SOC">%s%%</string>
<string name="AddCar">+</string>
<!-- Use android.R.string.cancel istead R.string.Cancel
Use "@android:string/cancel" istead "@string/Cancel"

<string name="Cancel">Abbrechen</string>
-->
<string name="Delete">Entfernen</string>
<string name="Save">Speichern</string>
<string name="Send">Absenden</string>
Expand All @@ -19,8 +23,12 @@
<string name="UserPass">Benutzer Passwort (Paranoid Modus)</string>
<string name="Quit">App beenden</string>
<string name="Edit">Bearbeiten</string>
<!-- Use android.R.string.yes istead R.string.Yes
Use "@android:string/yes" istead "@string/Yes"

<string name="Yes">Ja</string>
<string name="No">Nein</string>
-->
<string name="ClearNotifications">Benachrichtigungen löschen</string>
<string name="VehicleImage">Fahrzeug-Bild</string>
<string name="btnAddCar">Auto hinzufügen</string>
Expand Down
8 changes: 8 additions & 0 deletions OpenVehicleApp/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<string name="LastUpdated" formatted="false">mise à jour: %1$tF %1$tT</string>
<string name="SOC">%s%%</string>
<string name="AddCar">+</string>
<!-- Use android.R.string.cancel istead R.string.Cancel
Use "@android:string/cancel" istead "@string/Cancel"

<string name="Cancel">Annuler</string>
-->
<string name="Delete">Supprimer</string>
<string name="Save">Enregister</string>
<string name="Send">Envoyer</string>
Expand All @@ -19,8 +23,12 @@
<string name="UserPass">Mot de passe utilisateur(Mode Paranoïa)</string>
<string name="Quit">Quitter l\'application</string>
<string name="Edit">Modifier</string>
<!-- Use android.R.string.yes istead R.string.Yes
Use "@android:string/yes" istead "@string/Yes"

<string name="Yes">Oui</string>
<string name="No">Non</string>
-->
<string name="ClearNotifications">Effacer les notifications</string>
<string name="VehicleImage">Image du véhicule</string>
<string name="btnAddCar">Ajouter</string>
Expand Down
8 changes: 8 additions & 0 deletions OpenVehicleApp/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<string name="LastUpdated" formatted="false">Bijgewerkt: %1$tD %1$tT</string>
<string name="SOC">%s%%</string>
<string name="AddCar">+</string>
<!-- Use android.R.string.cancel istead R.string.Cancel
Use "@android:string/cancel" istead "@string/Cancel"

<string name="Cancel">Annuleren</string>
-->
<string name="Delete">Verwijderen</string>
<string name="Save">Bewaren</string>
<string name="Send">Zenden</string>
Expand All @@ -19,8 +23,12 @@
<string name="UserPass">Gebruikerswachtwoord (Paranoid Mode)</string>
<string name="Quit">Verlaat Applicatie</string>
<string name="Edit">Wijzigen</string>
<!-- Use android.R.string.yes istead R.string.Yes
Use "@android:string/yes" istead "@string/Yes"

<string name="Yes">Ja</string>
<string name="No">Nee</string>
-->
<string name="ClearNotifications">Verwijder Merdingen</string>
<string name="VehicleImage">Voertuig Afbeelding</string>
<string name="btnAddCar">Voertuig Toevoegen</string>
Expand Down
8 changes: 8 additions & 0 deletions OpenVehicleApp/res/values-no/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<string name="LastUpdated" formatted="false">Oppdatert: %1$tD %1$tT</string>
<string name="SOC">%s%%</string>
<string name="AddCar">+</string>
<!-- Use android.R.string.cancel istead R.string.Cancel
Use "@android:string/cancel" istead "@string/Cancel"

<string name="Cancel">Avbryt</string>
-->
<string name="Delete">Slett</string>
<string name="Save">Lagre</string>
<string name="Send">Send</string>
Expand All @@ -19,8 +23,12 @@
<string name="UserPass">Bruker Passord (Paranoid Modus)</string>
<string name="Quit">Avslutt Program</string>
<string name="Edit">Redigere</string>
<!-- Use android.R.string.yes istead R.string.Yes
Use "@android:string/yes" istead "@string/Yes"

<string name="Yes">Ja</string>
<string name="No">Nei</string>
-->
<string name="ClearNotifications">Slett Melding</string>
<string name="VehicleImage">Kjøretøybilde</string>
<string name="btnAddCar">Legg Til Bil</string>
Expand Down
Loading