+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="deploymentTargetDropDown">
- <runningDeviceTargetSelectedWithDropDown>
- <Target>
- <type value="RUNNING_DEVICE_TARGET" />
- <deviceKey>
- <Key>
- <type value="SERIAL_NUMBER" />
- <value value="3e50111c1220" />
- </Key>
- </deviceKey>
- </Target>
- </runningDeviceTargetSelectedWithDropDown>
- <timeTargetWasSelectedWithDropDown value="2021-10-23T14:07:36.554401800Z" />
- </component>
-</project>
\ No newline at end of file
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.exifinterface:exifinterface:1.3.3'
- implementation "androidx.core:core-ktx:1.6.0"
+ implementation "androidx.core:core-ktx:1.7.0"
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
try
{
this.refresher = refresher
- imageView.setAnotherDrawer(this)
+ imageView.setAnotherDrawer(this, null)
startConsoleRefresh()
}
catch (e : Exception)
interface ILiveView
{
fun setImageProvider(provider : IImageProvider)
- fun setAnotherDrawer(drawer : IAnotherDrawer?)
+ fun setAnotherDrawer(drawer : IAnotherDrawer?, drawer2 : IAnotherDrawer?)
fun updateImageRotation(degrees : Int)
fun getMessageDrawer() : IMessageDrawer
fun invalidate()
private var focusFrameHideTimer: Timer? = null
private var isRotationImage = false
private var anotherDrawer : IAnotherDrawer? = null
+ private var overwriteDrawer : IAnotherDrawer? = null
constructor(context: Context) : super(context)
{
this.imageProvider = provider
}
- override fun setAnotherDrawer(drawer: IAnotherDrawer?)
+ override fun setAnotherDrawer(drawer: IAnotherDrawer?, drawer2: IAnotherDrawer?)
{
Log.v(TAG, " setAnotherDrawer() ")
this.anotherDrawer = drawer
+ this.overwriteDrawer = drawer2
}
override fun updateImageRotation(degrees: Int)
this.drawFocusFrame(canvas,imageRectF.width(), imageRectF.height())
informationDrawer.drawInformationMessages(canvas, imageRectF)
informationDrawer.drawLevelGauge(canvas, imageRotationDegrees)
+
+ if (overwriteDrawer != null)
+ {
+ // 画面の上にデータを載せる場合...
+ overwriteDrawer?.onDraw(canvas)
+ return
+ }
}
override fun showGridFrame(isShowGrid: Boolean, color : Int)