mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* Revert custom stylings of toolbar * Enable back button on toolbar
This commit is contained in:
parent
86c571ceee
commit
b06f875812
2 changed files with 4 additions and 4 deletions
|
|
@ -69,6 +69,7 @@ public class SearchActivity extends BaseActivity
|
|||
ButterKnife.bind(this);
|
||||
setTitle(getString(R.string.title_activity_search));
|
||||
setSupportActionBar(toolbar);
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
toolbar.setNavigationOnClickListener(v->onBackPressed());
|
||||
supportFragmentManager = getSupportFragmentManager();
|
||||
setSearchHistoryFragment();
|
||||
|
|
|
|||
|
|
@ -23,15 +23,14 @@
|
|||
android:id="@+id/toolbar_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorPrimaryDark"
|
||||
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
app:navigationIcon="@drawable/ic_arrow_back_white">
|
||||
app:titleTextColor="?attr/toolbar_text_color"
|
||||
app:subtitleTextColor="?attr/toolbar_text_color"
|
||||
>
|
||||
<SearchView
|
||||
android:id="@+id/searchBox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="true"
|
||||
app:theme="@style/WhiteSearchBarTheme"
|
||||
android:queryBackground="@android:color/transparent"
|
||||
android:searchIcon="@null"
|
||||
android:paddingLeft="-16dp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue