查询文件[置顶] Android 仿 WP7 布局

本文纯属个人见解,是对前面学习的总结,如有描述不正确的地方还请高手指正~

    布局文件:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#000000"
    android:orientation="vertical" >

    <com.markupartist.android.widget.ActionBar
        android:id="@+id/actionbar"
        style="@style/ActionBar" />

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#000000"
        android:orientation="vertical" >

        <LinearLayout
            android:id="@+id/linearLayout3"
            android:layout_width="140sp"
            android:layout_height="140sp"
            android:layout_alignParentRight="true"
            android:layout_alignTop="@+id/linearLayout2"
            android:layout_marginLeft="8sp"
            android:layout_marginRight="15dp"
            android:background="#FF0033"
            android:orientation="vertical" >

            <ImageView
                android:id="@+id/bikeView"
                android:layout_width="80sp"
                android:layout_height="80sp"
                android:layout_marginLeft="30sp"
                android:layout_marginTop="30sp"
                android:src="@drawable/clock"
                android:textColor="#CCFFCC" />

            <TextView
                android:id="@+id/TextView01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5sp"
                android:layout_marginTop="10sp"
                android:text="自行车查询"
                android:textColor="#CCFFCC" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/linearLayout2"
            android:layout_width="140sp"
            android:layout_height="140sp"
            android:layout_above="@+id/linearLayout1"
            android:layout_marginBottom="8sp"
            android:layout_marginLeft="15sp"
            android:background="#0000FF"
            android:orientation="vertical" >

            <ImageView
                android:id="@+id/busView"
                android:layout_width="80sp"
                android:layout_height="80sp"
                android:layout_marginLeft="30sp"
                android:layout_marginTop="30sp"
                android:src="@drawable/contacts"
                android:textColor="#CCFFCC" />

            <TextView
                android:id="@+id/textView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5sp"
                android:layout_marginTop="10sp"
                android:text="公交车查询"
                android:textColor="#CCFFCC" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/linearLayout1"
            android:layout_width="140sp"
            android:layout_height="140sp"
            android:layout_alignLeft="@+id/linearLayout2"
            android:layout_alignParentBottom="true"
            android:layout_alignRight="@+id/linearLayout2"
            android:layout_marginBottom="60dp"
            android:background="#FFCC00"
            android:orientation="vertical" >

            <ImageView
                android:id="@+id/carView"
                android:layout_width="80sp"
                android:layout_height="80sp"
                android:layout_marginLeft="30sp"
                android:layout_marginTop="30sp"
                android:src="@drawable/maps"
                android:textColor="#CCFFCC" />

            <TextView
                android:id="@+id/TextView02"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5sp"
                android:layout_marginTop="10sp"
                android:text="私家车防盗"
                android:textColor="#CCFFCC" />
        </LinearLayout>

        <LinearLayout
            android:layout_width="140sp"
            android:layout_height="140sp"
            android:layout_alignLeft="@+id/linearLayout3"
            android:layout_alignRight="@+id/linearLayout3"
            android:layout_below="@+id/linearLayout2"
            android:background="#33FF33"
            android:orientation="vertical" >

            <ImageView
                android:id="@+id/groupView"
                android:layout_width="80sp"
                android:layout_height="80sp"
                android:layout_marginLeft="30sp"
                android:layout_marginTop="30sp"
                android:src="@drawable/gmail"
                android:textColor="#CCFFCC" />

            <TextView
                android:id="@+id/TextView03"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5sp"
                android:layout_marginTop="10sp"
                android:text="群体出行"
                android:textColor="#CCFFCC" />
        </LinearLayout>

        <ImageView
            android:id="@+id/arrow"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignRight="@+id/linearLayout3"
            android:layout_marginRight="24dp"
            android:layout_marginTop="27dp"
            android:src="@drawable/arrow" />

    </RelativeLayout>

</LinearLayout>
    每日一道理
微笑,是春天里的一丝新绿,是秋日里的一缕阳光,是骄阳下的一片浓荫,是冬雪中的一株梅红……微笑着去面对吧,你会感到人生是那样的温馨与甜蜜!

    显示效果:

    查询和文件

文章结束给大家分享下程序员的一些笑话语录: 与女友分手两月有余,精神萎靡,面带菜色。家人介绍一女孩,昨日与其相亲。女孩果然漂亮,一向吝啬的我决定破例请她吃晚饭。
选了一个蛮贵的西餐厅,点了比较贵的菜。女孩眉开眼笑,与我谈得很投机。聊着聊着,她说:“我给你讲个笑话吧。”“ok”
  “一只螳螂要给一只雌蝴蝶介绍对象,见面时发现对方是只雄蜘蛛。见面后螳螂问蝴蝶‘如何?’,‘他长的太难看了’,‘别看人家长的丑,人家还有网站呢’。”
  “呵呵………”我笑。忽然她问:“你有网站吗?”  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值