Commit 58a4a997 authored by Amin's avatar Amin

fix layout margin - issue

parent 7a2fde31
......@@ -29,7 +29,7 @@ public class MainActivity extends AppCompatActivity {
// Apply system bar insets
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
v.setPadding(0, 0, 0, systemBars.bottom);
return insets;
});
......
......@@ -49,8 +49,8 @@
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
......
......@@ -7,13 +7,13 @@
android:layout_height="match_parent"
tools:context=".MainActivity">
<!-- ========== MAIN CONTENT ========== -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- TOP BAR -->
<LinearLayout
android:id="@+id/topBar"
android:layout_width="match_parent"
......@@ -24,6 +24,18 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</LinearLayout>
<LinearLayout
android:id="@+id/top_menu_bar"
android:layout_width="match_parent"
android:layout_height="59dp"
android:background="@color/primary"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/topBar">
<ImageButton
android:id="@+id/btnBack"
android:layout_width="32dp"
......@@ -60,7 +72,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent">
<!-- Left -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
......@@ -82,7 +94,7 @@
android:textSize="16sp" />
</LinearLayout>
<!-- Center -->
<LinearLayout
android:id="@+id/add_issue_bottom_nav"
android:layout_width="0dp"
......@@ -105,7 +117,7 @@
android:textSize="16sp" />
</LinearLayout>
<!-- Right -->
<LinearLayout
android:id="@+id/access_item_bottom_nav"
android:layout_width="0dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment