diff options
Diffstat (limited to 'library/src/main/res')
-rw-r--r-- | library/src/main/res/layout/kau_search_view.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/values/attr.xml | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/library/src/main/res/layout/kau_search_view.xml b/library/src/main/res/layout/kau_search_view.xml index 4a46e90..4083f44 100644 --- a/library/src/main/res/layout/kau_search_view.xml +++ b/library/src/main/res/layout/kau_search_view.xml @@ -11,13 +11,14 @@ android:background="@color/kau_search_full_shadow" android:visibility="gone" /> - <ca.allanwang.kau.searchview.SearchCard + <ca.allanwang.kau.views.KauBoundedCardView android:id="@+id/search_cardview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/kau_search_base_margin" android:layout_marginStart="@dimen/kau_search_base_margin" - app:cardCornerRadius="@dimen/kau_search_base_corners"> + app:cardCornerRadius="@dimen/kau_search_base_corners" + app:kau_maxHeightPercent="0.9"> <LinearLayout android:layout_width="match_parent" @@ -107,6 +108,6 @@ </LinearLayout> - </ca.allanwang.kau.searchview.SearchCard> + </ca.allanwang.kau.views.KauBoundedCardView> </merge>
\ No newline at end of file diff --git a/library/src/main/res/values/attr.xml b/library/src/main/res/values/attr.xml new file mode 100644 index 0000000..894a069 --- /dev/null +++ b/library/src/main/res/values/attr.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <declare-styleable name="KauBoundedCardView"> + <attr name="kau_maxHeight" format="dimension" /> + <attr name="kau_maxHeightPercent" format="float" /> + </declare-styleable> + +</resources>
\ No newline at end of file |