Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dave Griffiths
mongoose-2000
Commits
2f311bcb
Commit
2f311bcb
authored
Oct 18, 2013
by
Dave Griffiths
Browse files
activity back stack fixed, colours on bgs, version for ESI demo meeting
parent
7bd24289
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
287 additions
and
217 deletions
+287
-217
android/AndroidManifest.xml
android/AndroidManifest.xml
+5
-9
android/assets/lib.scm
android/assets/lib.scm
+8
-7
android/assets/starwisp.scm
android/assets/starwisp.scm
+268
-197
android/src/foam/mongoose/StarwispBuilder.java
android/src/foam/mongoose/StarwispBuilder.java
+5
-3
android/src/foam/mongoose/starwisp.java
android/src/foam/mongoose/starwisp.java
+1
-1
No files found.
android/AndroidManifest.xml
View file @
2f311bcb
...
...
@@ -10,22 +10,18 @@
>
<activity
android:name=
"starwisp"
android:noHistory=
"true"
android:label=
"@string/app_name"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
"MainActivity"
></activity>
<activity
android:name=
"ObservationsActivity"
></activity>
<activity
android:name=
"ObservationActivity"
></activity>
<activity
android:name=
"IndividualSelectActivity"
></activity>
<activity
android:name=
"PupFocalActivity"
></activity>
<activity
android:name=
"PupFocalEventActivity"
></activity>
<activity
android:name=
"EventSelfActivity"
></activity>
<activity
android:name=
"EventFedActivity"
></activity>
<activity
android:name=
"EventAggressionActivity"
></activity>
<activity
android:name=
"ObservationActivity"
android:noHistory=
"true"
></activity>
<activity
android:name=
"IndividualSelectActivity"
android:noHistory=
"true"
></activity>
<activity
android:name=
"PupFocalActivity"
android:noHistory=
"true"
></activity>
<activity
android:name=
"EventSelfActivity"
android:noHistory=
"true"
></activity>
<activity
android:name=
"ManagePacksActivity"
></activity>
<activity
android:name=
"NewPackActivity"
></activity>
<activity
android:name=
"ManageIndividualActivity"
></activity>
...
...
android/assets/lib.scm
View file @
2f311bcb
...
...
@@ -334,12 +334,13 @@
(
define
(
widget-type
w
)
(
list-ref
w
0
))
(
define
(
widget-id
w
)
(
list-ref
w
1
))
(
define
(
linear-layout
id
orientation
layout
children
)
(
list
"linear-layout"
id
orientation
layout
children
))
(
define
(
linear-layout
id
orientation
layout
colour
children
)
(
list
"linear-layout"
id
orientation
layout
colour
children
))
(
define
(
linear-layout-id
t
)
(
list-ref
t
1
))
(
define
(
linear-layout-orientation
t
)
(
list-ref
t
2
))
(
define
(
linear-layout-layout
t
)
(
list-ref
t
3
))
(
define
(
linear-layout-children
t
)
(
list-ref
t
4
))
(
define
(
linear-layout-colour
t
)
(
list-ref
t
4
))
(
define
(
linear-layout-children
t
)
(
list-ref
t
5
))
;;(define (grid-layout id cols orientation layout children)
;; (list "grid-layout" id cols orientation layout children))
...
...
@@ -517,16 +518,16 @@
(
define
(
horiz
.
l
)
(
linear-layout
(
make-id
"xv"
)
'horizontal
0
'horizontal
(
layout
'fill-parent
'fill-parent
1
'left
)
(
list
0
0
0
0
)
l
))
(
define
(
vert
.
l
)
(
linear-layout
(
make-id
"xv"
)
'vertical
0
'vertical
(
layout
'fill-parent
'fill-parent
1
'left
)
(
list
0
0
0
0
)
l
))
(
define
(
activity
name
layout
on-create
on-start
on-resume
on-pause
on-stop
on-destroy
on-activity-result
)
...
...
android/assets/starwisp.scm
View file @
2f311bcb
This diff is collapsed.
Click to expand it.
android/src/foam/mongoose/StarwispBuilder.java
View file @
2f311bcb
...
...
@@ -141,7 +141,7 @@ public class StarwispBuilder
BuildLayoutParam
(
arr
.
getString
(
2
)),
(
float
)
arr
.
getDouble
(
3
));
lp
.
gravity
=
BuildLayoutGravity
(
arr
.
getString
(
4
));
//
lp.setMargins(
5,5,5,5
);
lp
.
setMargins
(
0
,
0
,
0
,
0
);
return
lp
;
}
catch
(
JSONException
e
)
{
Log
.
e
(
"starwisp"
,
"Error parsing data "
+
e
.
toString
());
...
...
@@ -207,9 +207,11 @@ public class StarwispBuilder
v
.
setId
(
arr
.
getInt
(
1
));
v
.
setOrientation
(
BuildOrientation
(
arr
.
getString
(
2
)));
v
.
setLayoutParams
(
BuildLayoutParams
(
arr
.
getJSONArray
(
3
)));
v
.
setPadding
(
5
,
5
,
5
,
5
);
v
.
setPadding
(
2
,
2
,
2
,
2
);
JSONArray
col
=
arr
.
getJSONArray
(
4
);
v
.
setBackgroundColor
(
Color
.
argb
(
col
.
getInt
(
3
),
col
.
getInt
(
0
),
col
.
getInt
(
1
),
col
.
getInt
(
2
)));
parent
.
addView
(
v
);
JSONArray
children
=
arr
.
getJSONArray
(
4
);
JSONArray
children
=
arr
.
getJSONArray
(
5
);
for
(
int
i
=
0
;
i
<
children
.
length
();
i
++)
{
Build
(
ctx
,
ctxname
,
new
JSONArray
(
children
.
getString
(
i
)),
v
);
}
...
...
android/src/foam/mongoose/starwisp.java
View file @
2f311bcb
...
...
@@ -92,7 +92,7 @@ public class starwisp extends StarwispActivity
// build static things
m_Scheme
=
new
Scheme
(
this
);
m_Builder
=
new
StarwispBuilder
(
m_Scheme
);
m_Name
=
"
splash
"
;
m_Name
=
"
main
"
;
// tell scheme the date
final
Calendar
c
=
Calendar
.
getInstance
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment