How to remove space between app activity and navigation bar?











up vote
0
down vote

favorite












Screenshot was taken on Xiamoni Redmi Note5



Screenshot was taken on Xiamoni Redmi Note5



In the emulator, this problem has not happened.
please help me.



XMl file










share|improve this question




















  • 1




    Please upload your layout.xml
    – MidasLefko
    Nov 20 at 16:51










  • Is this a native app?
    – haroldolivieri
    Nov 20 at 16:52










  • @MidasLefko please see the XML file.
    – BIPUL MANDOL
    Nov 20 at 17:02










  • Sorry i don't know what is native app.
    – BIPUL MANDOL
    Nov 20 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 at 17:10

















up vote
0
down vote

favorite












Screenshot was taken on Xiamoni Redmi Note5



Screenshot was taken on Xiamoni Redmi Note5



In the emulator, this problem has not happened.
please help me.



XMl file










share|improve this question




















  • 1




    Please upload your layout.xml
    – MidasLefko
    Nov 20 at 16:51










  • Is this a native app?
    – haroldolivieri
    Nov 20 at 16:52










  • @MidasLefko please see the XML file.
    – BIPUL MANDOL
    Nov 20 at 17:02










  • Sorry i don't know what is native app.
    – BIPUL MANDOL
    Nov 20 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 at 17:10















up vote
0
down vote

favorite









up vote
0
down vote

favorite











Screenshot was taken on Xiamoni Redmi Note5



Screenshot was taken on Xiamoni Redmi Note5



In the emulator, this problem has not happened.
please help me.



XMl file










share|improve this question















Screenshot was taken on Xiamoni Redmi Note5



Screenshot was taken on Xiamoni Redmi Note5



In the emulator, this problem has not happened.
please help me.



XMl file







android android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 17:58









leonardkraemer

2,83811528




2,83811528










asked Nov 20 at 16:49









BIPUL MANDOL

64




64








  • 1




    Please upload your layout.xml
    – MidasLefko
    Nov 20 at 16:51










  • Is this a native app?
    – haroldolivieri
    Nov 20 at 16:52










  • @MidasLefko please see the XML file.
    – BIPUL MANDOL
    Nov 20 at 17:02










  • Sorry i don't know what is native app.
    – BIPUL MANDOL
    Nov 20 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 at 17:10
















  • 1




    Please upload your layout.xml
    – MidasLefko
    Nov 20 at 16:51










  • Is this a native app?
    – haroldolivieri
    Nov 20 at 16:52










  • @MidasLefko please see the XML file.
    – BIPUL MANDOL
    Nov 20 at 17:02










  • Sorry i don't know what is native app.
    – BIPUL MANDOL
    Nov 20 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 at 17:10










1




1




Please upload your layout.xml
– MidasLefko
Nov 20 at 16:51




Please upload your layout.xml
– MidasLefko
Nov 20 at 16:51












Is this a native app?
– haroldolivieri
Nov 20 at 16:52




Is this a native app?
– haroldolivieri
Nov 20 at 16:52












@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 at 17:02




@MidasLefko please see the XML file.
– BIPUL MANDOL
Nov 20 at 17:02












Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 at 17:10




Sorry i don't know what is native app.
– BIPUL MANDOL
Nov 20 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 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 at 17:10














1 Answer
1






active

oldest

votes

















up vote
0
down vote













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





share|improve this answer





















  • match_parent not work. N.B: It works on emulator but does not work in a Physical device.
    – BIPUL MANDOL
    Nov 20 at 18:02










  • what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
    – MidasLefko
    Nov 20 at 18:43










  • It has been compiled without error.But the space problem didn't solve.
    – BIPUL MANDOL
    Nov 20 at 19:52










  • You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
    – MidasLefko
    Nov 20 at 20:40










  • That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
    – BIPUL MANDOL
    Nov 21 at 5:34











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
});


}
});














draft saved

draft discarded


















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








up vote
0
down vote













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





share|improve this answer





















  • match_parent not work. N.B: It works on emulator but does not work in a Physical device.
    – BIPUL MANDOL
    Nov 20 at 18:02










  • what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
    – MidasLefko
    Nov 20 at 18:43










  • It has been compiled without error.But the space problem didn't solve.
    – BIPUL MANDOL
    Nov 20 at 19:52










  • You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
    – MidasLefko
    Nov 20 at 20:40










  • That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
    – BIPUL MANDOL
    Nov 21 at 5:34















up vote
0
down vote













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





share|improve this answer





















  • match_parent not work. N.B: It works on emulator but does not work in a Physical device.
    – BIPUL MANDOL
    Nov 20 at 18:02










  • what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
    – MidasLefko
    Nov 20 at 18:43










  • It has been compiled without error.But the space problem didn't solve.
    – BIPUL MANDOL
    Nov 20 at 19:52










  • You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
    – MidasLefko
    Nov 20 at 20:40










  • That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
    – BIPUL MANDOL
    Nov 21 at 5:34













up vote
0
down vote










up vote
0
down vote









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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 at 17:29









MidasLefko

3,04312138




3,04312138












  • match_parent not work. N.B: It works on emulator but does not work in a Physical device.
    – BIPUL MANDOL
    Nov 20 at 18:02










  • what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
    – MidasLefko
    Nov 20 at 18:43










  • It has been compiled without error.But the space problem didn't solve.
    – BIPUL MANDOL
    Nov 20 at 19:52










  • You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
    – MidasLefko
    Nov 20 at 20:40










  • That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
    – BIPUL MANDOL
    Nov 21 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 at 18:02










  • what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
    – MidasLefko
    Nov 20 at 18:43










  • It has been compiled without error.But the space problem didn't solve.
    – BIPUL MANDOL
    Nov 20 at 19:52










  • You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
    – MidasLefko
    Nov 20 at 20:40










  • That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
    – BIPUL MANDOL
    Nov 21 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 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 at 18:02












what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 at 18:43




what do you mean "it doesnt work"? Doesnt compile? Has unexpected output? Please explain...
– MidasLefko
Nov 20 at 18:43












It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 at 19:52




It has been compiled without error.But the space problem didn't solve.
– BIPUL MANDOL
Nov 20 at 19:52












You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 at 20:40




You set match_parent to RelativeLayout AND ListView? You removed padding from ListView?
– MidasLefko
Nov 20 at 20:40












That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 at 5:34




That problem only occurred in a large device like Xiamoni Redmi Note 5(display size 5.99'')
– BIPUL MANDOL
Nov 21 at 5:34


















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'