11import { VerticalTextAlignment , verticalTextAlignmentProperty } from '@nativescript-community/text' ;
22import { themer } from '@nativescript-community/ui-material-core' ;
3- import { getColorStateList , getFullColorStateList , getHorizontalGravity , getLayout , getVerticalGravity , inflateLayout } from '@nativescript-community/ui-material-core/android/utils' ;
3+ import { getColorStateList , getFullColorStateList , getHorizontalGravity , getVerticalGravity , inflateLayout } from '@nativescript-community/ui-material-core/android/utils' ;
44import {
55 counterMaxLengthProperty ,
66 errorColorProperty ,
@@ -19,21 +19,19 @@ import {
1919 Color ,
2020 CoreTypes ,
2121 Font ,
22- Length ,
2322 Utils ,
2423 backgroundInternalProperty ,
2524 borderBottomLeftRadiusProperty ,
2625 fontInternalProperty ,
2726 hintProperty ,
28- paddingBottomProperty ,
29- paddingLeftProperty ,
30- paddingRightProperty ,
31- paddingTopProperty ,
3227 placeholderColorProperty ,
3328 textAlignmentProperty
3429} from '@nativescript/core' ;
3530import { TextViewBase } from './textview.common' ;
3631
32+ import { accessibilityIdentifierProperty } from '@nativescript/core/accessibility/accessibility-properties' ;
33+ import { testIDProperty } from '@nativescript/core/ui/core/view/view-common' ;
34+
3735let FrameLayoutLayoutParams : typeof android . widget . FrameLayout . LayoutParams ;
3836let filledId ;
3937let outlineId ;
@@ -307,5 +305,12 @@ export class TextView extends TextViewBase {
307305 [ verticalTextAlignmentProperty . setNative ] ( value : VerticalTextAlignment ) {
308306 this . nativeTextViewProtected . setGravity ( getHorizontalGravity ( this . textAlignment ) | getVerticalGravity ( value ) ) ;
309307 }
308+ [ testIDProperty . setNative ] ( value : string ) : void {
309+ this . setAccessibilityIdentifier ( this . nativeTextViewProtected , value ) ;
310+ }
311+
312+ [ accessibilityIdentifierProperty . setNative ] ( value : string ) : void {
313+ this . setAccessibilityIdentifier ( this . nativeTextViewProtected , value ) ;
314+ }
310315}
311- //
316+
0 commit comments