Browse Source

delete button (no function yet)

AndyScherzinger 8 years ago
parent
commit
ace7ad03c4

+ 25 - 11
src/main/res/layout/folder_sync_settings_layout.xml

@@ -392,25 +392,39 @@
 
     </ScrollView>
 
-    <LinearLayout
+    <RelativeLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:gravity="right">
+        android:layout_height="wrap_content">
 
         <android.support.v7.widget.AppCompatButton
-            android:id="@+id/cancel"
-            style="@style/Button.Borderless"
+            android:id="@+id/delete"
+            style="@style/Button.Borderless.Destructive"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:text="@string/common_cancel"/>
+            android:layout_alignParentLeft="true"
+            android:text="delete"/>
 
-        <android.support.v7.widget.AppCompatButton
-            android:id="@+id/save"
-            style="@style/Button.Borderless"
+        <LinearLayout
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:text="@string/common_save"/>
+            android:layout_alignParentRight="true">
 
-    </LinearLayout>
+            <android.support.v7.widget.AppCompatButton
+                android:id="@+id/cancel"
+                style="@style/Button.Borderless"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/common_cancel"/>
+
+            <android.support.v7.widget.AppCompatButton
+                android:id="@+id/save"
+                style="@style/Button.Borderless"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/common_save"/>
+
+        </LinearLayout>
+
+    </RelativeLayout>
 
 </LinearLayout>

+ 1 - 0
src/main/res/values/colors.xml

@@ -32,6 +32,7 @@
     <color name="dark_background_text_color">#EEEEEE</color>
     <color name="transparent">#00000000</color>
     <color name="secondaryTextColor">#a0a0a0</color>
+    <color name="highlight_textColor_Warning">#e53935</color>
 
     <!-- Colors -->
     <color name="standard_grey">#757575</color>

+ 4 - 0
src/main/res/values/styles.xml

@@ -119,6 +119,10 @@
 		<item name="android:textColor">@color/color_accent</item>
 	</style>
 
+	<style name="Button.Borderless.Destructive" parent="Base.Widget.AppCompat.Button.Borderless">
+		<item name="android:textColor">@color/highlight_textColor_Warning</item>
+	</style>
+
 	<style name="Button.Borderless.Login" parent="Base.Widget.AppCompat.Button.Borderless">
 		<item name="android:textColor">@color/white</item>
 	</style>