1

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 enter image description here

Anshuman Borah
  • 538
  • 2
  • 10

0 Answers0