How to get back the layout after setting the visibility to GONE in android -


xml-

<relativelayout xmlns:tools="http://schemas.android.com/tools"     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/one"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"> <relativelayout xmlns:tools="http://schemas.android.com/tools"     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/two"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" > </relativelayout> </relativelayout> 

the layout 2 hidden after pressing button view.gone, want layout 2 when swipe down on screen, how can it, swipe down detection , getting layout back.

yourrelativelayout.setvisibility(view.visible); 

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -