







Translated from English by gtranslate.io
This is an old revision of the document!
This page is obsolete and will be reworked soon
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 Notepad++)
For most people who want to create own screens should be enough using much simpler dashboard system that offers similar functionality in much less painful way.
Dashboard is anyway available only for Pro version and miss 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 contain 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 have to be included!
also in root of you ZIP file, you can place these files (optional)
Finally, place this zip file, into 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 View can be applied these attributes