Calc (calculator) android 사칙연산기 (156KB)
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
해당 자료는 10페이지 까지만 미리보기를 제공합니다.
10페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

Calc (calculator) android 사칙연산기 (156KB)에 대한 보고서 자료입니다.

목차

[.settings]
[assets]
[bin]
[gen]
[res]
[src]
.classpath
.project
AndroidManifest.xml
proguard-project.txt
project.properties

156KB

본문내용

package com.cj.calc;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;

public class Calc extends Activity{

TextView tv; //출력 View
EditText edtNum1, edtNum2; //입력 View
Double num1, num2, result; //입력 및 출력 변수
String strNum1, strNum2; //String 변환용 변수
RadioButton radioChecked; //연산 선택 체크

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

edtNum1 = (EditText)findViewById(R.id.number1); //수1 호출
edtNum2 = (EditText)findViewById(R.id.number2); //수2 호출
tv = (TextView)findViewById(R.id.TextViewResult); //결과 저장 공간 호출
Button btn = (Button)findViewById(R.id.button1); //연산 버튼 호출

btn.setOnClickListener(new Button.OnClickListener(){ //연산 버튼 이벤트 리스너

//익명내부 클래스 : 연산버튼 이벤트 실행 내용
public void onClick(View v) {

키워드

  • 가격3,000
  • 페이지수32페이지
  • 등록일2012.06.07
  • 저작시기2012.6
  • 파일형식압축파일(zip)
  • 자료번호#752291
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니