Enviar búsqueda
Cargar
夜子まま塾講義3(androidで電卓アプリを作る)
•
1 recomendación
•
7,380 vistas
Masafumi Terazono
Seguir
電卓アプリを題材にAndroidプロジェクトの作成からクラスの編集まで
Leer menos
Leer más
Tecnología
Empresariales
Denunciar
Compartir
Denunciar
Compartir
1 de 33
Descargar ahora
Descargar para leer sin conexión
Recomendados
Actor Concurrency
Actor Concurrency
Alex Miller
Mobile Fest 2018. Александр Корин. Болеутоляющее
Mobile Fest 2018. Александр Корин. Болеутоляющее
MobileFest2018
Deterministic simulation testing
Deterministic simulation testing
FoundationDB
Promise: async programming hero
Promise: async programming hero
The Software House
Lo Mejor Del Pdc2008 El Futrode C#
Lo Mejor Del Pdc2008 El Futrode C#
Juan Pablo
자바스크립트 비동기 코드(Javascript asyncronous code)
자바스크립트 비동기 코드(Javascript asyncronous code)
Kongson Park
Max Koretskyi "Why are Angular and React so fast?"
Max Koretskyi "Why are Angular and React so fast?"
Fwdays
How Data Flow analysis works in a static code analyzer
How Data Flow analysis works in a static code analyzer
Andrey Karpov
Recomendados
Actor Concurrency
Actor Concurrency
Alex Miller
Mobile Fest 2018. Александр Корин. Болеутоляющее
Mobile Fest 2018. Александр Корин. Болеутоляющее
MobileFest2018
Deterministic simulation testing
Deterministic simulation testing
FoundationDB
Promise: async programming hero
Promise: async programming hero
The Software House
Lo Mejor Del Pdc2008 El Futrode C#
Lo Mejor Del Pdc2008 El Futrode C#
Juan Pablo
자바스크립트 비동기 코드(Javascript asyncronous code)
자바스크립트 비동기 코드(Javascript asyncronous code)
Kongson Park
Max Koretskyi "Why are Angular and React so fast?"
Max Koretskyi "Why are Angular and React so fast?"
Fwdays
How Data Flow analysis works in a static code analyzer
How Data Flow analysis works in a static code analyzer
Andrey Karpov
Is your C# optimized
Is your C# optimized
Woody Pewitt
Encoder + decoder
Encoder + decoder
COMSATS Abbottabad
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Microsoft Argentina y Uruguay [Official Space]
Let the type system be your friend
Let the type system be your friend
The Software House
Promises generatorscallbacks
Promises generatorscallbacks
Mike Frey
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Dimitrios Platis
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Chris Huang
Functional solid
Functional solid
Matt Stine
Es.next
Es.next
kevinsson
Functional JavaScript for everyone
Functional JavaScript for everyone
Bartek Witczak
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
Chapter 7 functions (c)
Chapter 7 functions (c)
hhliu
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
The Software House
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
STAMP Project
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Alfonso Peletier
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mahmoud Samir Fayed
Mutate and Test your Tests
Mutate and Test your Tests
STAMP Project
京都Gtugコンパチapi
京都Gtugコンパチapi
Masafumi Terazono
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Masafumi Terazono
Más contenido relacionado
La actualidad más candente
Is your C# optimized
Is your C# optimized
Woody Pewitt
Encoder + decoder
Encoder + decoder
COMSATS Abbottabad
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Microsoft Argentina y Uruguay [Official Space]
Let the type system be your friend
Let the type system be your friend
The Software House
Promises generatorscallbacks
Promises generatorscallbacks
Mike Frey
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Dimitrios Platis
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Chris Huang
Functional solid
Functional solid
Matt Stine
Es.next
Es.next
kevinsson
Functional JavaScript for everyone
Functional JavaScript for everyone
Bartek Witczak
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
Chapter 7 functions (c)
Chapter 7 functions (c)
hhliu
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
The Software House
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
STAMP Project
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Alfonso Peletier
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mahmoud Samir Fayed
Mutate and Test your Tests
Mutate and Test your Tests
STAMP Project
La actualidad más candente
(20)
Is your C# optimized
Is your C# optimized
Encoder + decoder
Encoder + decoder
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Let the type system be your friend
Let the type system be your friend
Promises generatorscallbacks
Promises generatorscallbacks
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Functional solid
Functional solid
Es.next
Es.next
Functional JavaScript for everyone
Functional JavaScript for everyone
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
Chapter 7 functions (c)
Chapter 7 functions (c)
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mutate and Test your Tests
Mutate and Test your Tests
Similar a 夜子まま塾講義3(androidで電卓アプリを作る)
京都Gtugコンパチapi
京都Gtugコンパチapi
Masafumi Terazono
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Masafumi Terazono
Good code
Good code
Jane Prusakova
Andy lib解説
Andy lib解説
Masafumi Terazono
Vavr Java User Group Rheinland
Vavr Java User Group Rheinland
David Schmitz
Priming Java for Speed at Market Open
Priming Java for Speed at Market Open
Azul Systems Inc.
Imagine a world without mocks
Imagine a world without mocks
kenbot
L05if
L05if
Kgr Sushmitha
Exceptions irst
Exceptions irst
jkumaranc
JavaTalks: OOD principles
JavaTalks: OOD principles
stanislav bashkirtsev
C#, What Is Next?
C#, What Is Next?
Pieter Joost van de Sande
Whats new in_csharp4
Whats new in_csharp4
Abed Bukhari
Transaction is a monad
Transaction is a monad
Jarek Ratajski
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP
Writing Good Tests
Writing Good Tests
Matteo Baglini
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Alexander Granin
Hypercritical C++ Code Review
Hypercritical C++ Code Review
Andrey Karpov
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Akira Maruoka
Chapter 2 Java Methods
Chapter 2 Java Methods
Khirulnizam Abd Rahman
Chapter 2 Method in Java OOP
Chapter 2 Method in Java OOP
Khirulnizam Abd Rahman
Similar a 夜子まま塾講義3(androidで電卓アプリを作る)
(20)
京都Gtugコンパチapi
京都Gtugコンパチapi
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Good code
Good code
Andy lib解説
Andy lib解説
Vavr Java User Group Rheinland
Vavr Java User Group Rheinland
Priming Java for Speed at Market Open
Priming Java for Speed at Market Open
Imagine a world without mocks
Imagine a world without mocks
L05if
L05if
Exceptions irst
Exceptions irst
JavaTalks: OOD principles
JavaTalks: OOD principles
C#, What Is Next?
C#, What Is Next?
Whats new in_csharp4
Whats new in_csharp4
Transaction is a monad
Transaction is a monad
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Writing Good Tests
Writing Good Tests
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Hypercritical C++ Code Review
Hypercritical C++ Code Review
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Chapter 2 Java Methods
Chapter 2 Java Methods
Chapter 2 Method in Java OOP
Chapter 2 Method in Java OOP
Más de Masafumi Terazono
初心者向けSpigot開発
初心者向けSpigot開発
Masafumi Terazono
Minecraft dayの報告
Minecraft dayの報告
Masafumi Terazono
BungeeCordeについて
BungeeCordeについて
Masafumi Terazono
Spongeについて
Spongeについて
Masafumi Terazono
Kobe.py 勉強会 minecraft piスライド
Kobe.py 勉強会 minecraft piスライド
Masafumi Terazono
Minecraftと連携するSlackちゃんという会話Botを作った話
Minecraftと連携するSlackちゃんという会話Botを作った話
Masafumi Terazono
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
Masafumi Terazono
夜子まま塾 2015年1月23日 進行用資料
夜子まま塾 2015年1月23日 進行用資料
Masafumi Terazono
Thetalaps
Thetalaps
Masafumi Terazono
Android wear勉強会2
Android wear勉強会2
Masafumi Terazono
夜子まま塾@鹿児島
夜子まま塾@鹿児島
Masafumi Terazono
セーラーソン振り返り
セーラーソン振り返り
Masafumi Terazono
関西Nfc lab勉強会 宣伝
関西Nfc lab勉強会 宣伝
Masafumi Terazono
関西支部 第二回 NFCLab勉強会
関西支部 第二回 NFCLab勉強会
Masafumi Terazono
日本Androidの会 中国支部資料
日本Androidの会 中国支部資料
Masafumi Terazono
Android+NFC 日本Androidの会神戸支部 勉強会
Android+NFC 日本Androidの会神戸支部 勉強会
Masafumi Terazono
関西支部Android勉強会(ロボットxnfc)
関西支部Android勉強会(ロボットxnfc)
Masafumi Terazono
関西Unity勉強会
関西Unity勉強会
Masafumi Terazono
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義12(broadcast reciever)
Masafumi Terazono
夜子まま塾講義11(暗黙的intent)
夜子まま塾講義11(暗黙的intent)
Masafumi Terazono
Más de Masafumi Terazono
(20)
初心者向けSpigot開発
初心者向けSpigot開発
Minecraft dayの報告
Minecraft dayの報告
BungeeCordeについて
BungeeCordeについて
Spongeについて
Spongeについて
Kobe.py 勉強会 minecraft piスライド
Kobe.py 勉強会 minecraft piスライド
Minecraftと連携するSlackちゃんという会話Botを作った話
Minecraftと連携するSlackちゃんという会話Botを作った話
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
夜子まま塾 2015年1月23日 進行用資料
夜子まま塾 2015年1月23日 進行用資料
Thetalaps
Thetalaps
Android wear勉強会2
Android wear勉強会2
夜子まま塾@鹿児島
夜子まま塾@鹿児島
セーラーソン振り返り
セーラーソン振り返り
関西Nfc lab勉強会 宣伝
関西Nfc lab勉強会 宣伝
関西支部 第二回 NFCLab勉強会
関西支部 第二回 NFCLab勉強会
日本Androidの会 中国支部資料
日本Androidの会 中国支部資料
Android+NFC 日本Androidの会神戸支部 勉強会
Android+NFC 日本Androidの会神戸支部 勉強会
関西支部Android勉強会(ロボットxnfc)
関西支部Android勉強会(ロボットxnfc)
関西Unity勉強会
関西Unity勉強会
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義11(暗黙的intent)
夜子まま塾講義11(暗黙的intent)
Último
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
mohitsingh558521
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
ScyllaDB
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Pixlogix Infotech
Último
(20)
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
夜子まま塾講義3(androidで電卓アプリを作る)
1.
Now Loading. Please
Wait ... Re:Kayo-System Co.,Ltd. 2012 2 22
2.
Re:Kayo-System Co.,Ltd. 2012
2 22
3.
Re:Kayo-System Co.,Ltd. 2012
2 22
4.
Re:Kayo-System Co.,Ltd. 2012
2 22
5.
Re:Kayo-System Co.,Ltd. 2012
2 22
6.
Re:Kayo-System Co.,Ltd. 2012
2 22
7.
Re:Kayo-System Co.,Ltd. 2012
2 22
8.
Re:Kayo-System Co.,Ltd. 2012
2 22
9.
Re:Kayo-System Co.,Ltd. 2012
2 22
10.
Re:Kayo-System Co.,Ltd. 2012
2 22
11.
Re:Kayo-System Co.,Ltd. 2012
2 22
12.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> Re:Kayo-System Co.,Ltd. 2012 2 22
13.
Re:Kayo-System Co.,Ltd. 2012
2 22
14.
Re:Kayo-System Co.,Ltd. 2012
2 22
15.
Re:Kayo-System Co.,Ltd. 2012
2 22
16.
Re:Kayo-System Co.,Ltd. 2012
2 22
17.
Re:Kayo-System Co.,Ltd. 2012
2 22
18.
Re:Kayo-System Co.,Ltd. 2012
2 22
19.
package ykmjuku.android.sample.app;
public class Calculater { StringBuilder mInputNumber = new StringBuilder(); String mOperator; int mResult = 0; private boolean isNumber(String key) { try { Integer.parseInt(key); return true; } catch (NumberFormatException e) { } return false; } Re:Kayo-System Co.,Ltd. 2012 2 22
20.
private boolean isSupportedOperator(String
key) { if (key.equals("+")) { return true; } else if (key.equals("-")) { return true; } else if (key.equals("*")) { return true; } else if (key.equals("/")) { return true; } return false; } Re:Kayo-System Co.,Ltd. 2012 2 22
21.
private void doCalculation(String
ope) { if (ope.equals("+")) { mResult = mResult + Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("-")) { mResult = mResult - Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("*")) { mResult = mResult * Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("/")) { mResult = mResult / Integer.parseInt(mInputNumber.toString()); } mInputNumber = new StringBuilder(); } Re:Kayo-System Co.,Ltd. 2012 2 22
22.
public String putInput(String
key) { if (isNumber(key)) { mInputNumber.append(key); return mInputNumber.toString(); } else if (isSupportedOperator(key)) { if (mOperator != null) { doCalculation(mOperator); mOperator = null; } else if (mInputNumber.length() > 0) { mResult = Integer.parseInt(mInputNumber.toString()); mInputNumber = new StringBuilder(); } mOperator = key; return mOperator; } else if (key.equals("=")) { if (mOperator != null) { doCalculation(mOperator); mOperator = null; } return Integer.toString(mResult); } else { // return null; } } } Re:Kayo-System Co.,Ltd. 2012 2 22
23.
(bit)
boolean 1 true/false FALSE char 16 0 FFFF 0 byte 8 -128 127 0 short 16 -32768 32767 0 int 32 0 long 64 0 float 32 0.0 double 64 0.0 Re:Kayo-System Co.,Ltd. 2012 2 22
24.
Re:Kayo-System Co.,Ltd. 2012
2 22
25.
Re:Kayo-System Co.,Ltd. 2012
2 22
26.
try {
Integer.parseInt(key); return true; } catch (NumberFormatException e) { } return false; Re:Kayo-System Co.,Ltd. 2012 2 22
27.
Ykmjuku002Activity
”OK” Re:Kayo-System Co.,Ltd. 2012 2 22
28.
package ykmjuku.android.sample.app;
import android.app.Activity; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Ykmjuku002Activity extends Activity implements TextWatcher, OnClickListener { EditText mEditText1; TextView mTextView1; Button mButton1; Calculater mCalculater = new Calculater(); Re:Kayo-System Co.,Ltd. 2012 2 22
29.
/** Called when
the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mTextView1 = (TextView)findViewById(R.id.textView1); mEditText1 = (EditText)findViewById(R.id.editText1); mButton1 = (Button)findViewById(R.id.button1); mEditText1.addTextChangedListener(this); mButton1.setOnClickListener(this); } Re:Kayo-System Co.,Ltd. 2012 2 22
30.
public void afterTextChanged(Editable
s) { String input = s.toString(); Log.d("Ykmjuku002Activity", "input="+input); if(input.length()>0){ String dispText = mCalculater.putInput(input); if(dispText!=null){ mTextView1.setText(dispText); } s.clear(); } } public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } Re:Kayo-System Co.,Ltd. 2012 2 22
31.
public void onClick(View
v) { String dispText = mCalculater.putInput("="); if(dispText!=null){ mTextView1.setText(dispText); } mEditText1.setText(null); } } Re:Kayo-System Co.,Ltd. 2012 2 22
32.
Re:Kayo-System Co.,Ltd. 2012
2 22
33.
Re:Kayo-System Co.,Ltd. 2012
2 22
Descargar ahora