title: How to set the size of vector drawable as drawableLeft drawable?
body: <p>I am try to use vector drawables in my Android app. i have used <a href="http://android-developers.blogspot.com/2016/02/android-support-library-232.html" rel="nofollow">http://android-developers.blogspot.com/2016/02/android-support-library-232.html</a>. but i need set vector drawble in drawableLeft.</p>
  
  <p>Here is my vector drawable</p>
  
  <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android"
      android:width="24dp"
      android:height="24dp"
      android:viewportWidth="24.0"
      android:viewportHeight="24.0"&gt;
  &lt;path
      android:fillColor="@color/colorPrimary"
      android:pathData="M12,17c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1s3.1,1.39 3.1,3.1v2L8.9,8L8.9,6zM18,20L6,20L6,10h12v10z"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>in layout</p>
  
  <pre><code>&lt;android.support.design.widget.TextInputLayout
              android:id="@+id/textInputLayoutPassword"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;EditText
                  android:id="@+id/password"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:hint="@string/prompt_password"
                  android:imeActionId="@+id/login"
                  android:imeActionLabel="@string/action_sign_in_short"
                  android:imeOptions="actionUnspecified"
                  android:inputType="textPassword"
                  android:maxLines="1"
                  android:singleLine="true" android:drawableLeft="@drawable/ic_lock" android:drawablePadding="4dp"/&gt;
  
          &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p>error</p>
  
  <pre><code> Caused by: android.view.InflateException: Binary XML file line #52: Error inflating class EditText
  
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
                                                                                at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                                                at com.tekhinno.myglukose.LoginActivity.onCreate(LoginActivity.java:66)
                                                                                at android.app.Activity.performCreate(Activity.java:5231)
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
                                                                                at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:136) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5001) 
                                                                                at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                                at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
                                                                                at dalvik.system.NativeStart.main(Native Method) 
                                                                             Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_lock.xml from drawable resource ID #0x7f020054
                                                                                at android.content.res.Resources.loadDrawable(Resources.java:2096)
                                                                                at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
                                                                                at android.widget.TextView.&lt;init&gt;(TextView.java:806)
                                                                                at android.widget.EditText.&lt;init&gt;(EditText.java:60)
                                                                                at android.support.v7.widget.AppCompatEditText.&lt;init&gt;(AppCompatEditText.java:59)
                                                                                at android.support.v7.widget.AppCompatEditText.&lt;init&gt;(AppCompatEditText.java:55)
                                                                                at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:112)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)
                                                                                at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
                                                                                at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                                                at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) 
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
                                                                                at com.tekhinno.myglukose.LoginActivity.onCreate(LoginActivity.java:66) 
                                                                                at android.app.Activity.performCreate(Activity.java:5231) 
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
                                                                                at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:136) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5001) 
                                                                                at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                                at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
                                                                                at dalvik.system.NativeStart.main(Native Method) 
                                                                             Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
                                                                                at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
                                                                                at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
                                                                                at android.content.res.Resources.loadDrawable(Resources.java:2092)
                                                                                at android.content.res.TypedArray.getDrawable(TypedArray.java:602) 
                                                                                at android.widget.TextView.&lt;init&gt;(TextView.java:806) 
                                                                                at android.widget.EditText.&lt;init&gt;(EditText.java:60) 
                                                                                at android.support.v7.widget.AppCompatEditText.&lt;init&gt;(AppCompatEditText.java:59) 
                                                                                at android.support.v7.widget.AppCompatEditText.&lt;init&gt;(AppCompatEditText.java:55) 
                                                                                at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:112) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072) 
                                                                                at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44) 
                                                                                at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280) 
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                                                at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) 
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
                                                                                at com.tekhinno.myglukose.LoginActivity.onCreate(LoginActivity.java:66) 
                                                                                at android.app.Activity.performCreate(Activity.java:5231) 
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
                                                                                at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:136) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5001) 
                                                                                at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                                at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
                                                                                at dalvik.system.NativeStart.main(Native Method) 
  </code></pre>