Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6184] Documentation for density specific images on android has wrong path

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2019-05-01T22:47:04.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsn/a
ReporterEmily Feder
AssigneeShak Hossain
Created2019-03-28T15:03:49.000+0000
Updated2019-05-01T22:47:04.000+0000

Description

The docs on [using density specific resources on android](https://docs.appcelerator.com/platform/latest/#!/guide/Using_density-specific_resources_on_Android-section-src-29004808_Usingdensity-specificresourcesonAndroid-Platform-specificimagesFolder) has the following example code:
var myButton = Ti.UI.createButton({
  backgroundImage: 'images/myButton.png'
});
The actual image path should be '/images/myButton.png'.

Comments

  1. Sharif AbuDarda 2019-04-09

    Hello, The above code works. There is no issue there. What SDK and Android version are you trying on? use the latest SDK version 8.0.0.GA. Thanks.

JSON Source