Skip to content

Instantly share code, notes, and snippets.

View agiletalk's full-sized avatar

chanju Jeon agiletalk

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / ButtonEdit.java
Created April 11, 2011 10:54
[예제] Button, EditText
package org.catchabug.ButtonEdit;
import android.app.Activity;
import android.os.Bundle;
import android.view.*;
import android.widget.*;
public class ButtonEdit extends Activity {
/** Called when the activity is first created. */
@Override
@agiletalk
agiletalk / main.xml
Created April 11, 2011 10:35
[예제] ImageView
<?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"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/pride"