[MANUAL] - creating custom screen

Started by Menion, May 11, 2011, 12:32:04

0 Members and 2 Guests are viewing this topic.

balloni55

#60
Hi menion,
thanks for your work!
I have installed the new version and changed my code, but i get a messages, see Screenshot
[attachment=0:1mpl0rw2]Screenshot.jpg[/attachment:1mpl0rw2]



my code:
<!-- Kompass -->
<LinearLayout
android:id="@+id/linear_layout_01"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:orientation="horizontal">

<SlideView
android:layout_width="match_parent"
android:layout_height="30dip"
locus:action="{orient_course}"
android:background="@drawable/img_compass_slide_background"
locus:slideImage="@drawable/img_compass_slide_b"
locus:slideStartPosition:="1dip"
locus:slideStartValue="180"
locus:slideEndPosition:="match_parent"
locus:slideEndValue="-180"
locus:slideInfinite="[true]" />
</LinearLayout>

Edit 2 times
LMC 3.70.0 AFA
Locus Map 4.22.2 Gold AFA
LMC User ID c8b19276f
LM4 User ID e06d572d4
  •  

Menion

#61
remove ":" in lines

 locus:slideStartPosition:="1dip"
 locus:slideEndPosition:="match_parent"
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

balloni55

#62
many thanks menion,
i am blind !!! :oops:
now it works, great job!
LMC 3.70.0 AFA
Locus Map 4.22.2 Gold AFA
LMC User ID c8b19276f
LM4 User ID e06d572d4
  •  

golgot

#63
Hi All,
Is there any way to make custom screen full screnn (removing the upper line)?
I hope I can share my own custom screen in a near future.
  •  

tommi

#64
Quote from: "golgot"Is there any way to make custom screen full screnn (removing the upper line)?
AFAIK it can only be disabled interactively by the user, see e.g. the yellow bar on the upper right corner in "Minimal by Gynta".
  •  

golgot

#65
Thanks, works perfectly
  •  

golgot

#66
Is it possible to combine actionvisibility to various elements (simultaneously)
for example, I'd like to (un)mask both top panel and another button at the same time?

I've tried to put both :
locus:actionVisibility="@+id/zoomout"
locus:actionVisibility="@+id/locus_top_panel" />

but it doesn't work
  •  

golgot

#67
Menion,
I'm trying to make a custom screen for cycling...

Up to now, I'm able to provide a map screen including various infomations that I find useful for cycling, but this is not enough for me, and I'd like to add some interactivity to these screens. :)

For example, I'd like to change the screen appearance if the speed exceed a pre-defined limit (there is no use to display 10px characters a 50 km/h) :

In my dreams, i'd like to be able to :
 - change screen according to various parameters (speed>40) or conditions (e.g speed>currentmaxspeed)
 - turn LCD on and off.
 - play sounds
 - have some user parameters for my custom scren (threshold aso.)
 - display graphs (altitude, speed)
 - open various locus managers (data manager, map manager, GPS manager aso.)

I'm quite sure it's impossible to do such things with an xml file, so it will be necessary to redefine how custom screens are to be made...
But it can be really nice if we are able to provide a real customization to locus, so this generic application may fit for very specific needs.
  •  

Menion

#68
Hi Golgot,
  firstly, it's possible to set only one item to react on visibility change

  second part is worst :). s you wrote, it's quite hard to do this with just xml file that define GUI. I was already thinking more then year before about some kind of scripting language that will be supported for custom screens, but wasn't really time for this. On custom screens is generally so many work to make them works perfectly. So I have to say sorry, no, for now. I really would like to create from this complex possibility for various interactive useful screens, but my priorities are clear and this unfortunately is not on top of them.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

golgot

#69
Some time ago, I asked for some function (onboard map calibration), your reply was :
"But not all wishes may come true, and this is one that will not."
Now, there is a very useful function in Locus called "onboard map calibration".
So I'm quite confident if you say "but my priorities are clear and this unfortunately is not on top of them"
:)
  •  

Menion

#70
:) yes this is how my developing continue ... when I started work on Locus for a full time, around almost two years ago, some users wanted to create track recording in Locus. And I wrote, no, why, exists many other apps on this. And you see ...

because I'm not huge firm with precise work-list, but I do what I decide to do (at morning), everything is possible :) (btw. on-board calibrator have problems with huge images, also this is planned to improve)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •