Skip to content

Commit 7872ad3

Browse files
committed
Add background to recycler view, Make search area bigger
1 parent 5f16706 commit 7872ad3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

library/src/main/java/com/ehsanmashhadi/library/view/CountryPicker.java

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ public List<Country> getCountries() {
137137
private void initSearchView() {
138138

139139
mSearchViewCountry = mView.findViewById(R.id.searchview_country);
140+
mSearchViewCountry.setOnClickListener(v -> mSearchViewCountry.setIconified(false));
141+
140142
if (mEnablingSearch) {
141143
mSearchViewCountry.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
142144
@Override

library/src/main/res/layout/layout_countrypicker.xml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<androidx.recyclerview.widget.RecyclerView
1414
android:id="@+id/recyclerview_countries"
1515
android:layout_width="match_parent"
16+
android:background="?rowBackgroundColor"
1617
android:layout_height="match_parent"
1718
android:layout_below="@id/searchview_country"/>
1819

0 commit comments

Comments
 (0)