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 Notepad++)
For most people who want to create their own screens should be enough to use a much simpler dashboard system that offers similar functionality in a much less painful way.
However, Dashboard is available only with Premium and misses some advanced possibilities like rotating images, completely free layout etc.
You do not have to do the previous steps. You can edit XML files directly in any editor. The previous steps are just recommended ways for easy “Drag and drop” creating and also the 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 the 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 the gate to the whole layout, it has to be included!
You can place these files also in the root of your .ZIP file (optional)
Finally, place this .zip file into the root directory described above!
Sample - let's imagine this image of the 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:
All Views can be applied with these attributes: