Import android os. Bundle


ageTextView.setText("Yosh: " + user.getAge())


Download 141 Kb.
Pdf ko'rish
bet7/15
Sana20.11.2023
Hajmi141 Kb.
#1789524
1   2   3   4   5   6   7   8   9   10   ...   15
Bog'liq
Qodirov mobil ilovakar 2 dedline

ageTextView.setText("Yosh: " + user.getAge()); 
birthplaceTextView.setText("Tug‘ilgan joy: " + user.getBirthplace()); 



activity_main.xml: 
 

xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context=".MainActivity"> 
 

android:id="@+id/recyclerView" 
android:layout_width="match_parent" 
android:layout_height="match_parent" /> 
 


 
 
item_user.xml (Qator elementlari uchun): 
 
 

android:layout_width="match_parent" 
android:layout_height="wrap_content" 
android:orientation="vertical" 
android:padding="16dp"> 
 

android:id="@+id/lastNameTextView" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Familya:" /> 
 

android:id="@+id/firstNameTextView" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Ism:" /> 
 

android:id="@+id/ageTextView" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Yosh:" /> 

Download 141 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling