<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left|center"
android:gravity="right" >
<ImageButton
android:id="@+id/Button1"
android:background="@null"
android:paddingLeft="5.0dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/zoom_button1"
android:text="button1"
android:visibility="gone" />
<ImageButton
android:id="@+id/Button2"
android:layout_width="29dp"
android:layout_height="wrap_content"
android:background="@null"
android:paddingLeft="5.0dip"
android:src="@drawable/zoom_button2"
android:text="button2" />
</LinearLayout>
//MainActivity.java:
private ImageButton button1;
button1 = (ImageButton)findViewById(R.id.button1);
button1.setVisibility(View.GONE);
orientation="vertical"
I move the buttons on Eclipse activity_main.xml.
When I change button 1 and button2, the program will work on the place at first.
Should I change buttons in Eclipse or I should change them in the program?