add split view
This commit is contained in:
parent
d2ab5fad97
commit
2265351982
|
@ -34,7 +34,7 @@ public class DownloadUI extends FCLMultiPageUI implements TabLayout.OnTabSelecte
|
|||
tabLayout = findViewById(R.id.tab_layout);
|
||||
container = findViewById(R.id.container);
|
||||
|
||||
ThemeEngine.getInstance().registerEvent(tabLayout, () -> tabLayout.setBackgroundColor(ThemeEngine.getInstance().getTheme().getLtColor()));
|
||||
ThemeEngine.getInstance().registerEvent(tabLayout, () -> tabLayout.setBackgroundColor(ThemeEngine.getInstance().getTheme().getColor()));
|
||||
tabLayout.addOnTabSelectedListener(this);
|
||||
container.post(this::initPages);
|
||||
}
|
||||
|
|
|
@ -56,7 +56,14 @@
|
|||
|
||||
<View
|
||||
android:background="@android:color/darker_gray"
|
||||
android:id="@+id/split"
|
||||
android:id="@+id/split_left"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toEndOf="@id/left_menu"/>
|
||||
|
||||
<View
|
||||
android:background="@android:color/darker_gray"
|
||||
android:id="@+id/split_right"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/right_menu"/>
|
||||
|
@ -226,8 +233,8 @@
|
|||
android:id="@+id/ui_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/left_menu"
|
||||
app:layout_constraintEnd_toStartOf="@id/split"/>
|
||||
app:layout_constraintStart_toEndOf="@+id/split_left"
|
||||
app:layout_constraintEnd_toStartOf="@id/split_right"/>
|
||||
|
||||
<com.tungsten.fcllibrary.component.view.FCLDynamicIsland
|
||||
android:stateListAnimator="@null"
|
||||
|
|
|
@ -39,11 +39,18 @@
|
|||
|
||||
</com.tungsten.fcllibrary.component.view.FCLTabLayout>
|
||||
|
||||
<View
|
||||
android:background="@android:color/darker_gray"
|
||||
android:id="@+id/split"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/tab_layout"/>
|
||||
|
||||
<com.tungsten.fcllibrary.component.view.FCLUILayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tab_layout"
|
||||
app:layout_constraintTop_toBottomOf="@+id/split"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue