[英]Finding alternative to a deprecated method
I'm using the TabLayout in my android app.我在我的 android 应用程序中使用 TabLayout。 I need to change the tabIndicatorHeight to a larger one.我需要将 tabIndicatorHeight 更改为更大的。 So far, this is how I'm achieving it:到目前为止,这就是我实现它的方式:
As you can see the method is deprecated and looking over its documentation, both on the Class itself and Android documentation , I cannot find any alternative.正如您所看到的,该方法已被弃用并查看其文档,包括类本身和Android 文档,我找不到任何替代方法。
How can I get the currently used method or for any other deprecated methods in general?我如何获得当前使用的方法或任何其他已弃用的方法?
尝试在 xml 中为 TabLayout 设置app:tabIndicatorHeight
值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.