Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, noobie developing a linear algebra app here, I am trying to using the the Textview.append() to return some calculations based on the users entry. But since I am using .append for my print method, it shows up with these Id numbers. As stated again, I am a newbie, so any help would be appreciated.

Image of output

print method and where output_ele is
XML
output_ele = (TextView)findViewById(R.id.outputLabel);

<pre lang="cs">

public final void stringprint(String[][] orig, int rowmax, int columnmax)
   {
       for (int i = 1; i <= rowmax; i++) {
           for (int j = 1; j <= columnmax; j++) {
               String entry = String.valueOf(orig[i][j]);

               String tab = "";

               for (int k = 1; k <= 7 - entry.length(); k++) {
                   tab = tab + &quot; &quot;;
               }

               output_ele.append(output_ele + entry + tab);
           }

           output_ele.append(output_ele + "\n");
       }
   }</pre>



Also while I have you here, what would be the easiest way to make the EditText textboxes disappear after the button is pressed??

Any help appreciated..
Posted
Updated 18-May-15 14:30pm
v2
Comments
Richard MacCutchan 19-May-15 5:32am    
Why are you calling String.valueOf on a string? What do you expect it to return?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900