mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 14:01:27 +08:00
Optimized the loading of ToolList. Fix the repeated bug when ToolList is reloaded. Display ToolList using RecyclerView. Optimized FoldLayout, removed the default hidden function.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/nav_header_height"
|
||||
android:background="@drawable/side_nav_bar"
|
||||
android:background="@drawable/background_side_nav_bar"
|
||||
android:gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
|
||||
@@ -11,12 +11,11 @@
|
||||
android:id="@+id/auto_linefeed_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/background_bottom_radius"
|
||||
android:gravity="center_vertical">
|
||||
</com.fatapp.oxygentoolbox.layout.AutoLinefeedLayout>
|
||||
android:gravity="center_vertical"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:paddingBottom="2dp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/fold_layout_linear_layout"
|
||||
android:id="@+id/fold_layout_head_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
@@ -29,7 +29,7 @@
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/arrow_icon"
|
||||
android:id="@+id/fold_layout_arrow_icon"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_weight="1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/fragment_home_tools"
|
||||
android:layout_width="match_parent"
|
||||
@@ -7,12 +7,8 @@
|
||||
android:background="?attr/app_background_theme"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.home.tools.ToolsFragment">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/fold_layouts_linear_layout"
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tools_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp" />
|
||||
</ScrollView>
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -10,7 +9,5 @@
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/theme_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -90,8 +90,8 @@
|
||||
android:id="@+id/library_description"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/library_item_card_inner_padding"
|
||||
android:layout_marginRight="@dimen/library_item_card_inner_padding"
|
||||
android:layout_marginStart="@dimen/library_item_card_inner_padding"
|
||||
android:layout_marginEnd="@dimen/library_item_card_inner_padding"
|
||||
android:maxLines="20"
|
||||
android:textAppearance="?textAppearanceBody2"
|
||||
android:textColor="?attr/app_text_theme"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="10dp"
|
||||
android:background="@drawable/background_top_radius"
|
||||
android:background="@drawable/background_theme_top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -34,17 +34,17 @@
|
||||
android:id="@+id/primary_dark_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:background="@drawable/background_no_radius" />
|
||||
android:background="@drawable/background_theme_middle" />
|
||||
|
||||
<View
|
||||
android:id="@+id/primary_light_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:background="@drawable/background_no_radius" />
|
||||
android:background="@drawable/background_theme_middle" />
|
||||
|
||||
<View
|
||||
android:id="@+id/accent_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:background="@drawable/background_bottom_radius" />
|
||||
android:background="@drawable/background_theme_bottom" />
|
||||
</LinearLayout>
|
||||
@@ -2,13 +2,14 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.fatapp.oxygentoolbox.layout.FoldLayout
|
||||
android:id="@+id/fold_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layoutId="@layout/fold_layout_head"
|
||||
app:transitionTime="300"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
Reference in New Issue
Block a user