更改TextView字段中SCV图标的高度



我想在一些文本旁边有一个箭头。因此,我在TextView字段中导入了一个*.scv箭头图标。现在我很难调整它的大小。我想把app:drawableStartCompat设置为100dp的高度,但我不知道怎么做?

<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="@string/introArrowDesc"
android:justificationMode="inter_word"
android:padding="5dp"
app:drawableStartCompat="@drawable/ic_arrow_back_black_24dp">

我发现,在app => res => drawable中,导入scv文件时生成了一个xml。所以我现在可以简单地更改大小:

android:width="100dp"
android:height="100dp"

然而,如果我理解正确的话,scv文件的想法是,我可以随意调整它们的大小,并在不同的地方使用不同的大小,所以问题仍然存在。

最新更新