如:在小红书中双击屏幕之后就可以点赞,小红心就会变亮。因为要双击屏幕才能点赞,所以还要给布局组件id。代码实现如下:abilitymain:MainAbilitySlice:packagecom.xdr630.listenerapplication6.slice;importcom.xdr630.listenerapplication6.ResourceTable;importohos.aafwk.ability.AbilitySlice;importohos.aafwk.content.Intent;importohos.agp.components.Component;importohos.agp.components.DirectionalLayout;impor...
2022-12-17 22:02:14 7864浏览 1点赞 0回复 0收藏