title: Cannot resolve method 'getdrawable()
body: <p>I'm a newbie in programming. I want to build a QR Code Generator that the QR Code can be saved or downloaded. </p>
  
  <p>Here's my code for the generator:</p>
  
  <pre><code>    public class GeneratorActivity extends AppCompatActivity {
  
      EditText text;
      Button gen_btn;
      ImageView image;
      String text2Qr;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_generator);
          text = findViewById(R.id.text);
          gen_btn = findViewById(R.id.gen_btn);
          image = findViewById(R.id.image);
          gen_btn.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  text2Qr = text.getText().toString().trim();
                  MultiFormatWriter multiFormatWriter = new MultiFormatWriter();
                  try{
                      BitMatrix bitMatrix = multiFormatWriter.encode(text2Qr, BarcodeFormat.QR_CODE,200,200);
                      BarcodeEncoder barcodeEncoder = new BarcodeEncoder();
                      Bitmap bitmap = barcodeEncoder.createBitmap(bitMatrix);
                      image.setImageBitmap(bitmap);
                      bitmap = ((BitmapDrawable) ImageView.getdrawable()).getBitmap();
  
                  }
                  catch (WriterException e){
                      e.printStackTrace();
                  }
  
  
  
              }
          });
      }
  }
  </code></pre>
  
  <p>I got a error that I cannot resolve method 'getdrawable()</p>
  
  <p>anybody know how to fix this?</p>
  
  <p>Here's the screenshot of the error: <a href="https://i.stack.imgur.com/wSwMq.jpg" rel="nofollow noreferrer">screenshot</a></p>