how to return to the previous PrefenenceScreen from nested PreferenceScreen without press the back button

前端 未结 4 733
小鲜肉
小鲜肉 2021-01-06 17:19

I have write a multi-level Preferences in program with xml File. and i want to know how to return to the previous level without press the back button. how to write some code

4条回答
  •  灰色年华
    2021-01-06 17:56

    I think you are looking for something like this

    
    
    
        
        
    
    
    
        
    
            
    
            
    
            ...             
            
        
    
    
    
        
    
        
    
    

    But what I didnt get is that your want to return to the previous preference screen, without pressing back button. Can you shed some more light on that??

提交回复
热议问题