1

Android - How to keep the view position not change after calling setVisible(View.GONE)?

view story
linux-howto

http://stackoverflow.com – I have a RootLayout[it can be setted any layout],such as: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainRootLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageButton android:id="@+id/ibtnHidden" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:src="@android:drawable/ic_menu_add" /&gt (HowTos)