custom dialog with close button

前端 未结 8 1709
天涯浪人
天涯浪人 2020-12-01 11:35

I want to create a custom dialog with the layout as shown in the picture. \"enter The cross/cl

8条回答
  •  北海茫月
    2020-12-01 12:06

    Relative layout will be your parent one and then add close button apply android:layout_alignParentRight="true" and android:layout_alignParentTop="true" and even give right and top margin in minus as per your requirement.

    Code

    
    
    
        
        
    
        

    Output

    enter image description here

提交回复
热议问题