如何在Android xml文件和java文件中显示/隐藏TextView?[已关闭]
我的一个布局中有TextView。我想保持隐藏,只想在单击按钮时使其可见,我该怎么做?我的观点如下。谢谢。
<TextView
android:layout_marginBottom="16dp"
android:layout_marginRight="8dp"
android:id="@+id/textAuthorSign"
android:layout_gravity="right"
android:text="- ABJ Abdul Kalam"
android:textStyle="italic"
android:textSize="16sp"
android:typeface="serif"
android:visibility="invisible"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
谢谢