Explorar o código

round buttons (WiP)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger %!s(int64=6) %!d(string=hai) anos
pai
achega
1a7652d8b1
Modificáronse 1 ficheiros con 12 adicións e 9 borrados
  1. 12 9
      src/main/res/layout/upload_files_layout.xml

+ 12 - 9
src/main/res/layout/upload_files_layout.xml

@@ -17,10 +17,11 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/upload_files_layout"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:orientation="vertical" >
+    android:orientation="vertical">
 
     <include
         layout="@layout/toolbar_standard" />
@@ -79,21 +80,23 @@
 
         <com.google.android.material.button.MaterialButton
             android:id="@+id/upload_files_btn_cancel"
-            android:theme="@style/OutlinedButton"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
+            android:layout_marginEnd="@dimen/standard_half_margin"
+            android:layout_marginRight="@dimen/standard_half_margin"
             android:layout_weight="1"
             android:text="@string/common_cancel"
-            android:layout_marginRight="@dimen/standard_half_margin"
-            android:layout_marginEnd="@dimen/standard_half_margin"/>
+            android:theme="@style/OutlinedButton"
+            app:cornerRadius="120dp" />
 
         <com.google.android.material.button.MaterialButton
-		    android:id="@+id/upload_files_btn_upload"
+            android:id="@+id/upload_files_btn_upload"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:text="@string/uploader_btn_upload_text"
             android:theme="@style/Button.Primary"
-		    android:layout_width="wrap_content"
-		    android:layout_height="wrap_content"
-		    android:layout_weight="1"
-		    android:text="@string/uploader_btn_upload_text" />
+            app:cornerRadius="120dp" />
 
 	</LinearLayout>