diff options
Diffstat (limited to '')
-rw-r--r-- | .idea/assetWizardSettings.xml | 4 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/MainActivity.java | 3 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_search.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 9 |
4 files changed, 11 insertions, 6 deletions
diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml index 626d196f..a57d325d 100644 --- a/.idea/assetWizardSettings.xml +++ b/.idea/assetWizardSettings.xml @@ -23,7 +23,7 @@ <PersistentState> <option name="values"> <map> - <entry key="url" value="jar:file:/home/alex/Android%20Studio/plugins/android/lib/android.jar!/images/material_design_icons/action/ic_search_black_24dp.xml" /> + <entry key="url" value="jar:file:/home/alex/Android%20Studio/plugins/android/lib/android.jar!/images/material_design_icons/content/ic_clear_black_24dp.xml" /> </map> </option> </PersistentState> @@ -34,7 +34,7 @@ <option name="values"> <map> <entry key="color" value="ffffff" /> - <entry key="outputName" value="ic_search_white_24dp" /> + <entry key="outputName" value="ic_clear_white_24dp" /> <entry key="sourceFile" value="$USER_HOME$/Downloads/outline-search-24px.svg" /> </map> </option> diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/MainActivity.java index 7591885f..46730021 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/MainActivity.java @@ -3,7 +3,6 @@ package ml.docilealligator.infinityforreddit; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; -import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.view.Menu; @@ -141,13 +140,11 @@ public class MainActivity extends AppCompatActivity { @Override public void onSearchViewShown() { transparentOverlay.setVisibility(View.VISIBLE); - getWindow().setStatusBarColor(Color.GRAY); } @Override public void onSearchViewClosed() { transparentOverlay.setVisibility(View.GONE); - getWindow().setStatusBarColor(Color.TRANSPARENT); } @Override diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index bd440eac..8d080b46 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -38,6 +38,7 @@ android:id="@+id/view_pager_search_activity" android:layout_width="match_parent" android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context=".SearchActivity" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 9c1dfa84..94727b02 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -28,7 +28,14 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:textColor="@android:color/white" - app:voiceSearch="true"/> + app:voiceSearch="true" + app:searchBackground="@color/colorPrimary" + app:cursorColor="@android:color/white" + app:hintColor="#E0E0E0" + app:iconsTint="@android:color/white" + app:backIconTint="@android:color/white" + app:iconsAlpha="1" + app:backIconAlpha="1"/> </FrameLayout> |