diff options
Diffstat (limited to 'app/src/main/res/layout/activity_reorder_tabs.xml')
-rw-r--r-- | app/src/main/res/layout/activity_reorder_tabs.xml | 122 |
1 files changed, 73 insertions, 49 deletions
diff --git a/app/src/main/res/layout/activity_reorder_tabs.xml b/app/src/main/res/layout/activity_reorder_tabs.xml index 9a0769258..72127e90a 100644 --- a/app/src/main/res/layout/activity_reorder_tabs.xml +++ b/app/src/main/res/layout/activity_reorder_tabs.xml @@ -14,60 +14,84 @@ You should have received a copy of the GNU General Public License along with Fedilab; if not, see <http://www.gnu.org/licenses>. --> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/lv_reorder_bottom" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:scrollbars="none" /> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/lv_reorder_tabs" + <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - android:scrollbars="none" /> + android:layout_height="wrap_content"> - <RelativeLayout - android:id="@+id/undo_container" - android:layout_width="match_parent" - android:layout_height="50dp" - android:layout_alignParentBottom="true" - android:layout_marginBottom="0dp" - android:background="@color/cyanea_primary_reference" - android:visibility="gone"> - - <TextView - android:id="@+id/undo_message" - android:layout_width="wrap_content" + <androidx.cardview.widget.CardView + android:id="@+id/lv_reorder_bottom_container" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_centerInParent="true" - android:layout_marginStart="10dp" - android:paddingLeft="20dp" - android:paddingTop="5dp" - android:paddingRight="20dp" - android:paddingBottom="5dp" - android:textColor="@color/cyanea_accent_dark_reference" - android:textSize="14sp" /> - - <TextView - android:id="@+id/undo_action" - android:layout_width="wrap_content" + android:layout_marginTop="20dp" + app:layout_constraintTop_toTopOf="parent"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/lv_reorder_bottom" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scrollbars="none" /> + </androidx.cardview.widget.CardView> + + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_centerInParent="true" - android:layout_marginEnd="10dp" - android:paddingLeft="20dp" - android:paddingTop="5dp" - android:paddingRight="20dp" - android:paddingBottom="5dp" - android:text="@string/undo" - android:textAllCaps="true" - android:textColor="@color/cyanea_accent_dark_reference" - android:textSize="18sp" /> - </RelativeLayout> -</RelativeLayout> + android:layout_marginTop="20dp" + app:layout_constraintTop_toBottomOf="@+id/lv_reorder_bottom_container"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/lv_reorder_tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scrollbars="none" /> + </androidx.cardview.widget.CardView> + + <RelativeLayout + android:id="@+id/undo_container" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_marginBottom="0dp" + android:background="@color/cyanea_primary_reference" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent"> + + <TextView + android:id="@+id/undo_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_centerInParent="true" + android:layout_marginStart="10dp" + android:paddingLeft="20dp" + android:paddingTop="5dp" + android:paddingRight="20dp" + android:paddingBottom="5dp" + android:textColor="@color/cyanea_accent_dark_reference" + android:textSize="14sp" /> + + <TextView + android:id="@+id/undo_action" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_centerInParent="true" + android:layout_marginEnd="10dp" + android:paddingLeft="20dp" + android:paddingTop="5dp" + android:paddingRight="20dp" + android:paddingBottom="5dp" + android:text="@string/undo" + android:textAllCaps="true" + android:textColor="@color/cyanea_accent_dark_reference" + android:textSize="18sp" /> + </RelativeLayout> + </androidx.constraintlayout.widget.ConstraintLayout> +</ScrollView> + |