TabLayout

This commit is contained in:
jens 2021-07-07 21:01:43 +02:00
parent 21d9351b2b
commit ba2f96713d
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,6 @@ import com.jens.automation2.receivers.NfcReceiver;
@SuppressLint("NewApi") @SuppressLint("NewApi")
public class ActivityMainTabLayout extends TabActivity public class ActivityMainTabLayout extends TabActivity
{ {
@Override @Override
protected void onCreate(Bundle savedInstanceState) protected void onCreate(Bundle savedInstanceState)
{ {

View File

@ -9,11 +9,14 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<TabWidget <TabWidget
android:id="@android:id/tabs" android:id="@android:id/tabs"
android:layout_weight="0"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
<FrameLayout <FrameLayout
android:id="@android:id/tabcontent" android:id="@android:id/tabcontent"
android:layout_weight="1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>
</TabHost> </TabHost>