Android Image Dialog/Popup same size as image and no border

后端 未结 5 1875
盖世英雄少女心
盖世英雄少女心 2020-12-23 14:35

At the moment I am working on a file browser. Everything works fine with one exception: If the user clicks on an image (jpg, png, bmp, ..), I want the image to be displayed

5条回答
  •  青春惊慌失措
    2020-12-23 15:37

    Use FrameLayout as it's parent rather than RelativeLayout and set to wrap_content and 0 margins.

    Try:

    
    
    
    
        
    
    
    
    

    The result should be a background the same size as the ImageView.

    If this does work. Try modifying this in a custom theme:

        
    

提交回复
热议问题