Skip to content

Commit

Permalink
reuse bg image
Browse files Browse the repository at this point in the history
  • Loading branch information
wysaid committed Oct 8, 2024
1 parent 2a53f2d commit d3c7906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class ImageDemoWithMatrixActivity : AppCompatActivity() {

initView()
initEvent()

}

private fun initEvent() {
Expand Down Expand Up @@ -54,16 +53,14 @@ class ImageDemoWithMatrixActivity : AppCompatActivity() {
}

override fun onNothingSelected(p0: AdapterView<*>?) {

}

}
}

private fun initView() {
val spinner: Spinner = findViewById(R.id.filter_item)
val demoView: MatrixMutualViewGroup = findViewById(R.id.demo_view)
val mBitmap = BitmapFactory.decodeResource(resources, R.mipmap.test_image)
val mBitmap = BitmapFactory.decodeResource(resources, R.drawable.bgview)
demoView.doOnLayout {
demoView.initBitmap(mBitmap)
}
Expand Down
Binary file removed cgeDemo/src/main/res/mipmap-nodpi/test_image.webp
Binary file not shown.

0 comments on commit d3c7906

Please sign in to comment.