본문 바로가기

나 어제 배웠다

(108)
Android Widget[Component]-Spinner ▣ Android Widget[Component]-Spinner 1. ArrayTest Project 생성 2. main.xml spinner widget 추가 <?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" > <Spinner android:id="@+id/s01" android:layout_width="fill_parent" ..
개발관련 참고 사이트 1. Layout 구성 도구 http://www.droiddraw.org 2. Color 추출 http://www.colorpicker.com/
Android Widget[Component]-ImageView ▣ Android Widget[Component] - ImageView 1. Project 생성 2. main.xml widget 추가 <?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:id="@+id/iv01" android:layout_width="fill_parent" android:layo..
Android Widget[Component]-Button & Event Handler ▣ Android Widget[Component] - Button 1. Project 생성 2. main.xml widget 추가 <?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:id="@+id/b01" android:layout_width="100px" android:layout_height="40..
Android 모양구성-FrameLayout ▣ 모양 구성 1. FrameLayout : 여러컴포넌트 겹치기 소스변경 LayoutTest > src > soo.ui.layout package soo.ui.layout; import android.app.Activity; import android.os.Bundle; public class LayoutTestActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setC..
Android 모양구성-RelativeLayout ▣ 모양 구성 1. RelativeLayout 소스변경 LayoutTest > src > soo.ui.layout package soo.ui.layout; import android.app.Activity; import android.os.Bundle; public class LayoutTestActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); /..
Android 모양구성-LinearLayout ▣ 모양 구성 1. layout[배치] - extends ViewGroup (m) File > New > Other > Android > Android Project 소스변경 LayoutTest > src > soo.ui.layout package soo.ui.layout; import android.app.Activity; import android.os.Bundle; public class LayoutTestActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInst..
Android HelloAndroid 1. New (m) File > New > Other > Android > Android Project (i) 2. ClassLibrary - HelloAndroid 선택 후 마우스 오른쪽 버튼 > Preperties - Java Build Path > Order and Export Tab - Android 2.1 Check - OK 3. 구조 + src[source] : .java , .aidl + gen[generate] : R.java + Android 2.1 : core-android.java + assets[자산] : font(ttf), txt, html ... + res[resource] : image, x..