How can i made the layout that will work in both Tablet and phone?

后端 未结 4 1900
天涯浪人
天涯浪人 2020-12-06 07:46

I made the layout from xml with on tablet layout of emulator size. But when open on same layout on android phone device then every thing distorted, So can i make a xml layou

4条回答
  •  醉梦人生
    2020-12-06 08:21

    Use Tables and weights to create the same or similar aspect ratio on a phone that would be on a tablet. I would only create different Layouts as a last resort.

    
                 //Note: You will need some other TableRows fill in the difference of this Table Row..2 more of the same will equal 1.
            
    
            
    
            
    
        
    

提交回复
热议问题