gpt4 book ai didi

android - TextView drawableTop 技巧在 java 中不起作用?

转载 作者:行者123 更新时间:2023-11-29 16:22:45 26 4
gpt4 key购买 nike

XML 中你可以设置一个 TextView 来拥有一个 android:drawableTop 但是,在 java 代码中,没有相应的 textView.setDrawableTop() 为什么我看不到这个?它不应该在那里吗?

最佳答案

textview.setCompoundDrawablesWithIntrinsicBounds(left, top, right, bottom); 方法适用于以下内容

android:drawableBottom
android:drawableLeft
android:drawableRight

关于android - TextView drawableTop 技巧在 java 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6488650/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com