Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-869

Android borderRadius property not working with using view layout = "horizontal"

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      Android 4.1.1 API 16, Titanium SDK 3.3.0GA, Alloy, Genymotion

      Description

      My codes as below. When i debug my codes on iOS everything is OK. Child ─▒tems shows left to right.

      But on Android, child items not looking right. I have worked hard to find issue source.

      Finally when I modify borderRadius property to 0 (zero) everything is OK like iOS.

      var $ListViewLinksTemplate = {
      	childTemplates : [{
      		type : 'Ti.UI.View',
      		properties : {
      			top : 9,
      			width : Ti.UI.SIZE,
      			height : Ti.UI.SIZE,
      			backgroundColor : "transparent",
      			layout : "horizontal",
      		},
      		childTemplates : [{
      			type : 'Ti.UI.View',
      			properties : {
      				top : 0,
      				left : 0,
      				width : 30,
      				height : 30,
      				backgroundColor : Alloy.Globals.Color2,
      				borderRadius: 6
      			},
      			childTemplates : [{
      				type : 'Ti.UI.ImageView',
      				bindId : '_ImageViewIcon',
      				properties : {
      					width : 26,
      					height : 26,
      				}
      			}]
      		}, {
      			type : 'Ti.UI.View',
      			bindId : '_ViewForLabels',
      			properties : {
      				layout : "vertical",
      				left : 5,
      				width : 100,
      				height : Ti.UI.SIZE
      			},
      			childTemplates : [{
      				type : 'Ti.UI.Label',
      				bindId : '_LabelHeader',
      				properties : {
      					width : "100%",
      					height : Ti.UI.SIZE,
      					textAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,
      					color : Alloy.Globals.Color5,
      					text : "",
      					font : {
      						fontSize : 16,
      						fontFamily : Alloy.Globals.CustomFont
      					}
      				}
      			}, {
      				type : 'Ti.UI.Label',
      				bindId : '_LabelExplain',
      				properties : {
      					bottom : 3,
      					width : "100%",
      					height : Ti.UI.SIZE,
      					textAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,
      					color : Alloy.Globals.Color10,
      					text : "",
      					font : {
      						fontSize : 12,
      						fontFamily : Alloy.Globals.CustomFont
      					}
      				}
      			}],
      		}, {
      			type : 'Ti.UI.ImageView',
      			properties : {
      				image : "images/icon-right-arrow.png",
      				width : 16,
      				height : 16
      			}
      		}],
       
      	}],
      	properties : {
      		accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,
      		height : Ti.UI.SIZE,
      		backgroundColor : "transparent",
      		selectedBackgroundColor : "transparent",
      		selectionStyle : Alloy.Globals.PlatformName == 'iPhone OS' ? Ti.UI.iPhone.ListViewCellSelectionStyle.NONE : "transparent",
      	}
      };
      

        Attachments

          Activity

            People

            • Assignee:
              mpmiranda Mauro Parra-Miranda
              Reporter:
              Kerbooo Kerberos
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code