redpotion 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/project/version.rb +1 -1
- data/templates/screen/app/screens/name_screen.rb +14 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2954e70dc1cf64c04d9fc1a02ee509e09f8aa8
|
4
|
+
data.tar.gz: 6d91699310c70f8917cd0158c009d6c95998992d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797f9f817215881b74b8471a46cb9d47f1a61bcdb5d7a4ba6183f4fef4ba1c19f864cbb9c1b97aaed66946296509d652752da9124c8810098b363ced140d4ead
|
7
|
+
data.tar.gz: b50859d174deabdfb5d836903feac0b98bfcdb8b2b919438d8fab8441a328ae1886964e24e81f02db1ac53c700298ff82acd8e1decdd4da5e91ec47bf510960f
|
data/lib/project/version.rb
CHANGED
@@ -4,25 +4,26 @@ class <%= @name_camel_case %>Screen < PM::<%= @screen_base %>
|
|
4
4
|
|
5
5
|
def on_load
|
6
6
|
end
|
7
|
-
|
8
7
|
<% if @screen_base == 'TableScreen' %>
|
9
8
|
def table_data
|
10
9
|
[]
|
11
10
|
end
|
12
11
|
<% end %>
|
13
|
-
|
14
|
-
#
|
15
|
-
|
16
|
-
#
|
17
|
-
#
|
18
|
-
# st
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
12
|
+
|
13
|
+
# Remove the following if you're only using portrait
|
14
|
+
|
15
|
+
# You don't have to reapply styles to all UIViews, if you want to optimize, another way to do it
|
16
|
+
# is tag the views you need to restyle in your stylesheet, then only reapply the tagged views, like so:
|
17
|
+
# def logo(st)
|
18
|
+
# st.frame = {t: 10, w: 200, h: 96}
|
19
|
+
# st.centered = :horizontal
|
20
|
+
# st.image = image.resource('logo')
|
21
|
+
# st.tag(:reapply_style)
|
22
|
+
# end
|
22
23
|
#
|
23
|
-
# Then in
|
24
|
-
#
|
25
|
-
def
|
24
|
+
# Then in will_animate_rotate
|
25
|
+
# find(:reapply_style).reapply_styles#
|
26
|
+
def will_animate_rotate(orientation, duration)
|
26
27
|
find.all.reapply_styles
|
27
28
|
end
|
28
29
|
end
|