Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,9 @@ protected void setOnLongClickListener(View view)

protected void disableHWAcceleration()
{
if (this.borderView != null) {
if (this.borderView != null && !(proxy.hasProperty("keepHardwareMode")
&& TiConvert.toBoolean(proxy.getProperty("keepHardwareMode"), false))
) {
this.borderView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
}
Expand Down
9 changes: 9 additions & 0 deletions apidoc/Titanium/UI/View.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,15 @@ properties:
Defaults to `undefined`.
type: [Number,String]

- name: keepHardwareMode
summary: A value indicating the render mode of the View
description: |
Set to true to keep hardware mode when using a border and transparent backgrounds.
type: Boolean
default: false
platforms: [android]
since: {android: "13.1.0"}

- name: layout
type: String
summary: |
Expand Down
Loading