Variable init

mail@pastecode.io avatar
unknown
java
a year ago
625 B
2
Indexable
Never
    EditText etCity;
    Button btnCheck, btnClear;
    TextView tvTemp, tvMaxTemp, tvMinTemp, tvHumidity, tvWeather, tvDescription;


    private void init() {
        etCity = findViewById(R.id.etCity);
        btnCheck = findViewById(R.id.btnCheck);
        btnClear = findViewById(R.id.btnClear);
        tvTemp = findViewById(R.id.tvTemp);
        tvMaxTemp = findViewById(R.id.tvMaxTemp);
        tvMinTemp = findViewById(R.id.tvMinTemp);
        tvHumidity = findViewById(R.id.tvHumidity);
        tvWeather = findViewById(R.id.tvWeather);
        tvDescription = findViewById(R.id.tvDescription);
    }