diff --git a/.idea/other.xml b/.idea/other.xml new file mode 100644 index 0000000..0d3a1fb --- /dev/null +++ b/.idea/other.xml @@ -0,0 +1,263 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6a154b7..5bfa0ae 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ + + = arrayListOf() + val pageHelper = PageHelper(this, Page5::class.java, null) + lateinit var pager : ViewPager + lateinit var idShower: TextView + + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + enableEdgeToEdge() + setContentView(R.layout.activity_page6) + ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets -> + val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) + v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) + insets + } + + val am = assets + for (i in 1..4){ + val item = Item(i.toString(), BitmapFactory.decodeStream(am.open("CatPics/${i}.jpeg"))) + mItemList.add(item) + } + + val adapter = Page6CatPics(this,mItemList) + pager = findViewById(R.id.P6_vp_content) + pager.adapter = adapter + pager.currentItem = 0 + pager.addOnPageChangeListener(this) + + val P6NextPage = findViewById