跳到主要內容

【Android Development for Beginners】 Lesson 2A : Solving Math Problems

This Notes is according to the udacity free course :

Android Development for Beginners

Lesson 2A :  Solving Math Problems

So we know how to let our machine to display the number, and then we want to ask them to help us do some math work.



Just type a formula in the display function and then run you app.

Tips : If you want to use some difficult operation in you formula just google it : arithmetic operator java
Tips 2 : If you cannot run well your app just follow those steps don't be anxious~ :-)



The pathway for an app works:


Follow the pathway, when you click on the "order" button, it will call the xml to the java method. (1--->2)

The method will called to display(2) , and we have to define what is "display" and where we want to DISPLAY on the front layer(screen)

So we define the method and the method attach on the id "quantity_text_view" which is the word "2" on the screen.(3--->4--->5)


H.W.

留言

這個網誌中的熱門文章

【Quora 翻譯&整理】對於程式初學者嘗試解決問題的好網站推薦

原文出處: What are some suggested websites to solve programming problems for beginners? (2016/5/15) 此篇文章強調的是去參加project的那種網站推薦

第一章 電腦、網際網路與全球資訊網簡介

C++  How to Program 7/E 筆記 第一章 電腦、網際網路與全球資訊網簡介 學習目標 基本軟硬體觀念 物件技術觀念(類別、物件、屬性、行為、封裝、繼承) 程式語言的種類 典型的C++開發環境 業界標準物件導向素模語言——UML 沿革 網際網路、球球資訊網與Web 2.0現象的沿革 在Linux 的GNU C++ 與在Microsoft Visual C++環境中測試C++ 應用程式 *結構化程式設計(structured programming) *物件導向程式設計

【Android Development for Beginners】Lesson 2A : Update a Variable in the App

This Notes is according to the udacity free course : Android Development for Beginners The Notes below are my own notes in class. Lesson 2A :  Update a Variable in the App When you put new variable in the MainActivity.java you will get a new results when you press the button"+"