问题描述
* ngIf在下面的代码中不起作用,无法在Android 10移动版中更改图像。
**<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=" {{'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=" {{'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=" {{'Record Message'| translate}}" class="record-text" style="color: #5F8193;" horizontalAlignment="center"></Label>
</ng-container>
</ng-container>
</StackLayout>**
但是它在Android 9中运行良好。 有人可以帮我解决这个问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)