Skip to content

Commit

Permalink
fix preview centering (google#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexer authored and yaraki committed Jan 23, 2017
1 parent 70799b7 commit 07b948b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion library/src/main/res/layout-v14/texture_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<TextureView
android:id="@+id/texture_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:gravity="center"
/>

</merge>
4 changes: 3 additions & 1 deletion library/src/main/res/layout/surface_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<SurfaceView
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:gravity="center"
/>

</merge>

0 comments on commit 07b948b

Please sign in to comment.