Is it possible to scale drawableleft & drawableright in textview?

前端 未结 8 2214
悲&欢浪女
悲&欢浪女 2020-12-14 05:53

I have TextView with drawableLeft & drawableRight in List item. The problem is, whenever the height of TextView is l

8条回答
  •  隐瞒了意图╮
    2020-12-14 06:11

    I did not found way. But that you show looks like a list of items. Each item would be a LinearLayout horizontal with imagesView from left to right and text in center. The image dimension do a android:scaleType="fitXY" for ajust the size height to the textview height. If you want no deform de image use scaleType="CENTER_INSIDE". http://developer.android.com/reference/android/widget/ImageView.ScaleType.html

      
    
    
         
         
    
             
        
         
    
     
    

提交回复
热议问题