문제

I've a remote view which I it's layout is as follows :

<LinearLayout>
    <TextView id="1a"...>
    <TextView id="2a"...>
</LinearLayout>
<LinearLayout>
    <TextView id="1b"...>
    <TextView id="2b"...>
</LinearLayout>
<LinearLayout>
    <TextView id="1c"...>
    <TextView id="2c"...>
</LinearLayout>

Is there a way I can programmatically remove one of the TextViews without removing the View it self ?

Thank you

도움이 되었습니까?

해결책

The best I could find is setting the Widget to visibility = GONE :

remoteView.setViewVisibility(widgetID, View.GONE);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top