- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
// Насладитесь
final String[] array_spinner_drinks = new String[20];
array_spinner_drinks[0] = "1";
array_spinner_drinks[1] = "2";
array_spinner_drinks[2] = "3";
array_spinner_drinks[3] = "4";
array_spinner_drinks[4] = "5";
array_spinner_drinks[5] = "6";
array_spinner_drinks[6] = "7";
array_spinner_drinks[7] = "8";
array_spinner_drinks[8] = "9";
array_spinner_drinks[9] = "10";
array_spinner_drinks[10] = "11";
array_spinner_drinks[11] = "12";
array_spinner_drinks[12] = "13";
array_spinner_drinks[13] = "14";
array_spinner_drinks[14] = "15";
array_spinner_drinks[15] = "16";
array_spinner_drinks[16] = "17";
array_spinner_drinks[17] = "18";
array_spinner_drinks[18] = "19";
array_spinner_drinks[19] = "20";
spinner_drinks = (Spinner) findViewById(R.id.spinner_drinks);
final ArrayAdapter<String> adapter_drinks = new ArrayAdapter<>(this,
android.R.layout.simple_spinner_item,
array_spinner_drinks);
spinner_drinks.setAdapter(adapter_drinks);
// load weight spinner with array
final String[] array_spinner_weight = new String[34];
array_spinner_weight[0] = "70";
array_spinner_weight[1] = "80";
array_spinner_weight[2] = "90";
array_spinner_weight[3] = "100";
array_spinner_weight[4] = "110";
array_spinner_weight[5] = "120";
array_spinner_weight[6] = "130";
array_spinner_weight[7] = "140";
array_spinner_weight[8] = "150";
array_spinner_weight[9] = "160";
array_spinner_weight[10] = "170";
array_spinner_weight[11] = "180";
array_spinner_weight[12] = "190";
array_spinner_weight[13] = "200";
array_spinner_weight[14] = "210";
array_spinner_weight[15] = "220";
array_spinner_weight[16] = "230";
array_spinner_weight[17] = "240";
array_spinner_weight[18] = "250";
array_spinner_weight[19] = "260";
array_spinner_weight[20] = "270";
array_spinner_weight[21] = "280";
array_spinner_weight[22] = "290";
array_spinner_weight[23] = "300";
array_spinner_weight[24] = "310";
array_spinner_weight[25] = "320";
array_spinner_weight[26] = "330";
array_spinner_weight[27] = "340";
array_spinner_weight[28] = "350";
array_spinner_weight[29] = "360";
array_spinner_weight[30] = "370";
array_spinner_weight[31] = "380";
array_spinner_weight[32] = "390";
array_spinner_weight[33] = "400";
spinner_weight = (Spinner) findViewById(R.id.spinner_weight);
final ArrayAdapter<String> adapter_weight = new ArrayAdapter(this,
android.R.layout.simple_spinner_item,
array_spinner_weight);
spinner_weight.setAdapter(adapter_weight);
3oJloTou_xyeLL 24.08.2021 21:16 # 0