Android 프로그래밍

본문 바로가기
사이트 내 전체검색


Android 프로그래밍
Android 프로그래밍

3. 레이아웃

페이지 정보

작성자 관리자 댓글 2건 조회 10,175회 작성일 19-02-01 09:57

본문

3. 레이아웃

1.PNG

2.PNG

3.PNG

4.PNG

5.PNG

6.PNG

7.PNG

8.PNG

9.PNG

10.PNG

11.PNG

12.PNG

13.PNG

14.PNG

15.PNG

16.PNG

17.PNG

18.PNG

19.PNG

20.PNG

21.PNG

22.PNG

23.PNG

24.PNG

25.PNG

26.PNG

27.PNG

28.PNG

29.PNG

30.PNG

31.PNG

32.PNG

33.PNG

34.PNG

35.PNG

36.PNG

37.PNG

38.PNG

39.PNG

40.PNG

41.PNG

42.PNG

43.PNG

44.PNG

45.PNG

46.PNG

47.PNG

48.PNG

49.PNG

50.PNG

댓글목록

관리자님의 댓글

관리자 작성일

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
    android:stretchColumns="*">
    <TextView  android:text="0"
        android:layout_width="match_parent"
        android:layout_height="60px"
        android:background="#FFFF00"
        android:layout_margin="5px"
    />
    <TableRow>
        <Button  android:text="1"/>
        <Button  android:text="2"/>
        <Button  android:text="3"/>
        <Button  android:text="+"/>
    </TableRow>
    <TableRow>
        <Button  android:text="4"/>
        <Button  android:text="5"/>
        <Button  android:text="6"/>
        <Button  android:text="-"/>
    </TableRow>
    <TableRow>
        <Button  android:text="7"/>
        <Button  android:text="8"/>
        <Button  android:text="9"/>
        <Button  android:text="*"/>
    </TableRow>
    <TableRow>
        <Button  android:text="0"/>
        <Button  android:text="C"/>
        <Button  android:text="="/>
        <Button  android:text="/"/>
    </TableRow>
</TableLayout>

관리자님의 댓글

관리자 작성일

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="7dip">
    <EditText android:id="@+id/number"
        android:background="@android:drawable/editbox_background"
        android:cursorVisible="false"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"  />
    <Button android:id="@+id/ok"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="ok"
        android:layout_alignParentBottom="true" />
    <TableLayout android:id="@+id/row1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/number"
        android:layout_above="@id/ok"
        android:layout_weight="1">
        <TableRow
            android:layout_weight="1">
            <Button android:id="@+id/n1"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="1"
                android:layout_weight="1" />
            <Button android:id="@+id/n2"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="2"
                android:layout_weight="1" />
            <Button android:id="@+id/n3"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="3"
                android:layout_weight="1" />
        </TableRow>
        <TableRow
            android:layout_weight="1">
            <Button android:id="@+id/n4"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="4"
                android:layout_weight="1" />
            <Button android:id="@+id/n5"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="5"
                android:layout_weight="1" />
            <Button android:id="@+id/n6"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="6"
                android:layout_weight="1" />
        </TableRow>
        <TableRow
            android:layout_weight="1">
            <Button android:id="@+id/n7"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="7"
                android:layout_weight="1" />
            <Button android:id="@+id/n8"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="8"
                android:layout_weight="1" />
            <Button android:id="@+id/n9"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="9"
                android:layout_weight="1" />
        </TableRow>
        <TableRow
            android:layout_weight="1">
            <TextView
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:layout_weight="1" />
            <Button android:id="@+id/n0"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="0"
                android:layout_weight="1" />
            <Button android:id="@+id/clear"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="Clear"
                android:layout_weight="1" />
        </TableRow>
    </TableLayout>
</RelativeLayout>


개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. 063-469-4551 FAX. 063-469-4560 전북 군산시 대학로 558
군산대학교 컴퓨터정보공학과

Copyright © www.leelab.co.kr. All rights reserved.