diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-26 19:33:48 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-26 19:33:48 -0700 |
commit | c46fb11e0a8297b1ff7caec722488218e3834ac9 (patch) | |
tree | ec76911b4ee98cfad69229fa23068b0a92e51450 /library/src/main/res | |
parent | 49c86236f2df05e2082826296f12c911230eb6a1 (diff) | |
download | kau-c46fb11e0a8297b1ff7caec722488218e3834ac9.tar.gz kau-c46fb11e0a8297b1ff7caec722488218e3834ac9.tar.bz2 kau-c46fb11e0a8297b1ff7caec722488218e3834ac9.zip |
Add searchview to readme
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 |