360手机卫士界面布局学习过程续(一)

首先总结一下昨天做的界面。

把两个主要布局做出来,之后还会再继续优化。

1、最上面的边距还要继续调整,右边的“网页”、“亿”还要再继续调整。

2、背景颜色(绿色),按钮的颜色,细线的颜色,都要继续调整。

3、“立即优化”按钮处的细节待完善。

4、下面按钮都有一个点击事件,但是我目前用的全部都是线性布局,我要考虑下之后要不要换成GridView来做。

先上图:

cygn.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
     >
    <LinearLayout 
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="6.5"
        android:orientation="vertical"
        android:background="#00ff00"
        >
        <LinearLayout 
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            >
            <RelativeLayout 
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                >
                <LinearLayout 
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:gravity="center_horizontal"
                    >
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/privacy_password_pro_logo"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="360卫士"
                    android:textSize="20sp"
                    />
                </LinearLayout>
            <ImageButton 
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/st_icon_wifi_exam"
                android:layout_alignParentRight="true"
                android:layout_alignParentEnd="true"
                />
            </RelativeLayout>
        </LinearLayout>
        <LinearLayout 
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="6"
            android:gravity="center"
            >
            <Button 
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="立即优化"
                />
        </LinearLayout>
        
        </LinearLayout>
    <LinearLayout 
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="5.5"
        android:orientation="vertical"
        >
        <LinearLayout 
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            >
            <LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/exam_frequently_used_tools_icon_clean"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="清理加速"
                    android:textSize="12sp"
                    />
            </LinearLayout>
            <View 
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="#110000"
                />
            <LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/exam_frequently_used_tools_icon_net_traffic"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="花费流量"
                    android:textSize="12sp"
                    />
            </LinearLayout>
        </LinearLayout>
        <View 
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="#110000"
                />
        <LinearLayout 
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            >
<LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
               <ImageView 
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/exam_frequently_used_tools_icon_block_anoy"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="骚扰拦截"
                    android:textSize="12sp"
                    />
            </LinearLayout>
            <View 
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="#110000"
                />
            <LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/exam_frequently_used_tools_icon_txl"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="通讯录"
                    android:textSize="12sp"
                    />
            </LinearLayout>
        </LinearLayout>
        <View 
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="#110000"
                />        
        <LinearLayout 
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            >
<LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
                <ImageView 
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:background="@drawable/exam_frequently_used_tools_icon_guardpay"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="支付保镖"
                    android:textSize="12sp"
                    />
            </LinearLayout>
            <View 
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="#110000"
                />
            <LinearLayout 
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:gravity="center"
                >
                <ImageView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                  android:background="@drawable/exam_frequently_used_tools_icon_malware"
                    />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="手机杀毒"
                    android:textSize="12sp"
                    />
            </LinearLayout>            
        </LinearLayout>
    </LinearLayout>
    

</LinearLayout>

好的,继续优化调整。有看客有哪里可以指点的请不吝赐教。

时间: 2024-08-06 20:08:19

360手机卫士界面布局学习过程续(一)的相关文章

360手机卫士界面布局学习过程续(四)

今天学习的是第四个界面-隐私保护. 先上图,第一张是360卫士的图,后面两个是我自己做的.        这个界面做的还是比较满意的啦!学习下去必须要有慢慢的进步,也要有自己的目标,否则根本坚持不下去,当然为了工作不得不做那个是例外. 对比三张图. 1.如果不设置背景色的话就如第二张图所示,第三张我设置为了白色以示区别.颜色这个东西还要慢慢调咯. 2.这次的布局我完全是用野蛮强上的,分辨率只考虑720*1280. 3.大的布局出来了,后面就是小小的调整,暂时不考虑代码重构.先做出来就行.

360手机卫士界面布局学习过程续(二)

今天稍微完善了下界面,还是有很多不足,会在下面把工程上传下来,记录自己的一个过程. 1.颜色和位置稍稍了调了下,还没有考虑各个分辨率的配置,暂时先不改动了. 2.主布局采用的是Fragment,当然也是网上搜的例子,全部改成我自己的命名. 3."安全防护"界面使用了Style,界面确实简单很多.慢慢养成习惯,为之后的"重构"做准备. 4."安全防护"界面使用了GridView.GridView应用在Fragment中也找到了解决方法,不过也有待完

360手机卫士界面布局学习过程续(三)

今天继续编辑第三个界面:安全防护. 这次我直接来强硬的高度全部用dp. 1.文本大小还要再调. 2.边框细线的颜色还要再调. 3.下面文本和颜色错乱了,还要调下. 有点像了,继续加油.

360手机卫士界面布局学习过程续(五)----四个主界面基本完成!接下来“跳转”

很明显的对比:1.我做的界面比原始界面确实还有很多差距.暂时就到此吧!接下来都是细调的工作. 2.接下来就开始二级界面的学习. 工程名:20150421studyfor360

360手机卫士界面布局学习过程

高仿360手机卫士——Android源码

高仿360手机卫士 高仿360手机卫士界面android源码,左右滑动效果,超炫. 下载地址:http://www.devstore.cn/code/info/1173.html 运行截图:    热门源码下载: 高仿京东商城 Android快速开发不可或缺的11个工具类 Android快速开发框架LoonAndroid Android应用源码比较不错的新闻客户端 版权声明:本文为博主原创文章,未经博主允许不得转载.

Android桌面悬浮窗效果实现,仿360手机卫士悬浮窗效果

转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/8689140 大家好,今天给大家带来一个仿360手机卫士悬浮窗效果的教程,在开始之前请允许我说几句不相干的废话. 不知不觉我发现自己接触Android已有近三个年头了,期间各种的成长少不了各位高手的帮助,总是有很多高手喜欢把自己的经验写在网上,供大家来学习,我也是从中受惠了很多,在此我深表感谢.可是我发现我却从来没有将自己平时的一些心得拿出来与大家分享,共同学习,太没有奉献精神了.

高仿360手机卫士

高仿360手机卫士 高仿360手机卫士,实现了大部分模块的功能,模块划分极度清晰,可以一个个引用,界面设计采用的现在主流的模式,有各种动画效果,很容易移植到自己的工程里. 下载地址:http://www.devstore.cn/code/info/825.html 运行截图:    

360手机卫士插件化RePlugin今日开源

写在前面 "RePlugin将在6月底开源,这将是我们献给安卓世界最好的礼物."当我们宣布这一消息时,心中的激动,无以言表.是的,三年的"厚积",如今的"薄发",看似平凡的话,实际上却饱含了我们太多的激动.辛酸与泪. 那么今天,我们就来详细的和您聊一聊,这个从2014年中旬,正式在手机卫士上启用,并即将开源的360 RePlugin,究竟能为我们,更为您能带来什么. GitHub地址:https://github.com/Qihoo360/ReP