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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -