Titanium JIRA Archive
Appcelerator Community (AC)

[AC-488] Can't create a cardview

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-11-05T08:17:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterOscar Arnaiz
AssigneeMostafizur Rahman
Created2015-11-04T12:37:01.000+0000
Updated2015-11-05T08:17:28.000+0000

Description

I'm trying to create a cardView following the demo app example
<Alloy>
    <Window id="secondwin" class="container" onOpen="doopen">
        <ActionBar displayHomeAsUp="true" onHomeIconItemSelected="closewin" platform="android"/>
        <CardView platform="android">
            <Label>A long label with\na few line breaks\nand unicode (UTF8)\nsymbols such as\na white chess piece \u2655\nand the euro symbol \u20ac\nlooks like this!</Label>
        </CardView>
    </Window>
</Alloy>
but getting this error:
[ERROR] :  TiExceptionHandler: (main) [401335,401335] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [0,401335] - In undefined:66,34
[ERROR] :  TiExceptionHandler: (main) [0,401335] - Message: Uncaught TypeError: Object #<UI> has no method 'createCardView'
[ERROR] :  TiExceptionHandler: (main) [0,401335] - Source:     $.__views.__alloyId8 = Ti.UI.createCardView({
[ERROR] :  V8Exception: Exception occurred at undefined:66: Uncaught TypeError: Object #<UI> has no method 'createCardView'

Comments

  1. Jebun Naher 2015-11-05

    Hello [~olarnaiz] UI object has no create cardview method. Please refer to this [link](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI) for details. Thanks.

JSON Source