Answer the question
In order to leave comments, you need to log in
The minus sign is displayed at the end of the number, but it should be before it, why?
The problem is that the sign is displayed after the number, but it should be at the beginning. I can’t understand why, since the line is formed correctly, only the output in the EditText of a negative number goes wrong, I would like to know at least why.
Here is my XML file code for the fragment that is displayed by EditText and GridView, in the screenshot above, you can see that a line containing the output in EditText is displayed in the Log, and everything is fine there.
<?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"
>
<EditText
android:id="@+id/fragment_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textDirection="rtl"/>
<GridView
android:id="@+id/fragment_gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="4"
android:stretchMode="columnWidth"></GridView>
</LinearLayout>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question