CommonDialog.setTransparent(true)的情况下 布局上控件执行动画 会自动产生背景
怎么让中间区域透明?
<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayout
xmlns:ohos="http://schemas.huawei.com/res/ohos"
ohos:height="match_parent"
ohos:width="match_parent"
ohos:background_element="$graphic:gray_round_corner_bg"
ohos:alignment="center"
ohos:orientation="vertical">
<Image
ohos:id="$+id:round_progress_bar"
ohos:height="50vp"
ohos:width="50vp"
ohos:scale_mode="stretch"
ohos:image_src="$media:loading"/>
<Text
ohos:height="match_content"
ohos:width="match_content"
ohos:top_margin="10vp"
ohos:text="加载中..."
ohos:text_size="15vp"
ohos:text_color="#ffffff"/>
</DirectionalLayout>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:ohos="http://schemas.huawei.com/res/ohos"
ohos:shape="rectangle">
<corners ohos:radius="10vp"/>
<!-- <solid ohos:color="#abffff00"/>-->
<solid ohos:color="#ab000000"/>
</shape>
holder.getView(ResourceTable.Id_round_progress_bar).createAnimatorProperty().rotate(360).setLoopedCount(INFINITE).setDuration(800).start();








































苏公安网备 32011402010933号