changed search UI

This commit is contained in:
LagradOst 2021-10-03 21:15:56 +02:00
parent 94f0f30580
commit 6bfb4e0d02
5 changed files with 25 additions and 9 deletions

View file

@ -41,7 +41,7 @@ object APIHolder {
VMoveeProvider(),
WatchCartoonOnlineProvider(),
AllMoviesForYouProvider(),
AsiaFlixProvider(),
VidEmbedProvider(),
VfFilmProvider()
)
@ -50,6 +50,7 @@ object APIHolder {
TrailersToProvider(), // be aware that this is fuckery
//NyaaProvider(), //torrents in cs3 is wack
ThenosProvider(),
AsiaFlixProvider(),
)
fun getApiFromName(apiName: String?): MainAPI {

View file

@ -5,6 +5,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.findNavController
@ -67,6 +68,7 @@ class DownloadFragment : Fragment() {
}
observe(downloadsViewModel.headerCards) {
setList(it)
download_loading.isVisible = false
}
observe(downloadsViewModel.availableBytes) {
download_free_txt?.text =

View file

@ -1,5 +1,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="@color/colorSearch"/>
<solid android:color="?attr/primaryBlackBackground"/>
<!--<stroke android:width="0.5dp" android:color="@color/searchColorTransparent" />-->
</shape>

View file

@ -9,6 +9,7 @@
android:layout_height="match_parent"
android:background="?attr/darkBackground"
tools:context=".ui.download.DownloadFragment">
<com.google.android.material.appbar.AppBarLayout
android:background="?attr/darkBackground"
android:layout_width="match_parent"
@ -129,4 +130,12 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<ProgressBar
android:visibility="visible"
tools:visibility="gone"
android:id="@+id/download_loading"
android:layout_gravity="center"
android:layout_width="50dp" android:layout_height="50dp">
</ProgressBar>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -8,12 +8,14 @@
android:id="@+id/searchRoot"
tools:context=".ui.search.SearchFragment"
android:orientation="vertical"
android:background="?attr/darkBackground"
android:layout_marginTop="@dimen/navbarHeight">
<FrameLayout android:visibility="visible"
android:layout_margin="10dp"
android:background="@drawable/search_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
<FrameLayout
android:visibility="visible"
android:layout_margin="10dp"
android:background="@drawable/search_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<FrameLayout
android:layout_gravity="center_vertical"
@ -62,8 +64,9 @@
</FrameLayout>
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
android:background="?attr/primaryBlackBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingStart="8dp"
android:paddingTop="5dp"
@ -74,6 +77,7 @@
android:orientation="vertical"
/>
<androidx.recyclerview.widget.RecyclerView
android:background="?attr/primaryBlackBackground"
android:id="@+id/search_master_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"