added border for selected camera view

This commit is contained in:
free-bots 2024-02-06 19:03:13 +01:00
parent 4aa17ec8f3
commit 482f69e003
No known key found for this signature in database
GPG Key ID: 333C776CD83F2877
2 changed files with 7 additions and 0 deletions

View File

@ -277,6 +277,7 @@ public class SurveillanceFragment extends Fragment {
} }
}); });
surfaceView.setOnFocusChangeListener((view, hasFocus) -> view.setBackgroundResource(hasFocus ? R.drawable.focus_border : 0));
SurfaceHolder holder = surfaceView.getHolder(); SurfaceHolder holder = surfaceView.getHolder();
holder.setKeepScreenOn(true); holder.setKeepScreenOn(true);

View File

@ -0,0 +1,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dip"
android:color="@color/white" />
</shape>