Import android os. Bundle
android:layout_marginTop="16dp"
Qodirov mobil ilovakar 2 dedline
- Bu sahifa navigatsiya:
- "> android:layout_below="@+id/resultTextView" android:columnCount="4" android:orientation="horizontal">
- _____android:id="@+id/button6""> android:id="@+id/button5" android:text="5" /> android:id="@+id/button6"
- _____android:id="@+id/button2"___android:text="2"_/>"> android:id="@+id/button1" android:text="1" /> android:id="@+id/button2" android:text="2" />
- _____android:id="@+id/button0""> android:id="@+id/buttonSubtract" android:text="-" /> android:id="@+id/button0"
- _____android:id="@+id/buttonAdd""> android:id="@+id/buttonEquals" android:text="=" /> android:id="@+id/buttonAdd"
- 6200EA 3700B3 03DAC5
- MainActivity.java: import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import androidx.viewpager.widget.ViewPager;
- private ViewPager viewPager; private int[] imageIds = {R.drawable.image1, R.drawable.image2, R.drawable.image3}; // Rasmlar @Override
- viewPager = findViewById(R.id.viewPager); // PagerAdapter yaratish va sozlash
- Timer timer = new Timer(); timer.scheduleAtFixedRate(new MyTimerTask(), 2000, 4000); // Har 4 sekundda bir yangilanadi }
- @Override public void run() { if (viewPager.getCurrentItem() viewPager.setCurrentItem(viewPager.getCurrentItem() + 1);
- ImagePagerAdapter.java: import android.content.Context; import android.view.LayoutInflater; import android.view.View;
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling