예제 #1
0
  private void setScaleType() {
    for (ScaleType stValue : ImageView.ScaleType.values()) {
      ItemSpinner item = new ItemSpinner(stValue, stValue.toString());
      this.ListSpinner.add(item);
    }

    ArrayAdapter adapterSelectDetail =
        new ArrayAdapter(this, android.R.layout.simple_spinner_item, this.ListSpinner);
    adapterSelectDetail.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    this.spScaleType.setAdapter(adapterSelectDetail);
  }
 void setScaleMode(ScaleType value) {
   setScaleModeAsString(value.toString());
 }