Translations by gtranslate.io
Method of creating custom screens requires at least essential knowledge of developing Android and XML files system. Otherwise we recommend to use already created skins. To edit them, use just simple NotePad or any text editing software with XML syntax highlight (for example Notepad++)
For most people who want to create their own screens should be enough using much simpler dashboard system that offers similar functionality in much less painful way.
However, Dashboard is available only for Pro version and misses some advanced possibilities like rotating images, completely free layout etc.
You do not have to do previous steps. You can edit xml file directly in any editor. Previous steps are just recommended way for easy “Drag and drop” creating and also only way to support 9-patch images!
root directory: ./Locus/data/customScreen/
Create .ZIP file that contains this structure:
/assets/ - for custom fonts /drawable/ - (9-patch, or universal) /drawable-hdpi/ /drawable-ldpi/ /drawable-mdpi/ /layout/ - for layout specification (for landscape and portrait or... below... for separate by orientation) /layout-land/ /layout-port/ /values/ (supported colors.xml, styles.xml)
Place your main layout file into layout directory (or two files, one to layout-land, second to layout-port) and rename it to main.xml. That is important because main.xml file is gate to whole layout, it has to be included!
You can place these files also in root of you .ZIP file (optional)
Finally, place this .zip file into the root directory described above!
Sample - let's imagine this image of compass:
To make it work in full screen width you need to define these parameters:
android:layout_width="match_parent" android:layout_height="X" locus:action="{orient_course}" locus:slideImage="X" locus:slideStartPosition="0dip" locus:slideStartValue="180" locus:slideEndPosition="match_parent" locus:slideEndValue="-180" locus:slideInfinite="[true]"
By this definition you say that:
On all Views can be applied these attributes: