안드로이드 레이아웃 예제

Programming/Android 2013. 3. 16. 16:40 Posted by TanSanC
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

<LinearLayout 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:orientation="vertical"
    tools:context=".MainActivity" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <Button
            android:id="@+id/page1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Page1" />

        <Button
            android:id="@+id/page2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
             android:text="Page2" />

        <Button
            android:id="@+id/page3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

 android:text="Page3" />
   </LinearLayout>

    <FrameLayout
        android:id="@+id/frame_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
        <LinearLayout
            android:id="@+id/frame_01"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#ff0000" >
        </LinearLayout>
        <LinearLayout
            android:id="@+id/frame_02"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#00ff00" >
        </LinearLayout>
        <LinearLayout
            android:id="@+id/frame_03"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#0000ff" >
        </LinearLayout>
    </FrameLayout>

</LinearLayout>

 

'Programming > Android' 카테고리의 다른 글

TabActivity 사용법  (0) 2013.03.23
다중 액티비티 예제  (0) 2013.03.23
안드로이드 실습  (0) 2013.03.09
Intent 활용하기  (0) 2013.03.08
ubuntu 에 jdk 간편하게 설치하기  (0) 2013.02.27
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

 

1번 학생의 키 <5번 학생의 키
3번 학생의 키 <4번 학생의 키
5번 학생의 키 <4번 학생의 키
4번 학생의 키 <2번 학생의 키
4번 학생의 키 <6번 학생의 키
5번 학생의 키 <2번 학생의 키

 

배열 두개 생성

 

자기보다 큰 사람의 Count 

자기보다 작은 사람의 Count

 

작은사람, 큰사람 Count 가 자신을 제외한 나머지 수가 될때 자신의 키가 몇 번재인지 알 수 있다.

 

step1)

 

1번 학생의 키 <5번 학생의 키

 

1    2    3    4    5    6

크다   1

작다                          1

 

step2)

 

3번 학생의 키 <4번 학생의 키

 

 

1    2    3    4    5    6

크다   1          1     

작다                    1    1

 

 

........

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

그리드 알고리즘

 

1.  

3.1 일 이전에 피는 꽃 중 제일 오래 피는 꽃 선택

2.

위의 꽃이 지는 날 이전에 피는 꽃 중 제일 오래 피는 꽃 선택

 

지는 날이 11. 30이 될때까지 2번의 반복

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

 

2011 지역본선 초등부.hwp

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

 

2012 지역본선 초등부.hwp