Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
intern-amin-qms
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amin
intern-amin-qms
Commits
58a4a997
Commit
58a4a997
authored
Oct 24, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix layout margin - issue
parent
7a2fde31
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
MainActivity.java
app/src/main/java/com/example/qms/MainActivity.java
+1
-1
activity_issues.xml
app/src/main/res/layout/activity_issues.xml
+2
-2
activity_main.xml
app/src/main/res/layout/activity_main.xml
+17
-5
No files found.
app/src/main/java/com/example/qms/MainActivity.java
View file @
58a4a997
...
@@ -29,7 +29,7 @@ public class MainActivity extends AppCompatActivity {
...
@@ -29,7 +29,7 @@ public class MainActivity extends AppCompatActivity {
// Apply system bar insets
// Apply system bar insets
ViewCompat
.
setOnApplyWindowInsetsListener
(
findViewById
(
R
.
id
.
main
),
(
v
,
insets
)
->
{
ViewCompat
.
setOnApplyWindowInsetsListener
(
findViewById
(
R
.
id
.
main
),
(
v
,
insets
)
->
{
Insets
systemBars
=
insets
.
getInsets
(
WindowInsetsCompat
.
Type
.
systemBars
());
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
;
return
insets
;
});
});
...
...
app/src/main/res/layout/activity_issues.xml
View file @
58a4a997
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"
100dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
50dp
"
android:layout_height=
"
wrap_content
"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:gravity=
"center"
android:gravity=
"center"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
app/src/main/res/layout/activity_main.xml
View file @
58a4a997
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MainActivity"
>
tools:context=
".MainActivity"
>
<!-- ========== MAIN CONTENT ========== -->
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/main"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<!-- TOP BAR -->
<LinearLayout
<LinearLayout
android:id=
"@+id/topBar"
android:id=
"@+id/topBar"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -24,6 +24,18 @@
...
@@ -24,6 +24,18 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"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
<ImageButton
android:id=
"@+id/btnBack"
android:id=
"@+id/btnBack"
android:layout_width=
"32dp"
android:layout_width=
"32dp"
...
@@ -60,7 +72,7 @@
...
@@ -60,7 +72,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
app:layout_constraintStart_toStartOf=
"parent"
>
<!-- Left -->
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -82,7 +94,7 @@
...
@@ -82,7 +94,7 @@
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<!-- Center -->
<LinearLayout
<LinearLayout
android:id=
"@+id/add_issue_bottom_nav"
android:id=
"@+id/add_issue_bottom_nav"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -105,7 +117,7 @@
...
@@ -105,7 +117,7 @@
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<!-- Right -->
<LinearLayout
<LinearLayout
android:id=
"@+id/access_item_bottom_nav"
android:id=
"@+id/access_item_bottom_nav"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment