|
Kurs ishi mavzu
|
bet | 8/12 | Sana | 17.12.2023 | Hajmi | 1,09 Mb. | | #121185 |
Bog'liq Matkarimov Sardor kurs ishiactivity_login.xml
LoginActivity.kt oynasi uchun dizayn fayli kodi:
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">
android:id="@+id/loginInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:hint="Enter your login"
app:layout_constraintBottom_toTopOf="@id/passwordInput" />
android:id="@+id/passwordInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:hint="Enter your password"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="50dp"
android:text="login"
app:layout_constraintBottom_toBottomOf="parent" />
activity_grammar.xml
GrammarActivity.kt oynasi uchun dizayn fayli kodi:
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">
android:id="@+id/chipGroup"
android:layout_width="match_parent"
android:layout_height="200dp"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/firstContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:baselineAligned="false"
app:layout_constraintTop_toBottomOf="@id/chipGroup">
android:id="@+id/oneLineView"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/ic_cornered"
android:padding="10dp">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/twoLineView"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/ic_cornered"
android:padding="10dp">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="7dp"
android:background="@drawable/shape_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:background="@drawable/shape_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/secondContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
app:layout_constraintTop_toBottomOf="@id/firstContainer">
android:id="@+id/waveLineView"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/ic_cornered"
android:padding="10dp">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_wave_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/dashedLineView"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/ic_cornered"
android:padding="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_dashed_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/spotLineView"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:background="@drawable/ic_cornered"
android:padding="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/secondContainer">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_spot_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/checkButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="Tekshirish"
android:textColor="#00FF0A"
app:layout_constraintBottom_toTopOf="@id/nextButton"
app:layout_constraintTop_toBottomOf="@id/spotLineView" />
android:id="@+id/backButton"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="oldingi"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
android:id="@+id/nextButton"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="keyingi"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
|
| |