Answer the question
In order to leave comments, you need to log in
How to attach the next element to the end of the image?
The bottom line is that I needed to attach the next element (TabHost) to the picture (ImageView). More precisely, to the bottom of my picture, attach the top of the tab host. The picture parameters are:
<ImageView
android:layout_width="match_parent"
android:layout_height="264dp"
android:id="@+id/imageView"
android:layout_gravity="center_horizontal|top"
android:src="@drawable/top"
android:scaleType="fitXY" />
<TabHost
android:layout_width="fill_parent"
android:layout_height="220dp"
android:id="@+id/tabHost"
android:layout_gravity="center_horizontal|bottom">
ImageView top = (ImageView) findViewById(R.id.imageView);
int height = top.getHeight();
TabHost host = (TabHost) findViewById(R.id.tabHost);
host.setup();
host.setMinimumHeight(height);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question