Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20100] Android: CardView backgroundImage & borderColor properties don't work

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-12-07T02:53:50.000+0000
Affected Version/sRelease 5.1.2
Fix Version/sRelease 5.1.2
ComponentsAndroid
Labelsqe-5.1.2
ReporterLokesh Choudhary
AssigneeAshraf Abu
Created2015-12-04T20:08:18.000+0000
Updated2015-12-07T18:49:51.000+0000

Description

Steps To Reproduce:

1. I followed the docs here : http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-backgroundImage http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-borderColor 2. Use the code below:
var win = Ti.UI.createWindow({
    backgroundColor:'white',
    title: 'Card Demo'
});


var card = Ti.UI.Android.createCardView({
    height:200,
    width:250,
    borderWidth:10,
    borderColor:'red',
    contentPadding: 20,
    cardCornerRadius: 10,
    backgroundImage:'android.jpg'
});

var label = Ti.UI.createLabel({
    color:'black',
    text: 'HELLO',
});

card.add(label);
win.add(card);
win.open();
2. Check the bordercolor & backgroundimage of the cardview.

Actual Results:

1. We do not see the bordercolor & backgroundimage.

Expected Result:

1. We should see the bordercolor & the backgroundimage for the cardview.

Comments

  1. Chee Kiat Ng 2015-12-07

    just document accordingly for this release.
  2. Ashraf Abu 2015-12-07

    Documentation update:- PR 5_1_X: https://github.com/appcelerator/titanium_mobile/pull/7550 PR Master: https://github.com/appcelerator/titanium_mobile/pull/7551
  3. Ashraf Abu 2015-12-07

    5_1_X and Master PRs for document update merged..
  4. Lokesh Choudhary 2015-12-07

    Closing this ticket as its a docs issue & PR has been made for docs. Environment: Appc Studio : 4.4.0.201511241829 Ti SDK : 5.1.2.v20151203125117 Ti CLI : 5.0.5 Alloy : 1.7.26 MAC Yosemite : 10.10.5 Appc NPM : 4.2.2 Appc CLI : 5.1.0 Node: v0.12.27 Nexus 6P - Android 6.0

JSON Source