added border for selected camera view
This commit is contained in:
parent
4aa17ec8f3
commit
482f69e003
@ -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();
|
||||
|
||||
holder.setKeepScreenOn(true);
|
||||
|
6
app/src/main/res/drawable/focus_border.xml
Normal file
6
app/src/main/res/drawable/focus_border.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user