How to remove space between app activity and navigation bar?
Screenshot was taken on Xiamoni Redmi Note5
In the emulator, this problem has not happened.
please help me.
android android-studio
|
show 1 more comment
Screenshot was taken on Xiamoni Redmi Note5
In the emulator, this problem has not happened.
please help me.
android android-studio
1
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10
|
show 1 more comment
Screenshot was taken on Xiamoni Redmi Note5
In the emulator, this problem has not happened.
please help me.
android android-studio
Screenshot was taken on Xiamoni Redmi Note5
In the emulator, this problem has not happened.
please help me.
android android-studio
android android-studio
edited Nov 20 '18 at 17:58
leonardkraemer
3,45111532
3,45111532
asked Nov 20 '18 at 16:49
BIPUL MANDOLBIPUL MANDOL
64
64
1
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10
|
show 1 more comment
1
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10
1
1
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10
|
show 1 more comment
1 Answer
1
active
oldest
votes
Change your layout as follows:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CatalogActivity" >
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
// etc rest if the layout is the same
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53397763%2fhow-to-remove-space-between-app-activity-and-navigation-bar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Change your layout as follows:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CatalogActivity" >
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
// etc rest if the layout is the same
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
add a comment |
Change your layout as follows:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CatalogActivity" >
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
// etc rest if the layout is the same
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
add a comment |
Change your layout as follows:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CatalogActivity" >
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
// etc rest if the layout is the same
Change your layout as follows:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CatalogActivity" >
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
// etc rest if the layout is the same
answered Nov 20 '18 at 17:29
MidasLefkoMidasLefko
3,03612139
3,03612139
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
add a comment |
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
match_parent not work. N.B: It works on emulator but does not work in a Physical device.
– BIPUL MANDOL
Nov 20 '18 at 18:02
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 '18 at 18:43
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 '18 at 19:52
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 '18 at 20:40
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 '18 at 5:34
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53397763%2fhow-to-remove-space-between-app-activity-and-navigation-bar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please upload your layout.xml
– MidasLefko
Nov 20 '18 at 16:51
Is this a native app?
– haroldolivieri
Nov 20 '18 at 16:52
@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 '18 at 17:02
Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 '18 at 17:10
please do not use screenshots to provide code snippets or layouts as this makes it more difficult to test your code. In other words, do not expect any help if we have to do more work then necessary to help you find a solution to your issue. Edit your post and add the xml layout in text form.
– Barns
Nov 20 '18 at 17:10