Teaching Material for Middle and High Schools

teddybear

Well-Known Member
Licensed User
Great, Thanks for your sharing.!
I am a beginner in B4X, and reading the courses, I have a question for ask, In lession 6 Ex1, Type TextField is unkown , I wonder what library I missed? Thank you!
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
I am a beginner in B4X, and reading the courses, I have a question for ask, In lession 6 Ex1, Type TextField is unkown , I wonder what library I missed? Thank you!

Run the B4J Example rather.

If you want to use B4A, then you have to copy the layout from B4J to B4A and replace all the Textfield to Edittext.

The best cross-platform solution is to use B4XFloattext found in the Xui Views library.
 

pliroforikos

Active Member
Licensed User
I am a beginner in B4X, and reading the courses, I have a question for ask, In lession 6 Ex1, Type TextField is unkown , I wonder what library I missed? Thank you!
As mcqueccu said, this is about B4J. Examples are almost identical to B4A except some slightly differences in some views names. For example Pane in B4J is Panel in B4A or TextField in B4J is EditText in B4A. On the other hand B4XFloattext is more flexible but not in the purpose of tutorial.
 

teddybear

Well-Known Member
Licensed User
As mcqueccu said, this is about B4J. Examples are almost identical to B4A except some slightly differences in some views names. For example Pane in B4J is Panel in B4A or TextField in B4J is EditText in B4A. On the other hand B4XFloattext is more flexible but not in the purpose of tutorial.
Thank you and mcqueccu for the reply.The example Ex1.b4a is put into the sub-directory Lesson 6 Ex1\B4A

 

stormvisions

New Member
Licensed User
Hello everybody!

I am uploading a series of courses for a B4X (B4J) teaching program for middle and high school students.
The total project consists of 20 different modules with a total duration of approximately 60 hours.

The program is divided into courses where each is accompanied by:
  • Brief Theory (in pdf and docx) in English and Greek Language (Spanish translation also available here )
  • Power Point Presentations (pptx)
  • Examples (solved)
  • Exercises (also solved for the teacher).
Since the program is aimed at students with little or no programming knowledge, an attempt was made to hide enough details in order to make it more understandable. So forgive some omissions.

The material uploaded to my github here.
You can download full v2.0 pdf for printing here.
Changes Log file here

If you liked my work a cup off coffee is always welcome. Thank you.

New word files includes and Greek Translation. Some changes to curriculum also made.

There is also a Spanish translation. Many thanks to user profeberja. You can find it on his github
here


LessonDetails
Hours
1The B4X language
  • Why B4X
  • Downloading and Installing B4J and Java
  • Customize environment
1​
2The meaning of the problem
  • What is a problem
  • Ways to represent a problem
1​
3My first Program
  • Create a new program
  • How to run a program
  • How to Save
  • The turtle
2​
4Variables and Range
  • Int
  • Float
  • How to name a variable
  • Mathematical Operators
  • Assign Values to Variables
  • The log function
  • Strings
3​
5Designer
  • Talking about Designer
  • Design the first Screen
  • Views: Labels, TextFields, Buttons, Panes
  • Saving forms
2​
6From Designer to Code
  • Class_Globals
  • Variables and Subs
  • Passing Values to Code
  • Events
  • Attribute
2​
7Conditional Statement
  • Boolean Variables
  • Relational Operators
  • Logical Operators
  • If Statement
  • If-Else Statement
  • If-Else IF - Else Statement
  • MAX Algorithms
4​
8Subroutines
  • What is a subroutine
  • Declaring a Sub
  • Passing Values
  • Returning Values from a sub
3​
9Classes – Objects
  • What is a Class?
  • What is an Object?
  • What are Attributes and Methods?
  • Create and use simple class with B4J.
3​
10B4XPages
  • What is a B4XPage
  • How to Create and Delete a B4XPage
  • Passing Values within Pages
3​
11Application 1
  • β€œA simple Calculator”
  • With the help of teacher pupils creates a Calculator application with the 4 simple operations.
3​
12Loops
  • What are Loops?
  • Do While
  • Do Until
  • For – Next
5​
13B4XViews
  • What is a B4XView
  • Hot to create B4XViews
  • B4XViews events
2​
14Arrays
  • One dimensional Arrays
  • Basic Operations with arrays
  • Linear search
  • Binary search
  • MAX – MIN item
  • Sorting with Bubble Sort
  • Sorting with Selection Sort
4​
15Lists
  • What is a list?
  • Basic Operations with lists
2​
16Maps
  • What is a map?
  • Basic Operations with maps
2​
17Files
  • File location in B4J
  • File Methods
4​
18Complex Data Types, KVS Files and Views
  • Create new Type
  • B4XViews
  • Combo Boxes, Lists
2​
19Final ProjectIn this app pupils will test their knowledge creating an application based in previous lessons.
10​
20From B4J to B4AHow to move an application to B4A
2​
Total Hours
60​
Just taking a look at B4X. I appreciate all the time and effort that went in to this.
 
Top