Страница 1 из 1

Layout manual edit guide

СообщениеДобавлено: 16 апр 2012, 10:13
Here is a short layout of how visual screens could be modified (this is not yet supported from UI)

Files *.layout
These describe all the available sections (screens) and their sensors. You can define your sections in file user.layout
Код: Выделить всё
  <section name="General" fixed="true">
    <grid rows="25,,30" cols="30,,30">
        <item id="FuelLevel"/>
        <item id="FuelEconomy_trip" size='large'/>
        <item id="BatteryVoltage" size='medium' period='5000'/>

This sample defines 3x3 section (rows and cols parameters are used to define number of columns and rows, and their relative width in percents).
Each item - is a separate sensor. Sensor IDs could be found in
in doc/hobdSensors.html or in "All Sensors" screen.

Making hobdrive to display current date/time

1. To replace some non-working sensor with the current Time, you have to edit default-landscape.layout file, and replace

<item id="AirTemp" period='10000'/>
<item id="DateTime" custom-units="timesec" units="none"/>

You may configure custom time formats: add attribute
to the item.

Other values are "date", "time", "timesec", "seconds".

Possible actions

"ChangeLiterCost" - Dialog with fuel price
"FuelCalibration" - Fuel Tank calibration dialog
"SensorInformation" - Sensor information and details dialog
"NewFueling" - New fueling dialog
"NewMaintenance" - New maintenance record dialog
"Minimize" - Minimize
"Shutdown" - Shutdown app
"VehicleSettings" - Vehicle settings dialog
"PortSettings" - Connection settings dialog
"ExtraSettings" - System settings dialog
"EditSensorsLayout" - NOP
"CorrectionInformation" - NOOP
"go(General)" - Switch to screen with specified name
"run(winamp trololo.mp3)" - Run the specific application, on android - run the intent.

Beside "onclick" attribute it is possible to use "ondoubleclick" and "onhold".

Re: Layout manual edit guide

СообщениеДобавлено: 17 апр 2012, 17:48
Thank you so much Cail, you told me the instruction already actually, here is for example that I modified by your instruction, and so cool... :lol:


HobDrive is my favorite application for diagnostic my car, Honda City :D

Re: Layout manual edit guide

СообщениеДобавлено: 03 июл 2012, 16:36
Thanks for the great support Cail!

i've made some major changes... since trip, fuel consumption and things like that are not my goal...




I want to make the refresh rate the highest possible on lambda for example, is there a way that I can stop HOBD trip calculations so i can speed up all the sensors that i use?

how can I remove the "Trip: Auto Trip" from main screen?

Re: Layout manual edit guide

СообщениеДобавлено: 04 июл 2012, 05:16
Rapa, interesting layout, thanks.

Right now you can't stop FE calculations totally. But this option will be available in next beta release (soon I hope).
I'll consider adding more flexibility to layout definitions, so you could also remove "trip" pane.

Re: Layout manual edit guide

СообщениеДобавлено: 04 июл 2012, 14:29
Thanks cail!!! this is a great software really.. I'm impressed!

Re: Layout manual edit guide

СообщениеДобавлено: 05 июл 2012, 13:44
is it possible to rename the sensors?

i tried
<item id="BatteryVoltage" size='medium' period='5000' name="Voltage"/>
<item id="BatteryVoltage" size='medium' period='5000' display=="Voltage"/>

didn't work...

Re: Layout manual edit guide

СообщениеДобавлено: 05 июл 2012, 15:49
Sensor names are translated, therefore they are all in "lang/en.sensors.lang".
Better add another file "lang/en.xuser.lang", and add all your customizations inthere.
This way you'll get no problems after software upgrade.

Re: Layout manual edit guide

СообщениеДобавлено: 05 июл 2012, 15:54
ok thanks!