本文纯属个人见解,是对前面学习的总结,如有描述不正确的地方还请高手指正~
布局文件:
<?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”
“一只螳螂要给一只雌蝴蝶介绍对象,见面时发现对方是只雄蜘蛛。见面后螳螂问蝴蝶‘如何?’,‘他长的太难看了’,‘别看人家长的丑,人家还有网站呢’。”
“呵呵………”我笑。忽然她问:“你有网站吗?”