add more bottom margin to bottom buttons

This commit is contained in:
Tibor Kaputa 2017-03-22 11:06:54 +01:00
parent c013f85ce5
commit e84ab36c79
2 changed files with 1 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
setContentView(R.layout.activity_main)
initButtons()
(btn_holder.layoutParams as RelativeLayout.LayoutParams).setMargins(0, 0, 0, navBarHeight)
(btn_holder.layoutParams as RelativeLayout.LayoutParams).setMargins(0, 0, 0, (navBarHeight + mRes.getDimension(R.dimen.activity_margin)).toInt())
mCurrCameraId = config.lastUsedCamera
mPreview = Preview(this, camera_view, this)

View File

@ -60,7 +60,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/activity_margin"
android:gravity="center_horizontal|bottom">
<ImageView