FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Custom title on Android fails with exception · Issue #2372 · NativeScript/NativeScript · GitHub

Custom title on Android fails with exception #2372

Description

Tell us about the problem

Creating a custom title on action gives error on Android. For example -

<ActionBar title="Custom Title">
    <StackLayout orientation="horizontal"
                 ios:horizontalAlignment="center"
                 android:horizontalAlignment="left">
        <Image src="res://nativescript_logo" class="action-image"></Image>
        <Label text="ativeScript"  class="action-label"></Label>
    </StackLayout>
</ActionBar>

Fails with an error on emulator (note: this is on emulator) for Android, but works on iOS -

NOTE: The app does not crash, the error doesn't show up on console. Its just in app stack trace showing as shown in the attached screen shoot.

Which platform(s) does your issue occur on?

Only on Android (both device and emulator)

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.0.1
  • Cross-platform modules: 2.0.0
  • Runtime(s): tns-android: 2.0.0 and tns-ios: 2.0.1.
  • Plugin(s): "@angular/common": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1", "@angular/core": "2.0.0-rc.1", "@angular/http": "2.0.0-rc.1", "@angular/router-deprecated": "2.0.0-rc.1", "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/platform-server": "2.0.0-rc.1", "nativescript-angular": "0.1.1", "tns-core-modules": "2.0.0"

Please tell us how to recreate the issue in as much detail as possible.

Create a sample page with above mentioned action bar on NativeScript+TypeScript+NG2. And start emulator tns livesync android --emulator --watch.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Already shared above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL