内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

android自學(xué)筆記2-布局-創(chuàng)新互聯(lián)

1.LinearLayout

目前創(chuàng)新互聯(lián)已為成百上千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬空間、網(wǎng)站運(yùn)營、企業(yè)網(wǎng)站設(shè)計、遼陽縣網(wǎng)站維護(hù)等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >
    
<!--     <Button  -->
<!--         android:id="@+id/button1" -->
<!--         android:layout_width="wrap_content" -->
<!--         android:layout_height="wrap_content" -->
<!--         android:layout_gravity="top" -->
<!--         android:text="Button 1" -->
<!--         /> -->
<!--     <Button  -->
<!--         android:id="@+id/button2" -->
<!--         android:layout_width="wrap_content" -->
<!--         android:layout_height="wrap_content" -->
<!--         android:layout_gravity="center_vertical" -->
<!--         android:text="Button 2" -->
<!--         /> -->
<!--     <Button  -->
<!--         android:id="@+id/button3" -->
<!--         android:layout_width="wrap_content" -->
<!--         android:layout_height="wrap_content" -->
<!--         android:layout_gravity="bottom" -->
<!--         android:text="Button 3" -->
<!--         /> -->
    
<EditText 
    android:id="@+id/input_message"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_weight="2"
    android:hint="Type Something" />

<Button 
    android:id="@+id/send"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    
    android:text = "Send"
    />
    
</LinearLayout>

2.RelativeLayout

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <Button 
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="Button 3" />
        
        
    <Button 
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
		android:layout_toLeftOf="@id/button3"
		android:layout_above="@id/button3"
        android:text="Button 1"
        />

    <Button 
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
		android:layout_alignLeft="@id/button3"
        android:text="Button 2"
        />
    <Button 
        android:id="@+id/button4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
		android:layout_toLeftOf="@id/button3"
		android:layout_below="@id/button3"
        android:text="Button 4" />    
    
<Button 
        android:id="@+id/button5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
		android:layout_toRightOf="@id/button3"
		android:layout_below="@id/button3"
        android:text="Button 5" />    
</RelativeLayout>

3.FrameLayout

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <Button 
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="Button 3" />
        
 <ImageView 
     android:id="@+id/p_w_picpathview"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:src="@drawable/ic_launcher"
     />
    
</FrameLayout>

4.TableLayout

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    android:stretchColumns="1"
    >
    
    


    <TableRow >
        <TextView 
            android:layout_height="wrap_content"
            android:text="Account:"
            />
 		<EditText 
 		    android:id="@+id/account"
 		    android:layout_height="wrap_content"
			android:hint="input your account"
 		    /> 
 		    
 		
    </TableRow>
   
    <TableRow >
        <TextView 
            android:layout_height="wrap_content"
            android:text="Password:"
            />
 		<EditText 
 		    android:hint="@+id/password"
 		    android:layout_height="wrap_content"
 		    android:inputType="textPassword"
 		    />       
    </TableRow> 

    
    <TableRow>
        <Button 
            android:id="@+id/button"
            android:layout_height="wrap_content"
            android:layout_span = "2"
            android:text="Login"
            />
        
    </TableRow>
    
    
    
    
</TableLayout>

android 自學(xué)筆記2-布局

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

文章題目:android自學(xué)筆記2-布局-創(chuàng)新互聯(lián)
轉(zhuǎn)載注明:http://www.rwnh.cn/article10/ddcjdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、域名注冊、營銷型網(wǎng)站建設(shè)軟件開發(fā)、品牌網(wǎng)站制作小程序開發(fā)

廣告

聲明:本網(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)

綿陽服務(wù)器托管
图木舒克市| 襄樊市| 综艺| 南丹县| 岳普湖县| 紫金县| 栾城县| 喀什市| 洪雅县| 两当县| 东平县| 贺州市| 革吉县| 凤山县| 弥渡县| 云和县| 长葛市| 肇东市| 获嘉县| 锡林郭勒盟| 连云港市| 宁陵县| 浮山县| 宜丰县| 互助| 皋兰县| 宁武县| 莲花县| 阳朔县| 玉门市| 东至县| 文成县| 南木林县| 五大连池市| 汽车| 阿拉善左旗| 山西省| 化隆| 杭锦后旗| 义乌市| 上林县|