mirror of
https://github.com/ActivityLauncher/ActivityLauncher.git
synced 2026-08-11 09:53:25 +00:00
commit
2728d698ea
10 changed files with 40 additions and 38 deletions
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
6
ActivityLauncherApp/src/main/res/values-night/colors.xml
Normal file
6
ActivityLauncherApp/src/main/res/values-night/colors.xml
Normal 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>
|
||||
|
|
@ -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>
|
||||
6
ActivityLauncherApp/src/main/res/values/attrs.xml
Normal file
6
ActivityLauncherApp/src/main/res/values/attrs.xml
Normal 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>
|
||||
6
ActivityLauncherApp/src/main/res/values/colors.xml
Normal file
6
ActivityLauncherApp/src/main/res/values/colors.xml
Normal 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>
|
||||
|
|
@ -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>
|
||||
9
ActivityLauncherApp/src/main/res/values/themes.xml
Normal file
9
ActivityLauncherApp/src/main/res/values/themes.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue