Author Topic: [MANUAL] - creating custom screen  (Read 24415 times)

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2069
  • Thanked: 54 times
    • View Profile
  • Device: Motorola G3 MM 6.01, SGS2 CM14 7.1
Re: need help with sliding compass
« Reply #60 on: August 24, 2012, 19:34:07 »
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:
Code: [Select]
<!-- 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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Locus PRO 3.26.1
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10213
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: need help with sliding compass
« Reply #61 on: August 24, 2012, 20:44:56 »
remove ":" in lines

 locus:slideStartPosition:="1dip"
 locus:slideEndPosition:="match_parent"
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2069
  • Thanked: 54 times
    • View Profile
  • Device: Motorola G3 MM 6.01, SGS2 CM14 7.1
Re: need help with sliding compass
« Reply #62 on: August 24, 2012, 21:36:16 »
many thanks menion,
i am blind !!! :oops:
now it works, great job!
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Locus PRO 3.26.1
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #63 on: August 30, 2012, 13:16:32 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline tommi

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1200
  • Thanked: 1 times
  • Devices: Samsung S7 + S5 + S3 + Nexus7 flo
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #64 on: August 30, 2012, 14:55:01 »
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".
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #65 on: August 30, 2012, 15:14:19 »
Thanks, works perfectly
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #66 on: August 30, 2012, 16:28:35 »
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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #67 on: August 30, 2012, 18:55:13 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10213
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - creating custom screen
« Reply #68 on: August 31, 2012, 11:07:11 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - creating custom screen
« Reply #69 on: August 31, 2012, 11:53:56 »
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"
:)
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10213
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - creating custom screen
« Reply #70 on: August 31, 2012, 12:06:25 »
:) 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)
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!