Hallo Leute, ich habe eine benutzerdefinierte Titelleiste für meine App gemacht. Ich würde gerne wissen, ob das nicht zu viel Code nur für eine Titelleiste ist. Der Grund, warum ich frage, ist, dass ich eine Gruppenaktivität möchte, aber ich mag Tab-Host nicht, weil ich es ausprobiert habe und es mir nicht gefallen hat. so Ich mag eine Titelleiste statt Tabula Hostbenutzerdefinierte Titelleiste mit mehreren Aktivitäten verbunden
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/pt5"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/frameLayout1"
android:layout_width="match_parent"
android:layout_height="50dp" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/tilte2">
<Button
android:id="@+id/button1"
android:layout_width="108dp"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@null" android:drawableBottom="@drawable/info_btn"/>
<Button
android:id="@+id/button3"
android:layout_width="105dp"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@null" android:drawableBottom="@drawable/car_key"/>
<Button
android:id="@+id/button2"
android:layout_width="105dp"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/button3"
android:background="@null" />
</RelativeLayout>
</FrameLayout>
danke
ich lkie, was ich getan habe. aber ich mag das Aussehen dieser Radiogruppe Vielen Dank Dharmendra – Ravon
Sie sind herzlich willkommen :) – Dharmendra