Dies zeigt Ihnen die Unterschiede zwischen zwei Versionen der Seite.
Beide Seiten vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
manual:advanced:customization:screens [2015/05/15 11:51] - mstupka | manual:advanced:customization:screens [2023/07/14 13:46] (Strom) - mstupka | ||
---|---|---|---|
Linie 1: | Linie 1: | ||
- | ====== | + | ====== Benutzerdefiniert |
---- | ---- | ||
- | < | + | The method of creating custom screens requires at least essential knowledge of developing Android and XML files system. Otherwise, we recommend using already-created skins. To edit them, use just a simple NotePad or any text editing software with XML syntax highlight (for example [[http:// |
- | ===== Basic description ===== | + | <WRAP round Tip> |
+ | For most people who want to create their own screens should be enough to use a much simpler **[[manual: | ||
- | Basic explanation of Custom screen creation method. Whole system is mainly for people familiar with Android developing and XML files system. If you're not, better is to use already created skins and look at them (as sample). To edit, use just simple NotePad or any notepad program with XML syntax highlight (suggested for example [[http:// | + | aber, **Dashboard** is available only mit Premium |
- | <WRAP tip> | + | |
- | For most people who want to create own screens should be enough using much simpler **[[manual: | + | |
- | + | ||
- | **Dashboard** is sowieso | + | |
</ | </ | ||
==== Method using Eclipse ==== | ==== Method using Eclipse ==== | ||
- | - Download and install | + | - Download and install |
- | - Nach der all works, create new androide | + | - Wann all works, create |
- | - Projekt | + | - Das Projekt |
- 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-Datei directly in any editor. | + | Sie müssen nicht tun previous steps. You can edit XML-Dateien directly in any editor. |
- | ===== So geht's get actually all this works ===== | + | ===== So geht's Bring es zum Laufen ===== |
**root directory: | **root directory: | ||
- | erstellen | + | Create .ZIP file that enthält |
< | < | ||
Linie 35: | Linie 32: | ||
/ | / | ||
/ | / | ||
- | /layout/ - for layout specification (for landscape and portrait or ... below ... for separate by orientation) | + | /layout/ - for layout specification (for landscape and portrait or... below... for separate by orientation) |
/ | / | ||
/ | / | ||
Linie 41: | Linie 38: | ||
</ | </ | ||
- | Place your main layout file into layout directory (or two files, one to layout-land, | + | Place your main layout file into layout directory (or two files, one to layout-land, |
- | also in root of U ZIP-Datei, you can place these files (optional) | + | You can place these files auch in Wurzel von Ihre .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 U skin (some links, donate button or similar is possible) | + | * **info.html** - HTML page that will contain |
- | Finally, place this zip file, into root directory described above! | + | Finally, place this .zip file into root directory described above! |
===== Supported Views ===== | ===== Supported Views ===== | ||
Linie 64: | Linie 61: | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Linie 71: | Linie 68: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[creating_custom_screen?&# | + | * [[Bildschirme?&# |
- | * [[creating_custom_screen?&# | + | * [[Bildschirme?&# |
* [[http:// | * [[http:// | ||
- | * [[creating_custom_screen?&# | + | * [[Bildschirme?&# |
- | * [[creating_custom_screen?&# | + | * [[Bildschirme?&# |
* [[http:// | * [[http:// | ||
Linie 86: | Linie 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 Kompass: |
- | {{: | + | {{ :manuell: |
- | 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: | ||
Linie 128: | Linie 125: | ||
Mit dieser Definition sagt man: | Mit dieser Definition sagt man: | ||
- | * 1. if orientation angle wird sein 180°, first pixel (slideStartPosition) will be drawn really as a first pixel. Because | + | * 1. if Orientierungswinkel is 180 °, |
- | * 2. if orientation | + | * 2. if orientation |
</ | </ | ||
==== Global attributes ==== | ==== Global attributes ==== | ||
- | On all View can be applied these attributes | + | Alle Ansichten angewendet werden kann |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
* [[http:// | * [[http:// | ||
* android: | * android: | ||
Linie 183: | Linie 180: | ||
* //{speed}// - GPS speed (0 if GPS off) | * //{speed}// - GPS speed (0 if GPS off) | ||
- | * // | + | * // |
* // | * // | ||
* // | * // | ||
Linie 221: | Linie 218: | ||
* parametres should be {i}, {d}, {i.d}, {u} " | * parametres should be {i}, {d}, {i.d}, {u} " | ||
- | * for example - //" | + | * for example - //" |