I'm still a novice at Android Studio and I have one more task to do on my first Linear Algebra-related project before I am comfortable with coding the rest of it. The task is to get each value of EditText in a matrix of EditTexts and store them into an int[][] matrix.
Now I'm really stuck on this for hours and the main reason is because I don't know how to probably use GridView and GridLayout. I also don't know which one is better to use for this.
Below is a representation of what I'm trying to do:
Let's say that the user wants to calculate with 2x3 matrices
The app will then display a 2x3 matrix of empty EditTexts:
And the user entered whatever numbers they want in the empty EditTexts
When they tap on the "Next Matrix" button, I want to get the numbers from each EditText and put them into an int[][] matrix so that can transfer it to another Activity.
If I can do that, I'll be able to print out the values of each EditText as a TextView.
And again, which Grid is better to use in order to place the matrix of EditTexts? GridView or GridLayout? How do I get the values of each EditTexts from them?