search

Home  >  Q&A  >  body text

android - textview occupies the default size after getting network data and filling it, and the content will not be wrapped until clicked.

When I get the data from the network, the data will not be wrapped after filling it into the textview!
This picture is not given to the textview. This is text.` <TextView

        android:id="@+id/goods_count_price"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginRight="@dimen/dp_20"
        android:layout_toLeftOf="@+id/btn_settlement"
        android:textColor="@color/colorBg"
        android:textSize="@dimen/sp_16" />`


This picture sets textview for textview, but the wrapping effect is not achieved before clicking.

The first one does not have text set, and there will be no response if you click it or not. The second one has text set, and the wrapping effect will only occur after clicking.

phpcn_u1582phpcn_u15822783 days ago822

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 13:28:57

    Can you describe it in detail?

    reply
    0
  • PHPz

    PHPz2017-05-16 13:28:57

    I don’t understand what it means. The price below is in the wrong position?

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:28:57

    Package? ? ? Can you describe your problem in detail?

    reply
    0
  • Cancelreply