瀏覽代碼

Fix #113

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 年之前
父節點
當前提交
9b6cec3b57

+ 7 - 4
app/src/main/res/layout/bottom_buttons.xml

@@ -22,17 +22,19 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:id="@+id/bottom_buttons_layout"
               android:layout_width="match_parent"
-              android:layout_height="64dp"
+              android:layout_height="48dp"
               android:alpha="0.7"
               android:animateLayoutChanges="true"
               android:gravity="bottom"
+              android:layout_gravity="bottom"
               android:orientation="horizontal"
-              android:visibility="gone">
+              android:visibility="visible">
 
     <Button
         android:id="@+id/clear_button"
+        style="?android:attr/borderlessButtonStyle"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_weight="0.6"
         android:background="@color/nc_darkRed"
         android:text="@string/nc_contacts_clear"
@@ -41,8 +43,9 @@
 
     <Button
         android:id="@+id/done_button"
+        style="?android:attr/borderlessButtonStyle"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_weight="0.4"
         android:background="@color/nc_darkGreen"
         android:text="@string/nc_contacts_done"

+ 0 - 3
app/src/main/res/layout/controller_generic_rv.xml

@@ -46,9 +46,6 @@
 
     <include
         layout="@layout/bottom_buttons"
-        android:layout_width="match_parent"
-        android:layout_height="32dp"
-        android:layout_gravity="bottom"
         android:visibility="gone"/>
 
     <include layout="@layout/fast_scroller"/>

+ 1 - 1
app/src/main/res/layout/rv_item_empty_footer.xml

@@ -21,7 +21,7 @@
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:layout_width="match_parent"
-              android:layout_height="64dp"
+              android:layout_height="48dp"
               android:orientation="vertical">
 
 </LinearLayout>