안드로이드

 

 

 

 

 

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#cccccc" >

    <Button 
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button1"
        />
    
    <Button 
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button2"
        />
    
    <Button 
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button3"
        />

</LinearLayout>

 

 

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ff0000" >
    
    <LinearLayout 
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="100px"
        android:background="#00ff00">
        
		<Button
	        android:id="@+id/bitton1"
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        android:text="Button1" />
            
    </LinearLayout>

	<LinearLayout 
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="100px"
        android:background="#0000ff">
        
		<Button
	        android:id="@+id/bitton2"
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        android:text="Button2" />
		
    </LinearLayout>

</LinearLayout>

 

 

 

 

about author

PHRASE

Level 60  머나먼나라

사람은 수목들이 그 종자에 따라 다르듯 없이 제각기 다르므로 사람에 따라 오래 살기도 하고, 병이 나기도 안 나기도 하며, 잘 생기기도 못생기기도 하며, 약골이기도 장사이기도 하며, 가난하기도 부자이기도 하며, 어리석기도 현명하기도 하여 불평등해지기도 한다. -미란타왕문경

댓글 ( 4)

댓글 남기기

작성