mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Delete Focus frame from empty Downloads list & Search TV Layout (#675)
* Delete Focus frame in search TV layout * Delete focus frame for empty Downloads list * Chip rounded stroke frame
This commit is contained in:
parent
b120a7bce2
commit
abbad1bc94
4 changed files with 8 additions and 3 deletions
|
@ -11,6 +11,7 @@ import android.widget.AbsListView
|
|||
import android.widget.ArrayAdapter
|
||||
import android.widget.ImageView
|
||||
import android.widget.ListView
|
||||
import android.widget.TextView
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.widget.SearchView
|
||||
import androidx.core.view.isVisible
|
||||
|
@ -221,7 +222,7 @@ class SearchFragment : Fragment() {
|
|||
SearchHelper.handleSearchClickCallback(callback)
|
||||
}
|
||||
|
||||
|
||||
searchRoot.findViewById<TextView>(R.id.search_src_text)?.tag = "tv_no_focus_tag"
|
||||
searchAutofitResults.adapter = adapter
|
||||
searchLoadingBar.alpha = 0f
|
||||
}
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
android:background="?attr/primaryBlackBackground"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:nextFocusLeft="@id/nav_rail_view"
|
||||
android:tag = "@string/tv_no_focus_tag"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:listitem="@layout/download_header_episode" />
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
android:nextFocusRight="@id/main_search"
|
||||
android:nextFocusUp="@id/nav_rail_view"
|
||||
android:nextFocusDown="@id/tvtypes_chips_scroll"
|
||||
android:tag = "@string/tv_no_focus_tag"
|
||||
android:src="@drawable/ic_baseline_tune_24"
|
||||
app:tint="?attr/textColor" />
|
||||
</FrameLayout>
|
||||
|
@ -141,6 +142,7 @@
|
|||
android:nextFocusLeft="@id/nav_rail_view"
|
||||
android:nextFocusUp="@id/tvtypes_chips"
|
||||
android:nextFocusDown="@id/search_clear_call_history"
|
||||
android:tag = "@string/tv_no_focus_tag"
|
||||
android:paddingBottom="50dp"
|
||||
android:visibility="visible"
|
||||
tools:listitem="@layout/search_history_item" />
|
||||
|
|
|
@ -86,8 +86,8 @@
|
|||
|
||||
<style name="ChipFilled" parent="@style/Widget.Material3.Chip.Filter">
|
||||
<item name="chipBackgroundColor">@color/chip_color</item>
|
||||
<!-- <item name="chipStrokeColor">@color/white_transparent_toggle</item>-->
|
||||
<item name="chipStrokeColor">@color/transparent</item>
|
||||
<item name="chipStrokeColor">@color/white_transparent_toggle</item>
|
||||
<!-- <item name="chipStrokeColor">@color/transparent</item>-->
|
||||
<item name="chipStrokeWidth">2dp</item>
|
||||
<item name="textColor">@color/chip_color_text</item>
|
||||
<item name="android:textColor">@color/chip_color_text</item>
|
||||
|
@ -95,6 +95,7 @@
|
|||
<item name="fontFamily">@font/google_sans</item>
|
||||
<item name="chipIconTint">@color/chip_color_text</item>
|
||||
<item name="android:fontFamily">@font/google_sans</item>
|
||||
<item name="android:tag">@string/tv_no_focus_tag</item>
|
||||
<item name="chipMinTouchTargetSize">0dp</item>
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Reference in a new issue