Merge pull request #31 from free-bots/feature/stream-focus-highlighting
added border for selected camera view
This commit is contained in:
commit
dd59aa129b
@ -317,6 +317,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);
|
||||||
|
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