|
ProgressBar progressBar; int progressStatus = 0
|
bet | 4/6 | Sana | 11.07.2022 | Hajmi | 49,52 Kb. | | #776704 |
| Bog'liq 2.Gozal Raximboeva
ProgressBar progressBar; int progressStatus = 0;
Handler handler = new Handler(); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); progress = 0; progressBar = (ProgressBar) findViewById(R.id.progressbar);
AutoCompleteTextView View
BasicViews3 nomli Android ilovasini yarating.
res/layout da joylashgan main.xml fayli quyidagicha o‘zgartiriladi:
Android foydalanuvchi interfreysida vaqtni va sanani ko‘rsatib turish uchun quyidagi view lardan foydalaniladi.
TimePicker view – vaqtni ko‘rsatish komponentasi
DatePicker view – sanani ko‘rsatish komponentasi
TimePicker view vaqtni 24-hour yoki AM/PM mode da ko‘rsatish imkoniyatini beradi.
TimePicker komponentasi uchun misol:
TimePicker: BasicViews4.
BasicViews4 nomli Android ilovasini yarating.
res/layout da joylashgan main.xml fayli quyidagicha o‘zgartiriladi :
Do'stlaringiz bilan baham: |
|
|