Curtain icon indicating copy to clipboard operation
Curtain copied to clipboard

一个Android 高亮View蒙层库

Results 12 Curtain issues
Sort by recently updated
recently updated
newest added

这样获取的屏幕宽高并不正确特别是全面屏和异形屏 ![q](https://user-images.githubusercontent.com/37949811/177687128-51117805-21d8-4105-beff-3660eadde213.png) ![fang](https://user-images.githubusercontent.com/37949811/177687122-93f8e463-fa3b-4ae5-bf1c-1b7989e029e0.png)

![image](https://user-images.githubusercontent.com/13035957/149144749-9ed20f58-1981-477f-82df-e41d86910c72.png)

如图所示 ![QtScrcpy_20220107_091430_740](https://user-images.githubusercontent.com/24751840/148475261-bc6eeff8-f7f2-4775-a051-ec5b851f4b54.png)

想问下 我添加高亮界面之后 想获取到高亮控件的位置 然后修改引导提示的位置 这个能获取到吗

希望可以支持v4的FragmentActivity,适用性更大一些

![Screenshot_20231113_113740](https://github.com/soulqw/Curtain/assets/42129233/d9138a52-9848-404f-920a-bae7dae238e6) 手机:谷歌 pixel 5 版本:implementation 'com.github.soulqw:Curtain:0.3.0' 使用: class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) Curtain(this).with(findViewById(R.id.text)).show() } }

首先,**当前问题我已找到方法解决**,只是讨论下是不是还存在最优解 有个需求: > 需要首页高亮几个View(只能点击高亮区域,其他区域点击无效),然后点击View之后会进行页面跳转,但是之后返回首页,高亮并没有显示 目前需要去手动取消高亮,得拿到那个Iguide对象,但是唯一可以的方法只能在setCallBack回调里获取到 ```diff .setCallBack(object : Curtain.CallBack { override fun onShow(curtain: IGuide?) { + guideDialog = curtain //自己外层加个变量,展示的时候获取 } override fun onDismiss(iGuide: IGuide?) { } }).show() ``` 我的期望:...

如果拦截返回键,我监听了Activity的onBackPressed方法,但是有 CurtainFlow 的时候,该方法并没有触发