Layout manual edit guide
Сообщений: 8
|Страница 1 из 1
Layout manual edit guide
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
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'/>
with
<item id="DateTime" custom-units="timesec" units="none"/>
You may configure custom time formats: add attribute
custom-units="datetime"
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".
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'/>
with
<item id="DateTime" custom-units="timesec" units="none"/>
You may configure custom time formats: add attribute
custom-units="datetime"
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".
HobDrive(свежак) + Android4 rk3188 2din + Elm327USB + Pontiac Vibe 2003
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Re: Layout manual edit guide
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...

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


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

Go HobDrive Go !
Re: Layout manual edit guide
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?
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
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.
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.
HobDrive(свежак) + Android4 rk3188 2din + Elm327USB + Pontiac Vibe 2003
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Re: Layout manual edit guide
Thanks cail!!! this is a great software really.. I'm impressed!
Re: Layout manual edit guide
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...
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
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.
Better add another file "lang/en.xuser.lang", and add all your customizations inthere.
This way you'll get no problems after software upgrade.
HobDrive(свежак) + Android4 rk3188 2din + Elm327USB + Pontiac Vibe 2003
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Re: Layout manual edit guide
ok thanks!
Сообщений: 8
|Страница 1 из 1
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3