1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

Moved exit button to static position in drawer (fixes #571).

This commit is contained in:
Felix Ableitner 2016-02-24 23:08:27 +01:00
parent 9636c2ae91
commit a15d08cfb3

View file

@ -23,6 +23,17 @@
android:drawableLeft="@drawable/ic_settings_black_24dp" android:drawableLeft="@drawable/ic_settings_black_24dp"
android:drawableStart="@drawable/ic_settings_black_24dp" android:drawableStart="@drawable/ic_settings_black_24dp"
android:text="@string/settings_title" /> android:text="@string/settings_title" />
<TextView
android:id="@+id/drawerActionExit"
style="@style/Widget.Syncthing.TextView.Label"
android:layout_width="match_parent"
android:layout_height="48dp"
android:drawableLeft="@drawable/ic_close_black_24dp"
android:drawableStart="@drawable/ic_close_black_24dp"
android:text="@string/exit"
android:visibility="gone" />
</android.support.v7.widget.LinearLayoutCompat> </android.support.v7.widget.LinearLayoutCompat>
<ScrollView <ScrollView
@ -234,16 +245,6 @@
android:drawableLeft="@drawable/ic_autorenew_black_24dp" android:drawableLeft="@drawable/ic_autorenew_black_24dp"
android:drawableStart="@drawable/ic_autorenew_black_24dp" android:drawableStart="@drawable/ic_autorenew_black_24dp"
android:text="@string/restart" /> android:text="@string/restart" />
<TextView
android:id="@+id/drawerActionExit"
style="@style/Widget.Syncthing.TextView.Label"
android:layout_width="match_parent"
android:layout_height="48dp"
android:drawableLeft="@drawable/ic_close_black_24dp"
android:drawableStart="@drawable/ic_close_black_24dp"
android:text="@string/exit"
android:visibility="gone" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
</RelativeLayout> </RelativeLayout>