forked from recloudstream/cloudstream
changed search UI
This commit is contained in:
parent
94f0f30580
commit
6bfb4e0d02
5 changed files with 25 additions and 9 deletions
|
@ -41,7 +41,7 @@ object APIHolder {
|
||||||
VMoveeProvider(),
|
VMoveeProvider(),
|
||||||
WatchCartoonOnlineProvider(),
|
WatchCartoonOnlineProvider(),
|
||||||
AllMoviesForYouProvider(),
|
AllMoviesForYouProvider(),
|
||||||
AsiaFlixProvider(),
|
|
||||||
VidEmbedProvider(),
|
VidEmbedProvider(),
|
||||||
VfFilmProvider()
|
VfFilmProvider()
|
||||||
)
|
)
|
||||||
|
@ -50,6 +50,7 @@ object APIHolder {
|
||||||
TrailersToProvider(), // be aware that this is fuckery
|
TrailersToProvider(), // be aware that this is fuckery
|
||||||
//NyaaProvider(), //torrents in cs3 is wack
|
//NyaaProvider(), //torrents in cs3 is wack
|
||||||
ThenosProvider(),
|
ThenosProvider(),
|
||||||
|
AsiaFlixProvider(),
|
||||||
)
|
)
|
||||||
|
|
||||||
fun getApiFromName(apiName: String?): MainAPI {
|
fun getApiFromName(apiName: String?): MainAPI {
|
||||||
|
|
|
@ -5,6 +5,7 @@ import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
|
import androidx.core.view.isVisible
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import androidx.navigation.findNavController
|
import androidx.navigation.findNavController
|
||||||
|
@ -67,6 +68,7 @@ class DownloadFragment : Fragment() {
|
||||||
}
|
}
|
||||||
observe(downloadsViewModel.headerCards) {
|
observe(downloadsViewModel.headerCards) {
|
||||||
setList(it)
|
setList(it)
|
||||||
|
download_loading.isVisible = false
|
||||||
}
|
}
|
||||||
observe(downloadsViewModel.availableBytes) {
|
observe(downloadsViewModel.availableBytes) {
|
||||||
download_free_txt?.text =
|
download_free_txt?.text =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
<corners android:radius="10dp" />
|
<corners android:radius="10dp" />
|
||||||
<solid android:color="@color/colorSearch"/>
|
<solid android:color="?attr/primaryBlackBackground"/>
|
||||||
<!--<stroke android:width="0.5dp" android:color="@color/searchColorTransparent" />-->
|
<!--<stroke android:width="0.5dp" android:color="@color/searchColorTransparent" />-->
|
||||||
</shape>
|
</shape>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?attr/darkBackground"
|
android:background="?attr/darkBackground"
|
||||||
tools:context=".ui.download.DownloadFragment">
|
tools:context=".ui.download.DownloadFragment">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
android:background="?attr/darkBackground"
|
android:background="?attr/darkBackground"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -106,7 +107,7 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:background="?attr/primaryBlackBackground"
|
android:background="?attr/primaryBlackBackground"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||||
|
@ -129,4 +130,12 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="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>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@ -8,12 +8,14 @@
|
||||||
android:id="@+id/searchRoot"
|
android:id="@+id/searchRoot"
|
||||||
tools:context=".ui.search.SearchFragment"
|
tools:context=".ui.search.SearchFragment"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
android:background="?attr/darkBackground"
|
||||||
android:layout_marginTop="@dimen/navbarHeight">
|
android:layout_marginTop="@dimen/navbarHeight">
|
||||||
<FrameLayout android:visibility="visible"
|
<FrameLayout
|
||||||
android:layout_margin="10dp"
|
android:visibility="visible"
|
||||||
android:background="@drawable/search_background"
|
android:layout_margin="10dp"
|
||||||
android:layout_width="match_parent"
|
android:background="@drawable/search_background"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
>
|
>
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
@ -62,8 +64,9 @@
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
||||||
|
android:background="?attr/primaryBlackBackground"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingTop="5dp"
|
android:paddingTop="5dp"
|
||||||
|
@ -74,6 +77,7 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
/>
|
/>
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:background="?attr/primaryBlackBackground"
|
||||||
android:id="@+id/search_master_recycler"
|
android:id="@+id/search_master_recycler"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue