mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Attempt 1 to set layout for menu item (putting toggle button to right side)
This commit is contained in:
parent
23aa691275
commit
a2f98748d7
3 changed files with 20 additions and 1 deletions
18
app/src/main/res/layout/theme_toggle_layout.xml
Normal file
18
app/src/main/res/layout/theme_toggle_layout.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3">
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"/>
|
||||
<ImageButton
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="?attr/toggleButtonIcon"
|
||||
/>
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue