Import android os. Bundle


// Bu fragmentga o'tkazilganda tushuncha ko'rsatish


Download 141 Kb.
Pdf ko'rish
bet15/15
Sana20.11.2023
Hajmi141 Kb.
#1789524
1   ...   7   8   9   10   11   12   13   14   15
Bog'liq
Qodirov mobil ilovakar 2 dedline

 


// Bu fragmentga o'tkazilganda tushuncha ko'rsatish 
Toast.makeText(getActivity(), "Ikkinchi fragment", Toast.LENGTH_SHORT).show(); 
 
return view


 
res/layout/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/container" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:layout_above="@+id/bottomBar" 
android:layout_below="@+id/topBar" /> 
 

 
 
res/layout/fragment_second.xml: 
 

android:layout_width="match_parent" 


android:layout_height="match_parent"> 
 

 
 

Download 141 Kb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   15




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