This repository will probably not update any longer, since I am now wirting a new app to change view attributes while running. It’s like element inspection in web development. Follow this link.
本仓库不会再更新(可能),因为我现在在写一个更加通用的应用,用来修改应用运行过程中的View参数,就像web开发中的元素审查一样。详情可以查看这里。
This application provides features to modify any TextView in any other applications.
本应用提供了修改原生Android应用的文本功能。
This application depends on the Xposed framework. For more information about this framework, just visit their website.
Here’s the hook process:
onCreate
method of Application
.ActivityLifecycleCallback
.ActivityLifecycleCallback
, hook the OnClickListener
or directly set it if there’s no listener set inside the TextView
, set it to my own customized one.Quite simple right?
本应用依赖于Xposed框架,如果想要获取更多关于本框架的信息,请访问他们的官网。
应用Hook流程:
Application
类的onCreate
方法。onCreate
之后,注册ActivityLifecycleCallback
回调。ActivityLifecycleCallback
中,替换掉TextView
中的OnClickListener
,把它设置成自己的封装实现。是不是挺简单的,你也可以自己写一个。
This application is completely free and 100% open-source. It’s just for learning usage. I don’t take any responsibilities for the result you make while using this application.
本应用完全开源免费,且仅供学习交流使用。使用者在使用本应用的过程产生的任何后果都与开发者无关。
Screenshots CANNOT be used as evidences!
都说了截图能当个锤子的证据.jpg
com.hhvvg.anytext
Release Type: Stable
2/18/2022, 6:56:32 AM
In this release, you can enable or disable text background color dynamically. Additionally, text color or click listener can now work perfectly in list view(e.g. RecyclerView), since I change a new hook method. Some extra optimizations added.
在该版本中,你可以动态启用或者关闭文字背景色了。除此之外,列表项中的文本背景色或者是点击监听也可以正常工作了,因为我换了个新的hook方法。还有一些小优化。