简体   繁体   English

寻找已弃用方法的替代方法

[英]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.

相关问题 AnyLogic 不推荐使用的方法 getJComponent() 的替代方法? - Alternative for AnyLogic deprecated method getJComponent()? 已弃用的 Encode.forUri() 方法的替代方法 - Alternative method for deprecated Encode.forUri() method 已弃用的方法ObjectMapper.reader(Class)的替代方法 - Alternative to deprecated method ObjectMapper.reader(Class) WebSphere:不推荐使用的方法WSJdbcUtil.getNativeConnection的替代方法 - WebSphere: Alternative to deprecated method WSJdbcUtil.getNativeConnection 使用已弃用的 Hamcrest 方法 is() 的替代方法是什么? - What is the alternative to using the Deprecated Hamcrest method is()? flyway.setSchemas()方法的替代方法是什么,因为这是不推荐使用的? - What is the alternative of flyway.setSchemas() method as this is deprecated? 不推荐使用的GWT Textbox setKey(char)方法的替代方法 - Alternative for deprecated GWT Textbox setKey(char) method 在休眠中使用不推荐使用的保存方法的替代方法 - Alternative to using deprecated save method in hibernate 已弃用的Java Logger.logrb方法的替代方法 - Alternative to deprecated Java Logger.logrb method 已弃用的 AuditReader#getCurrentRevision 方法的替代方法 - Alternative to deprecated AuditReader#getCurrentRevision method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM