Layout manual edit guide

Common discussion area

Layout manual edit guide

cail » 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'/>
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
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Аватара пользователя
Администратор
 
Имя: Игорь
Сообщения: 4310
Зарегистрирован: 06 дек 2011, 15:49
Откуда: Нижний Новгород

Re: Layout manual edit guide

WuMeiGuang » 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
Go HobDrive Go !
Аватара пользователя
Начинающий
 
Сообщения: 13
Зарегистрирован: 02 апр 2012, 18:14

Re: Layout manual edit guide

Rapa » 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?
Аватара пользователя
Начинающий
 
Сообщения: 14
Зарегистрирован: 28 июн 2012, 00:29

Re: Layout manual edit guide

cail » 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.
HobDrive(свежак) + Android4 rk3188 2din + Elm327USB + Pontiac Vibe 2003
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Аватара пользователя
Администратор
 
Имя: Игорь
Сообщения: 4310
Зарегистрирован: 06 дек 2011, 15:49
Откуда: Нижний Новгород

Re: Layout manual edit guide

Rapa » 04 июл 2012, 14:29

Thanks cail!!! this is a great software really.. I'm impressed!
Аватара пользователя
Начинающий
 
Сообщения: 14
Зарегистрирован: 28 июн 2012, 00:29

Re: Layout manual edit guide

Rapa » 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...
Аватара пользователя
Начинающий
 
Сообщения: 14
Зарегистрирован: 28 июн 2012, 00:29

Re: Layout manual edit guide

cail » 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.
HobDrive(свежак) + Android4 rk3188 2din + Elm327USB + Pontiac Vibe 2003
Не пишите пожалуйста вопросы в личку. Создавайте тему в соответствующем форуме.
Аватара пользователя
Администратор
 
Имя: Игорь
Сообщения: 4310
Зарегистрирован: 06 дек 2011, 15:49
Откуда: Нижний Новгород

Re: Layout manual edit guide

Rapa » 05 июл 2012, 15:54

ok thanks!
Аватара пользователя
Начинающий
 
Сообщения: 14
Зарегистрирован: 28 июн 2012, 00:29


Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 5
cron