INNER CODE UNIT · Kotlin
initViews
burhanrashid52/PhotoEditor · app/src/main/java/com/burhanrashid52/photoediting/EditImageActivity.kt:161
private fun initViews() {
mPhotoEditorView = findViewById(R.id.photoEditorView)
mTextPlacementOverlay = findViewById(R.id.viewTextPlacementOverlay)
mTextPlacementOverlay.setOnTouchListener { _, event ->
if (mIsTextPlacementPending && event.action == MotionEvent.ACTION_UP) {
clearPendingTextPlacement()
showTextEditorDialog(Position(event.x.toInt(), event.y.toInt()))
true
} else {
false
}
}
mTxtCurrentTool = findViewById(R.id.txtCurrentTool)
mRvTools = findViewById(R.id.rvConstraintTools)
mRvFilters = findViewById(R.id.rvFilterView)
mRootView = findViewById(R.id.rootView)
mImgUndo = findViewById(R.id.imgUndo)