bet 2/2 Sana 12.07.2022 Hajmi 444,39 Kb. #782270
git push masofaviy omborni filialga mahalliy ravishda qilingan har qanday majburiyatlar bilan yangilaydi.
Biz ishlab chiqqan loyiha, prototip kodi:
xml version="1.0" encoding="utf-8" ?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
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:background="@color/colorPrimary"
android:padding="16dp"
tools:context=".MainActivity" >
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:text="Improve your IELTS skills"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgListening"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/imglistening"
app:civ_border_color="#47b6ed"
app:civ_border_width="3dp"
app:layout_constraintBottom_toTopOf="@id/reading"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/listening"
app:layout_constraintTop_toBottomOf="@id/text" />
<TextView
android:id="@+id/listening"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:onClick="setInt"
android:padding="16dp"
android:tag="1"
android:text="Listening"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toRightOf="@id/imgListening"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/text" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgReading"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/imgreading"
app:civ_border_color="#fdfdfd"
app:civ_border_width="3dp"
app:layout_constraintBottom_toTopOf="@id/writing"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/reading"
app:layout_constraintTop_toBottomOf="@id/listening" />
<TextView
android:id="@+id/reading"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:onClick="setInt"
android:padding="16dp"
android:tag="2"
android:text="Reading"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toRightOf="@id/imgReading"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/listening" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgWriting"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/imgwriting"
app:civ_border_color="#ffffff"
app:civ_border_width="3dp"
app:layout_constraintBottom_toTopOf="@id/speaking"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/writing"
app:layout_constraintTop_toBottomOf="@id/imgReading" />
<TextView
android:id="@+id/writing"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:onClick="setInt"
android:padding="16dp"
android:tag="3"
android:text="Writing"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toRightOf="@id/imgWriting"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/reading" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgSpeaking"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/imgspeaking"
app:civ_border_color="#ffffff"
app:civ_border_width="1dp"
app:layout_constraintBottom_toTopOf="@id/vocabulary"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/speaking"
app:layout_constraintTop_toBottomOf="@id/imgWriting" />
<TextView
android:id="@+id/speaking"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:onClick="setInt"
android:layout_marginLeft="8dp"
android:tag="4"
android:text="Speaking"
android:padding="16dp"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toRightOf="@id/imgSpeaking"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/writing" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgVocabulary"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/imgvocabulary"
app:civ_border_color="#ffffff"
app:civ_border_width="3dp"
app:layout_constraintBottom_toTopOf="@id/about"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/vocabulary"
app:layout_constraintTop_toBottomOf="@id/imgSpeaking" />
<TextView
android:id="@+id/vocabulary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/background"
android:gravity="center"
android:onClick="setInt"
android:tag="5"
android:layout_marginLeft="8dp"
android:padding="16dp"
android:text="Vocabulary"
android:textColor="#fff"
android:textSize="16sp"
app:layout_constraintLeft_toRightOf="@id/imgVocabulary"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/speaking" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imgAbout"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:src="@drawable/about"
app:civ_border_color="#ffffff"
app:civ_border_width="3dp"
android:layout_marginTop="10dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/about"
app:layout_constraintTop_toBottomOf="@id/imgVocabulary" />
<TextView
android:id="@+id/about"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:padding="16dp"
android:background="@drawable/background"
android:gravity="center"
android:text="About"
android:textColor="#fff"
android:textSize="16sp"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toRightOf="@id/imgAbout"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/vocabulary" />
android.support.constraint.ConstraintLayout >
1-rasm: ishlab chiqilgan prototip kodini UI qismi
Adding to Git hub:
2-rasm: GitHubdagi profilingiz, repository orqali papka hosil qilamiz va prototip kodini shu yerga yuklaymiz.
3-rasm: Sizdagi yuklangan prototip kodi “getUpdates.py ” hamda “telegrambot.py ”ning o’rnida joylashgan bo’lishi kk
Topshiriq: Tuzmoqchi bo’lgan proyektingizni prototip kodini, ya’ni User Interface qismi kodini GitHubga joylashtirish.Do'stlaringiz bilan baham: