Coding an iOS style calculator with Android Studio

11
Coding an iOS style calculator with Android Studio Choi Seong Sik

Transcript of Coding an iOS style calculator with Android Studio

Coding an iOS style calcu-lator

with Android Studio

Choi Seong Sik

목차1. 계산기 UI2. 계산기 실행

O PortraitO LandscapeO SoundPool

계산기 UI

Portrait Landscape

• Linear Layout(vertical) 을 이용한TextView 와 button Layout

• Table Layout 을 이용한 button 배열

계산기 UI(title bar 없애기 )

default : android:theme="@style/AppTheme">

계산기 실행 (Portrait)

글자크기 자동조절 (AutoResizeTextView)

계산기 실행 (Landscape)

onSaveInstanceState를이용한 화면전환

• 괄호 ( 초록 )• 메모리 ( 노랑 )• 2nd 함수 ( 빨강 )• 지수표기법

계산기 실행 (Landscape)

radian

degree

계산기 실행 (Landscape)

Infinity

Error

계산기 실행 (SoundPool)

참조 및 계산기 소스

O TableLayouthttp://developer.android.com/reference/android/widget/TableLayout.html

O Landscape XMLhttp://developer.android.com/training/basics/supporting-devices/screens.html

O onSaveInstanceStatehttp://sonseungha.tistory.com/268

O AutoResizeTextViewhttps://github.com/AndroidDeveloperLB/AutoFitTextView

O SoundPoolhttp://developer.android.com/reference/android/media/SoundPool.html

O 버튼 효과음http://soundbible.com/suggest.php?q=click&x=0&y=0

O 어플 아이콘https://www.iconfinder.com

O 계산기 소스 공유 (Github)https://github.com/tadoya/calculator