скейлилась, а именно была равной ширине drawable
                  
                  
                  @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
                  
                  
                          if (getLayoutParams().width == ViewGroup.LayoutParams.WRAP_CONTENT) {
                  
                  
                              int dWidthMeasureSpec = MeasureSpec.makeMeasureSpec(mDrawable.getIntrinsicWidth(), MeasureSpec.EXACTLY);
                  
                  
                              super.onMeasure(dWidthMeasureSpec, heightMeasureSpec);
                  
                  
                          } else  {
                  
                  
                              super.onMeasure(widthMeasureSpec, heightMeasureSpec);
                  
                  
                          }
                  
                  
                      }
                  
                  
                  Я все верно делаю?
                  
                  
                
Имхо одно ты не верно делаешь — пастбин
Обсуждают сегодня