1.3333333333のような値を表示させるときに普通にTextViewに表示させるとちゃんと表示されるのですが、HrizontalScrollViewの中に入ったTextViewに表示させようとすると3333333と表示されてしまい左側が切れてる状態になってしまいます。
<LinearLayout android:layout_marginTop="20dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" tools:layout_editor_absoluteX="8dp" tools:layout_editor_absoluteY="0dp"> <TextView android:gravity="center" android:textSize="40sp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="2" android:text="@string/one" android:textColor="@color/slategray" /> <TextView android:gravity="center" android:textSize="40sp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/slash" android:textColor="@color/slategray" /> <HorizontalScrollView android:layout_weight="2" android:layout_width="0dp" android:layout_height="wrap_content"> <TextView android:id="@+id/result" android:layout_gravity="center" android:textSize="40sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/one" android:textColor="@color/slategray" /> </HorizontalScrollView> </LinearLayout> コード
このような感じなのですが何が原因なのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/04/17 10:51
2017/04/17 12:23
退会済みユーザー
2017/04/18 11:53