ViewUtils
public class ViewUtils {
    /**
     * @Author AlanMa
     * @Description 处理图形大小
     * @Date 2020/4/14
     * @Param [editTextList]
     * @return void
     */
    public static void drawableSetSize(Context context, List<EditText> editTextList,List<Integer> drawableIds){

        EditText editText;
        for (int i = 0; i < editTextList.size(); i++) {
            editText = editTextList.get(i);
            Drawable drawableLoginName = context.getResources().getDrawable(drawableIds.get(i));
            drawableLoginName.setBounds(0, 0, 50, 50);
            editText.setCompoundDrawables(drawableLoginName, null, null, null);
        }
    }
}

 

相关文章:

  • 2021-04-01
  • 2021-09-29
  • 2021-12-13
  • 2021-06-28
  • 2022-12-23
  • 2021-10-31
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2021-12-15
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案