调整可绘制以适合EditText

时间:2019-03-22 10:19:37

标签: android android-edittext drawable

我的布局如下:

enter image description here

我想在我的textedit中设置一个可绘制对象,如下所示:

enter image description here

问题出在我进入EditText并尝试设置android:drawableEnd="@drawable/money"时,发生这种情况:

enter image description here

如何调整此可绘制对象?

1 个答案:

答案 0 :(得分:0)

尝试这种方式

function my_content_filter($content){
  //only add text before WordPress posts
  if(is_single() && is_main_query()){
    //reply all occurances of the old URL with the new URL 
    $content = str_replace([OLD_LINK], [NEW_LINK],$content);
  } 
  return $content; 
} 

add_filter( 'the_content', 'my_content_filter' );

输出

enter image description here