Esri Map Android not loading on changing height of layout
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
In my Application I two fragments in a single container. Half part of screen contains Esri Map and other half contains ListView
. At this point of time Map and ListView
are loaded fine, when I long press on ListView
, the container height change and ListView
show in full screen. But Now when I long press on Esri map I want to show it in full view mode by changing the height of Container. But Map is not showing when the container height is changed to full view(Match Parent).
This is my long press code in Esri
private fun onLongPress(){
val params = FrameLayout.LayoutParams(width, height)
params.topMargin = top
params.marginStart = start
val layoutTest = findViewById<FrameLayout>(viewId)
layoutTest.layoutParams = params
container.removeView(layoutTest)
container.addView(layoutTest, params)
}
Below is My Screen shot to explain the flow
android kotlin esri-maps
add a comment |
In my Application I two fragments in a single container. Half part of screen contains Esri Map and other half contains ListView
. At this point of time Map and ListView
are loaded fine, when I long press on ListView
, the container height change and ListView
show in full screen. But Now when I long press on Esri map I want to show it in full view mode by changing the height of Container. But Map is not showing when the container height is changed to full view(Match Parent).
This is my long press code in Esri
private fun onLongPress(){
val params = FrameLayout.LayoutParams(width, height)
params.topMargin = top
params.marginStart = start
val layoutTest = findViewById<FrameLayout>(viewId)
layoutTest.layoutParams = params
container.removeView(layoutTest)
container.addView(layoutTest, params)
}
Below is My Screen shot to explain the flow
android kotlin esri-maps
Why don't you usevisibility=gone
for the map with a largeweight
on theListView
then?
– shkschneider
Jan 4 at 10:06
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29
add a comment |
In my Application I two fragments in a single container. Half part of screen contains Esri Map and other half contains ListView
. At this point of time Map and ListView
are loaded fine, when I long press on ListView
, the container height change and ListView
show in full screen. But Now when I long press on Esri map I want to show it in full view mode by changing the height of Container. But Map is not showing when the container height is changed to full view(Match Parent).
This is my long press code in Esri
private fun onLongPress(){
val params = FrameLayout.LayoutParams(width, height)
params.topMargin = top
params.marginStart = start
val layoutTest = findViewById<FrameLayout>(viewId)
layoutTest.layoutParams = params
container.removeView(layoutTest)
container.addView(layoutTest, params)
}
Below is My Screen shot to explain the flow
android kotlin esri-maps
In my Application I two fragments in a single container. Half part of screen contains Esri Map and other half contains ListView
. At this point of time Map and ListView
are loaded fine, when I long press on ListView
, the container height change and ListView
show in full screen. But Now when I long press on Esri map I want to show it in full view mode by changing the height of Container. But Map is not showing when the container height is changed to full view(Match Parent).
This is my long press code in Esri
private fun onLongPress(){
val params = FrameLayout.LayoutParams(width, height)
params.topMargin = top
params.marginStart = start
val layoutTest = findViewById<FrameLayout>(viewId)
layoutTest.layoutParams = params
container.removeView(layoutTest)
container.addView(layoutTest, params)
}
Below is My Screen shot to explain the flow
android kotlin esri-maps
android kotlin esri-maps
asked Jan 4 at 7:40
Anshuman BorahAnshuman Borah
560210
560210
Why don't you usevisibility=gone
for the map with a largeweight
on theListView
then?
– shkschneider
Jan 4 at 10:06
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29
add a comment |
Why don't you usevisibility=gone
for the map with a largeweight
on theListView
then?
– shkschneider
Jan 4 at 10:06
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29
Why don't you use
visibility=gone
for the map with a large weight
on the ListView
then?– shkschneider
Jan 4 at 10:06
Why don't you use
visibility=gone
for the map with a large weight
on the ListView
then?– shkschneider
Jan 4 at 10:06
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29
add a comment |
0
active
oldest
votes
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%2f54034840%2fesri-map-android-not-loading-on-changing-height-of-layout%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f54034840%2fesri-map-android-not-loading-on-changing-height-of-layout%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
Why don't you use
visibility=gone
for the map with a largeweight
on theListView
then?– shkschneider
Jan 4 at 10:06
I tried it's not working
– Anshuman Borah
Jan 4 at 13:11
It should. And there are other ways of doing it. You should also post more code, we can't help that much with that few actual information.
– shkschneider
Jan 4 at 13:54
@shkschneider Actually in my case I have an information of only about the longpress item that need to expand and that I can't set the visibility to gone
– Anshuman Borah
Jan 5 at 4:52
I believe you should show more code if you expect a precise answer. This is yet too broad.
– shkschneider
Jan 6 at 14:29