This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:advanced:customization:screens [2023/05/04 16:06] – [Custom Screens and Dashboards] mstupka | manual:advanced:customization:screens [2023/07/14 13:46] (current) – mstupka | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Custom | + | ====== Custom |
| ---- | ---- | ||
| - | Method | + | The method |
| <WRAP round tip> | <WRAP round tip> | ||
| - | For most people who want to create their own screens should be enough | + | For most people who want to create their own screens should be enough |
| However, **Dashboard** is available only with Premium and misses some advanced possibilities like rotating images, completely free layout etc. | However, **Dashboard** is available only with Premium and misses some advanced possibilities like rotating images, completely free layout etc. | ||
| Line 11: | Line 11: | ||
| - Download and install Eclipse and Android SDK tools from [[http:// | - Download and install Eclipse and Android SDK tools from [[http:// | ||
| - | - When all works, create a new android | + | - When all works, create a new Android |
| - The project contains // | - The project contains // | ||
| - Put resources (best to use 9-patch images) into //res// folders (supported - //drawable, drawable-hdpi, | - Put resources (best to use 9-patch images) into //res// folders (supported - //drawable, drawable-hdpi, | ||
| - | - After compilation, | + | - After compilation, |
| ==== Using basic text editor ==== | ==== Using basic text editor ==== | ||
| - | You do not have to do previous steps. You can edit xml file directly in any editor. | + | You do not have to do the previous steps. You can edit XML files directly in any editor. |
| ===== How to make it work ===== | ===== How to make it work ===== | ||
| Line 38: | Line 38: | ||
| </ | </ | ||
| - | Place your main layout file into layout directory (or two files, one to layout-land, | + | Place your main layout file into the layout directory (or two files, one to layout-land, |
| - | You can place these files also in root of you .ZIP file (optional) | + | You can place these files also in the root of your .ZIP file (optional) |
| * **icon.png** - small (48x48px) logo of your skin | * **icon.png** - small (48x48px) logo of your skin | ||
| - | * **info.html** - HTML page that will contain description of your skin (some links, donate button or similar is possible) | + | * **info.html** - HTML page that will contain |
| Finally, place this .zip file into the root directory described above! | Finally, place this .zip file into the root directory described above! | ||
| Line 61: | Line 61: | ||
| * [[http:// | * [[http:// | ||
| - | * [[http:// | + | * [[http:// |
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| Line 83: | Line 83: | ||
| * MapScreenView (custom locus view) extends View | * MapScreenView (custom locus view) extends View | ||
| - | * no custom | + | * no custom |
| * RotateView (custom locus view) extends View | * RotateView (custom locus view) extends View | ||
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| * locus: | * locus: | ||
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| - | * locus: | + | * locus: |
| - | * locus: | + | * locus: |
| * locus: | * locus: | ||
| Line 98: | Line 98: | ||
| * **SlideView** (custom Locus view) extends View | * **SlideView** (custom Locus view) extends View | ||
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| * locus: | * locus: | ||
| * locus: | * locus: | ||
| Line 106: | Line 106: | ||
| <WRAP round info> | <WRAP round info> | ||
| - | **Sample** - let's imagine this image of compass: | + | **Sample** - let's imagine this image of the compass: |
| {{ : | {{ : | ||
| Line 123: | Line 123: | ||
| </ | </ | ||
| - | By this definition you say that: | + | By this definition, you say that: |
| - | * 1. if orientation angle is 180°, the first pixel (slideStartPosition) will be drawn really as the first pixel. Because the defined whole range is from 0° - 360° and end value has position on the end (// | + | * 1. if the orientation angle is 180°, the first pixel (slideStartPosition) will be drawn really as the first pixel. Because the defined whole range is from 0° - 360° and the end value has a position on the end (// |
| - | * 2. if orientation is for example 90°, Locus Map firstly | + | * 2. if orientation is for example 90°, Locus Map first computes |
| </ | </ | ||
| ==== Global attributes ==== | ==== Global attributes ==== | ||
| - | On all Views can be applied these attributes: | + | All Views can be applied |
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| - | * [[http:// | + | * [[http:// |
| - | * [[http:// | + | * [[http:// |
| * [[http:// | * [[http:// | ||
| * android: | * android: | ||
| Line 218: | Line 218: | ||
| * parametres should be {i}, {d}, {i.d}, {u} " | * parametres should be {i}, {d}, {i.d}, {u} " | ||
| - | * for example - //" | + | * for example - //" |