Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 8 | Rev 13 | ||
|---|---|---|---|
| Line 5... | Line 5... | ||
| 5 | import android.app.Activity; |
5 | import android.app.Activity; |
| 6 | import android.os.Bundle; |
6 | import android.os.Bundle; |
| 7 | import android.text.Editable; |
7 | import android.text.Editable; |
| 8 | import android.view.KeyEvent; |
8 | import android.view.KeyEvent; |
| 9 | import android.view.View; |
9 | import android.view.View; |
| - | 10 | import android.view.View.OnClickListener; |
|
| 10 | import android.view.View.OnKeyListener; |
11 | import android.view.View.OnKeyListener; |
| 11 | import android.widget.AdapterView; |
12 | import android.widget.AdapterView; |
| 12 | import android.widget.AdapterView.OnItemSelectedListener; |
13 | import android.widget.AdapterView.OnItemSelectedListener; |
| - | 14 | import android.widget.Button; |
|
| 13 | import android.widget.EditText; |
15 | import android.widget.EditText; |
| 14 | import android.widget.Spinner; |
16 | import android.widget.Spinner; |
| 15 | import de.pointedears.converter.R; |
17 | import de.pointedears.converter.R; |
| 16 | 18 | ||
| 17 | /**
|
19 | /**
|
| Line 156... | Line 158... | ||
| 156 | public void onNothingSelected(AdapterView<?> arg0) |
158 | public void onNothingSelected(AdapterView<?> arg0) |
| 157 | {
|
159 | {
|
| 158 | /* no-op */
|
160 | /* no-op */
|
| 159 | }
|
161 | }
|
| 160 | }); |
162 | }); |
| - | 163 | ||
| - | 164 | Button buttonClear = |
|
| - | 165 | (Button) this.findViewById(R.id.lengths_button_clear); |
|
| - | 166 | buttonClear.setOnClickListener(new OnClickListener() { |
|
| - | 167 | ||
| - | 168 | @SuppressWarnings("nls") |
|
| - | 169 | @Override |
|
| - | 170 | public void onClick(View v) |
|
| - | 171 | {
|
|
| - | 172 | editValue1.setText(""); |
|
| - | 173 | editValue2.setText(""); |
|
| - | 174 | }
|
|
| - | 175 | }); |
|
| 161 | }
|
176 | }
|
| 162 | 177 | ||
| 163 | /**
|
178 | /**
|
| 164 | * @param value
|
179 | * @param value
|
| 165 | * @return
|
180 | * @return
|