Giter Site home page Giter Site logo

com.jasonkneen.dynamictss's People

Contributors

jasonkneen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

com.jasonkneen.dynamictss's Issues

Can't get this working with a <ListView>

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...

App crash when launched in Landscape Mode

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.