热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

需要适合每个设备上的LinearLayout图标-NeedfitinLinearLayouticonsoneverydevice

Ihopethatatleastsomeonewilltryhelpme:)我希望至少有人会尝试帮助我:)Iambeginnerandsorryformyengl

I hope that atleast someone will try help me :)

我希望至少有人会尝试帮助我:)

I am beginner and sorry for my english.

我是初学者,对不起我的英语。

My problem: I need to fit this linearlayout on every device and I do not know how (it fits on my phone, but I think it will not fit on the others)

我的问题:我需要在每台设备上安装这个线性布局,我不知道它是如何(它适合我的手机,但我认为它不适合其他设备)



    

        

            

            
        

        


            

            
        

        


            


            
        

        


            

            
        

        


            

            
        
    

How it looks in android emulator

它在android模拟器中看起来如何

Thank you very much guys for help, I tried my best but I do not know here....

非常感谢你们的帮助,我尽我所能,但我不知道......

//EDIT:

Here are results: (not working :/ )

结果如下:(不工作:/)

click here for screenshots

点击此处查看截图

2 个解决方案

#1


0  

Only add android:layout_weight=".2" and changed android:layout_ for each LinearLayout because 0.2 * (5 LinearLayout) is 1 it's your android:weightSum="1"

只添加android:layout_weight =“。2”并更改了每个LinearLayout的android:layout_width =“。0dp”因为0.2 *(5 LinearLayout)是1它是你的android:weightSum =“1”

try this code..

试试这个代码..




    

        

            

                

                
            

            

                

                
            

            

                

                
            

            


                

                
            

            


                

                
            
        
    


#2


0  

try this:

Just replace the icons and title as per your choice.

只需根据您的选择替换图标和标题。



    

        

        

    
    

        

        

    
    

        

        

    
    

        

        

    
    

        

        

    

I hope this will help you.

我希望这能帮到您。


推荐阅读
author-avatar
那年冬天2502861741
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有