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:
KingLucius 2023-10-10 18:17:18 +03:00 committed by GitHub
parent b120a7bce2
commit abbad1bc94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View file

@ -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
}

View file

@ -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" />

View file

@ -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" />

View file

@ -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>