*ngIf is not working in nativescript when using Android10 mobile

310 views Asked by At

*ngIf is not working in the below code for changing the image in Android 10 mobile.

**<StackLayout>
    *<ng-container *ngIf="isClickedRecord && !isRecordAvailable">
        <Image src="res://record_message_enable" class="record-msg"  (tap)="startRecordingAnnouncement()"></Image>
        *<ng-container *ngIf="!changeLanguage">
            <Label text=" {{'Record Message'| translate}}" class="record-text"  horizontalAlignment="center"></Label>
        </ng-container>
        *<ng-container *ngIf="changeLanguage">
            <Label text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{'Record Message'| translate}}" class="record-text"  horizontalAlignment="center"></Label>
        </ng-container>
    </ng-container>
    *<ng-container *ngIf="!isClickedRecord">
        <Image src="res://stop_message_enable" class="record-msg" (tap)="startRecordingAnnouncement()"></Image>
        *<ng-container *ngIf="!changeLanguage">
            <Label text=" {{'Stop Recording'| translate}}" class="record-text"  horizontalAlignment="center"></Label>
        </ng-container> 
        *<ng-container *ngIf="changeLanguage">
            <Label text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{'Stop Recording'| translate}}" class="record-text"  horizontalAlignment="center"></Label>
        </ng-container>
    </ng-container>
    *<ng-container *ngIf="isRecordAvailable">
        <Image  src="res://record_message_disable" class="record-msg" ></Image>
        *<ng-container *ngIf="!changeLanguage">
            <Label text=" {{'Record Message'| translate}}" class="record-text" style="color: #5F8193;"  horizontalAlignment="center"></Label>
        </ng-container> 
        *<ng-container *ngIf="changeLanguage">
            <Label text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{'Record Message'| translate}}" class="record-text" style="color: #5F8193;"  horizontalAlignment="center"></Label>
        </ng-container> 
    </ng-container>
</StackLayout>**

But it is working perfectly in Android 9. can anyone please help me out to solve this issue?

0

There are 0 answers