-1
我有一個兩個片段。例如FragmentOne和FragmentTwo。在我的 FragmentOne有地圖,標記和一個佈局。最初佈局狀態是 隱形。當我點擊標記時,一個佈局在同一個
片段中可見。當我點擊佈局時,單擊事件重定向到另一個名爲FragmentTwo的 片段名稱。移動到上一個片段,無需重新加載,同時點擊當前片段的後退按鈕
now i am in FragmentTwo. my FragmentTwo have a back Button. when i click a
back button i need to move to FragmentOne. it is working fine. but the
FragmentOne shows only the map and marker. i can't able to see the layout.
i need to move from FragmentTwo to FragmentOne. without reloading
FragmentOne.
i Mean i need to see the Map,marker and layout in
FragmentOne while redirect from FragmentTwo.
I am new from fragment side. so please help me. Thanks in advance.
i need to move from FragmentTwo to FragmentOne. without reloading
FragmentOne.
i Mean i need to see the Map,marker and the list item(popup) in my
FragmentOne while Transaction from FragmentTwo.
I am new from fragment side. so please help me. Thanks in advance.
////////////////////////////////////////////////////////////////////////////////
I have a two fragment. example FragmentOne and FragmentTwo. in my
FragmentOne have map,markers and one layout. initially the layout state is
invisible. when i click the marker one layout is visible in the same
fragment. when i click the layout the click event redirect to another
fragment name called FragmentTwo.
now i am in FragmentTwo. my FragmentTwo have a back Button. when i click a
back button i need to move to FragmentOne. it is working fine. but the
FragmentOne shows only the map and marker. i can't able to see the layout.
i need to move from FragmentTwo to FragmentOne. without reloading
FragmentOne.
i Mean i need to see the Map,marker and layout in
FragmentOne while redirect from FragmentTwo.
I am new from fragment side. so please help me. Thanks in advance.
i need to move from FragmentTwo to FragmentOne. without reloading
FragmentOne.
i Mean i need to see the Map,marker and the list item(popup) in my
FragmentOne while Transaction from FragmentTwo.
I am new from fragment side. so please help me. Thanks in advance.
i need to move from FragmentTwo to FragmentOne. without reloading
FragmentOne.
i Mean i need to see the Map,marker and the list item(popup) in my
FragmentOne while Transaction from FragmentTwo.
I am new from fragment side. so please help me. Thanks in advance.
您需要在創建全局變量後顯示您的對話框'onResume()',或者您需要使用'savedInstance'。 – Piyush