Laboratoriya ishi №16 Mavzu: Voqealar (intents)
Download 1.54 Mb.
|
V4Z-xNaOmQAahUwVDNttZzzoKCT-FHY0
Laboratoriya ishi №18
Mavzu: Android Studio platformasida foydalanuvchi grafik interfeysini yaratish (Slider yaratish) Tashqi ko'rinishida Slider standart Seekbarga o'xshaydi. Ammo kichik farqlar mavjud. Ularni ko'rish uchun men oddiy loyihani chizdim. Keling, ekranga bir nechta slayderni, tugmachani qo'shamiz va komponentning harakatini ko'rib chiqamiz. Men kutubxonaning so'nggi versiyasidan foydalandim. implementation 'com.google.android.material:material:1.2.0-alpha06' xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" android:text="New value" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.498" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="32dp" android:value="8.09" android:valueFrom="0.0" android:valueTo="21.0" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/button" /> android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="32dp" android:valueFrom="100.0" android:valueTo="100000.0" android:stepSize="100.0" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/slider" /> Download 1.54 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling