欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Android學習筆記-Activity的布局-創(chuàng)新互聯(lián)

線性布局

站在用戶的角度思考問題,與客戶深入溝通,找到樺南網(wǎng)站設(shè)計與樺南網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設(shè)計與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:成都做網(wǎng)站、網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、域名申請、網(wǎng)頁空間、企業(yè)郵箱。業(yè)務(wù)覆蓋樺南地區(qū)。

Android學習筆記-Activity的布局

<?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:orientation="vertical" >

    <!--
android:id  為控件指定的ID
android:text 制定控件中顯示的文字,盡量使用strings.xml中定義的內(nèi)容
android:grivity 指定控件的基本位置,比如居中、居右等位置
android:textSize 制定控件中字體的大小
android:background 指定該控件所只用的背景顏色,RGB命名法
android:width 控件的寬度
android:height 控件的高度
android:padding*控件的內(nèi)邊距,就是控件當中的內(nèi)容
android:singleLine 如果設(shè)置為true則控件的內(nèi)容在同一行中進行顯示
android:layout_weight="1" 當前控件占的比重為1
 -->

    <TextView
        android:id="@+id/first_string"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:background="#aa0000"
        android:gravity="center_vertical"
        android:paddingBottom="40dip"
        android:paddingLeft="10dip"
        android:paddingRight="30dip"
        android:paddingTop="20dip"
        android:singleLine="true"
        android:text="@string/hello_world"
        android:textSize="15pt" />
<!--     上下的layout_weight都為1,每個各占1/2
 -->

    <TextView
        android:id="@+id/second_string"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:background="#00aa00"
        android:gravity="center_vertical"
        android:paddingBottom="40dip"
        android:paddingLeft="10dip"
        android:paddingRight="30dip"
        android:paddingTop="20dip"
        android:singleLine="true"
        android:text="@string/hello_world"
        android:textSize="15pt" />

</LinearLayout>



表格布局

Android學習筆記-Activity的布局

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:stretchColumns="0" >
<!-- stretchColumns使用第0列作為拉伸列 -->
    <TableRow>

        <TextView
            android:padding="3dip"
            android:background="#aa0000"
            android:text="text11" />

        <TextView
            android:gravity="center_horizontal"
            android:background="#00aa00"
            android:padding="3dip"
            android:text="text12" />
        
        <TextView
            android:gravity="right"
            android:background="#0000aa"
            android:padding="3dip"
            android:text="text12" />
    </TableRow>

    <TableRow>

        <TextView
            android:padding="3dip"
            android:background="#a00000"
            android:text="text21" />

        <TextView
            android:gravity="right"
            android:background="#00a000"
            android:padding="3dip"
            android:text="text22" />
    </TableRow>

</TableLayout>


Android學習筆記-Activity的布局

<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.layout_01.MainActivity" >

    <!-- 
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />
 -->
 <!-- 
 android:layout_above 將該控件的底部置于給定ID的控件值上
 android:layout_below 將該控件的頂部置于給定ID的控件值下
 android:layout_toLeftOf 將該控件的右邊緣和給定ID的控件的左邊緣對齊
 android:layout_toRightOf 將該控件的左邊緣和給定ID的控件的右邊緣對齊
 
 android:layout_alignBaseline 該控件的baseline和給定ID的空間的baseline對齊
 android:layout_alignBottom 該控件的底部邊緣與給定ID控件的底部邊緣對齊
 android:layout_alignLeft 將該控件的左邊緣與給定ID控件的左邊緣對齊
 android:layout_alignRight 將該控件的右邊緣與給定ID控件的右邊緣對齊
 android:layout_alignTop 將給定控件的頂部邊緣與給定ID控件的頂部對齊
 
 android:layout_alignParentBottom 如果值為true,則將該控件的底部和父控件的底部對齊
 android:layout_alignParentLeft 如果值為true,則將該控件的左邊緣與父控件的左邊緣對齊 
 android:layout_alignParentRight 如果值為true,則將該控件的右邊緣與父控件的與右邊緣對齊
 android:layout_alignParentTop 如果值為true,則將控件的頂部與父控件的頂部對齊
 
 android:layout_centerHorizonal 如果值為true,該控件將被置于水平方向的中央
 android:layout_centerInParent 如果值為true,該控件將被置于父控件水平方向和垂直方向中央
 android:layout_centerVertical 如果值為true,該控件將被置于垂直方向的中央
  -->
 
 <TextView 
     android:id="@+id/label"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:text="Type here:"/>
 
 <EditText 
     android:id="@+id/entry"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:background="@android:drawable/editbox_dropdown_light_frame"
     android:layout_below="@id/label"/>
 
 <Button 
     android:id="@+id/ok"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_below="@id/entry"
     android:layout_alignParentRight="true"
     android:layout_marginLeft="10px"
     android:text="OK"/>
 
 <Button 
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_toLeftOf="@id/ok"
     android:layout_alignTop="@id/ok"
     android:text="Cancel"/>
</RelativeLayout>

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

文章題目:Android學習筆記-Activity的布局-創(chuàng)新互聯(lián)
轉(zhuǎn)載注明:http://aaarwkj.com/article28/dppgjp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、用戶體驗電子商務(wù)、網(wǎng)站內(nèi)鏈、App開發(fā)網(wǎng)站維護

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設(shè)
亚洲精品另类中文字幕| 四虎国产精品久久久久久网址 | 日韩一级不卡高清视频| 精品国产91乱码一区二区三区| 男人午夜激情免费网站| 大龄熟妇丰满有水多毛浓| 熟女少妇a一区二区三区| 偷拍视频在线一区二区| 男女搞j视频网站免费观看 | 中日韩中文字幕一区二区| 亚洲欧美日韩精品区| 色一区欧美一区亚洲一区| 亚洲精品欧美综合二区| 成人深夜福利视频观看| 日韩成人在线视频中文字幕| 亚洲乱码一区二区三区人妇| 国产精品白浆大屁股一区二区三| 日韩欧美亚洲自拍另类| 国产亚洲一区二区三区在线| 自拍日韩亚洲一区在线| 激情偷拍一区二区三区视频| 91国产性感美女视频| 东京热一区二区电影| 欧美午夜福利一级高清| 亚洲中文字幕偷拍色图| 久久91超碰青草在哪里看| 国产精品一区二区三区熟女| 中文字幕日韩激情欧美一区| 美女高潮啪啪啪91| 欧美日韩亚洲视频二区| 日韩精品人成在线播放| 少妇高潮特黄在线观看| 亚洲理论在线观看电影| 中文字幕日产乱码一二三区| 丝袜美腿亚洲综合第一区| 一区二区三区欧美日韩在线| 夜夜爽精品国产亚洲av成人| 国内成人午夜激情视频| 欧美日韩精品视频网站| 国产精品日韩一区视频| 欧美大片黄片在线观看|