This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:advanced:customization:screens [2015/09/03 15:20] – 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 for Pro version | + | However, **Dashboard** is available only with Premium |
| </ | </ | ||
| ==== Method using Eclipse ==== | ==== Method using Eclipse ==== | ||
| - 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 get all this to work ===== | + | ===== How to make it work ===== |
| **root directory: | **root directory: | ||
| 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: | ||
| - | * **SlideView** (custom | + | * **SlideView** (custom |
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| - | * locus: | + | * locus: |
| * locus: | * locus: | ||
| - | * locus: | + | * locus: |
| - | <WRAP info> | + | < |
| - | **Sample** - let's imagine this image of compass. | + | **Sample** - let's imagine this image of the compass: |
| - | {{: | + | {{ : |
| - | To make it work in full screen width, you need to define these parameters | + | To make it work in full screen width you need to define these parameters: |
| < | < | ||
| android: | android: | ||
| Line 125: | Line 125: | ||
| By this definition, you say that: | By this definition, you say that: | ||
| - | * 1. if orientation angle will be 180°, first pixel (slideStartPosition) will be drawn really as a first pixel. Because | + | * 1. if the orientation angle is 180°, |
| - | * 2. if orientation | + | * 2. if orientation |
| </ | </ | ||
| ==== Global attributes ==== | ==== Global attributes ==== | ||
| - | On all View 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 180: | Line 180: | ||
| * //{speed}// - GPS speed (0 if GPS off) | * //{speed}// - GPS speed (0 if GPS off) | ||
| - | * // | + | * // |
| * // | * // | ||
| * // | * // | ||
| Line 218: | Line 218: | ||
| * parametres should be {i}, {d}, {i.d}, {u} " | * parametres should be {i}, {d}, {i.d}, {u} " | ||
| - | * for example - //" | + | * for example - //" |