我有一个TextView和一个ImageView在一个水平线性布局中。是否可以缩放ImageView,使其相对于布局文件中TextView的大小而定呢?
基本上我想要类似于这样的效果:
而不是像这样:
布局文件将会是:
基本上我想要类似于这样的效果:
![enter image description here](https://istack.dev59.com/PRDbB.webp)
![enter image description here](https://istack.dev59.com/RR7OU.webp)
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<ImageView />
<TextView />
</LinearLayout>