jasonkneen / com.jasonkneen.dynamictss Goto Github PK
View Code? Open in Web Editor NEWWidget for Titanium ALloy MVC Framework for Dynamic Portrait / Landscape TSS styling
Widget for Titanium ALloy MVC Framework for Dynamic Portrait / Landscape TSS styling
Simplisticly I have:
<ListView defaultItemTemplate="template">
<Templates>
<ItemTemplate>
<View class="foo"></View>
</ItemTemplate>
</Templates>
<ListSection>
<ListItem></ListItem>
</ListSection>
</ListView>
And:
".foo": {
backgroundColor: "blue"
landscape: {
backgroundColor: "red"
},
portrait: {
backgroundColor: "green"
}
}
But the color is always blue and never change.
Of course, I have included the and everything...
Hey @jasonkneen what the status at this point?
Still valid?
Got the following issue.
When I start my App and have the Device in Portrait Mode it works as have.
When I start it, while the Device is in Landscape mode, the App Crash after I open the window / controller with the Widget. Thats the Callstack.
[ERROR] AndroidRuntime: FATAL EXCEPTION: main
[ERROR] AndroidRuntime: Process: de.xxx.xx.xxx, PID: 23612
[ERROR] AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{de.xxx.xx.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
[ERROR] AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2378)
[ERROR] AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)
[ERROR] AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:162)
[ERROR] AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
[ERROR] AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
[ERROR] AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5430)
[ERROR] AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
[ERROR] AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
[ERROR] AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
[ERROR] AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
[ERROR] AndroidRuntime: at ti.modules.titanium.ui.widget.TiView.<init>(TiView.java:25)
[ERROR] AndroidRuntime: at ti.modules.titanium.ui.ViewProxy.createView(ViewProxy.java:33)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:483)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:670)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:564)
[ERROR] AndroidRuntime: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:232)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:451)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:533)
[ERROR] AndroidRuntime: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6097)
[ERROR] AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
[ERROR] AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)
[ERROR] AndroidRuntime: ... 10 more
SDK: 3.5.1.GA
Runs on Android 5.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.