Skip to content

Instantly share code, notes, and snippets.

View agiletalk's full-sized avatar

chanju Jeon agiletalk

View GitHub Profile
@agiletalk
agiletalk / tutorial.c
Created April 12, 2011 11:08
C.A.B 실습문제 (2011.4.12)
#include <stdio.h>
// 최소값 구하는 함수 정의
// 인자: 배열(int []), 배열크기(int)
// 반환: 최소값(int)
int getMinimum(int[], int);
// 최대값 구하는 함수 정의
// 인자: 배열(int []), 배열크기(int)
// 반환: 최대값(int)
@agiletalk
agiletalk / gravity1.xml
Created April 12, 2011 16:24
[예제] gravity
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="정렬 테스트"
@agiletalk
agiletalk / lgravity1.xml
Created April 12, 2011 16:41
[예제] layout_gravity
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="정렬 테스트"
@agiletalk
agiletalk / baseline.xml
Created April 12, 2011 16:50
[예제] baselineAligned
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:baselineAligned="true"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@agiletalk
agiletalk / weight1.xml
Created April 12, 2011 16:59
[예제] weight
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="위쪽 버튼"
@agiletalk
agiletalk / padding1.xml
Created April 12, 2011 17:13
[예제] padding
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Upper Text"
@agiletalk
agiletalk / relative1.xml
Created April 13, 2011 07:31
[예제] RelativeLayout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/chulsoo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@agiletalk
agiletalk / absolute.xml
Created April 13, 2011 07:40
[예제] AbsoluteLayout
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="50px"
@agiletalk
agiletalk / Frame.java
Created April 13, 2011 09:35
[예제] FrameLayout
package org.catchabug.FrameLayout;
import android.app.*;
import android.os.*;
import android.util.Log;
import android.view.*;
import android.widget.*;
public class Frame extends Activity {
public void onCreate(Bundle savedInstanceState) {
@agiletalk
agiletalk / table.xml
Created April 13, 2011 10:24
[예제] TableLayout
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TableRow>
<TextView android:text="국어" android:textSize="15pt" android:padding="10px" />
<TextView android:text="영어" android:textSize="15pt" android:padding="10px" />
<TextView android:text="수학" android:textSize="15pt" android:padding="10px" />