Is there a way to hide text in a TextView?

前端 未结 7 2300
清歌不尽
清歌不尽 2021-02-08 13:09

Is there a way to hide some (but not all) of the text in a TextView? I tried setting the size to 0 with AbsoluteSizeSpan, but that doesn\'t have any visual effect that I see.

7条回答
  •  忘了有多久
    2021-02-08 14:01

    try by this code:

    I have complete by this code..

    or

        android:visibility="gone"
    />
    

    or by code:-

       TextView txtView = (TextView)findViewById(R.id.tvi);
       txtView.setVisibility(View.INVISIBLE);
    

    OR

      txtView.setVisibility(View.GONE);
    

    May be this will help you

提交回复
热议问题