Merge pull request #106 from Ismael034/master

Fix for the status bar
This commit is contained in:
Adam M. Szalkowski 2022-01-08 10:10:48 +01:00 committed by GitHub
commit 2728d698ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 40 additions and 38 deletions

View file

@ -32,4 +32,5 @@ android {
dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.fragment:fragment:1.4.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
}

View file

@ -106,7 +106,9 @@ public class AllTasksListAdapter extends BaseExpandableListAdapter implements Fi
if (activity.is_private) {
text1.setEnabled(false);
text1.setAlpha(0.5f);
text2.setEnabled(false);
text2.setAlpha(0.5f);
ImageView icon1 = view.findViewById(android.R.id.icon1);
icon1.setVisibility(View.VISIBLE);

View file

@ -1,5 +1,6 @@
package de.szalkowski.activitylauncher;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@ -8,13 +9,14 @@ import android.view.Menu;
import android.view.MenuItem;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.SearchView;
import androidx.appcompat.widget.SearchView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.FragmentActivity;
public class MainActivity extends FragmentActivity {
public class MainActivity extends AppCompatActivity {
private Filterable filterTarget = null;

View file

@ -1,20 +1,20 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/search"
android:title="@string/action_filter"
android:icon="@android:drawable/ic_menu_search"
android:showAsAction="collapseActionView|ifRoom"
android:actionViewClass="android.widget.SearchView" />
app:showAsAction="collapseActionView|always"
app:actionViewClass="androidx.appcompat.widget.SearchView" />
<item
android:id="@+id/action_view_source"
android:showAsAction="never"
app:showAsAction="never"
android:title="@string/action_view_source" />
<item
android:id="@+id/action_view_translation"
android:showAsAction="never"
app:showAsAction="never"
android:title="@string/action_view_translation" />
<item
android:id="@+id/action_view_bugs"
android:showAsAction="never"
app:showAsAction="never"
android:title="@string/action_view_bugs" />
</menu>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#222222</color>
<color name="colorPrimaryLight">#6d6d6d</color>
<color name="colorPrimaryDark">#1b1b1b</color>
</resources>

View file

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppBaseTheme" parent="android:Theme.DeviceDefault.DayNight">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="colorPrimary" format="color"/>
<attr name="colorPrimaryLight" format="color"/>
<attr name="colorPrimaryDark" format="color"/>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#fafafa</color>
<color name="colorPrimaryLight">#ffffff</color>
<color name="colorPrimaryDark">#c7c7c7</color>
</resources>

View file

@ -1,20 +0,0 @@
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.DeviceDefault">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat.DayNight">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorPrimaryLight">@color/colorPrimaryLight</item>
</style>
</resources>