File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ The Placeholder allows you to add any native widget to your application. To do t
24
24
25
25
``` JavaScript
26
26
function creatingView (args ) {
27
- var nativeView = new android.widget.LabelView (args .context );
27
+ var nativeView = new android.widget.TextView (args .context );
28
+ nativeView .setSingleLine (true );
29
+ nativeView .setEllipsize (android .text .TextUtils .TruncateAt .END );
28
30
nativeView .setText (" Native" );
29
31
args .view = nativeView;
30
32
}
@@ -34,7 +36,9 @@ exports.creatingView = creatingView;
34
36
import placeholder = require (" ui/placeholder" );
35
37
36
38
export function creatingView(args : placeholder .CreateViewEventData ) {
37
- var nativeView = new android .widget .LabelView (args .context );
39
+ var nativeView = new android .widget .TextView (args .context );
40
+ nativeView .setSingleLine (true );
41
+ nativeView .setEllipsize (android .text .TextUtils .TruncateAt .END );
38
42
nativeView .setText (" Native" );
39
43
args .view = nativeView ;
40
44
}
You can’t perform that action at this time.
0 commit comments