Ich bin ein togglebutton
in toolbar
mit diesem Code erstellen tyring: Titlebar erhalten in ToggleButton in Toolbar
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#acacac">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#acacac"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_alignParentBottom="true"
android:background="#202020" />
<ToggleButton
android:id="@+id/toggleButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@drawable/check"
android:layout_margin="10dp"
android:focusable="false"
android:focusableInTouchMode="false"
android:textOn=""
android:textOff=""
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout>
</android.support.design.widget.AppBarLayout>
aber wenn ich gesetzt Titel der Titel in erhalten oder wird mit einem ToggleButton verschmolzen:
wo soll es links rechts oder unten erscheinen? – Xenolion
@Xenolion Lwhen ich einen kleinen Titel habe ich kein Problem, aber wenn ich einen großen Titel, Titel Text in toggleButton wie folgt setzen https://i.imgur.com/pTTHtu0.png –
So bist du in Ordnung wenn das Wort wie ** Stapelüberlauf bla sein muss ... (die Umschalttaste hier) ** siehe die drei Punkte berührt es nicht – Xenolion