Skip to content

Commit afa5023

Browse files
committed
eLauncher: new release
1 parent 54d3e9f commit afa5023

File tree

12 files changed

+33
-33
lines changed

12 files changed

+33
-33
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
# NoLauncher
1+
# eLauncher
22

3-
NoLauncher is an extremely lightweight and minimal launcher for Android inspired by [OLauncher Light](https://github.com/tanujnotes/Ultra/), and OLauncher in general. It is even more barebones than OLauncher Light, and aims to provide only the most basic features.
3+
eLauncher is an extremely lightweight and minimal launcher for Android, based on NoLauncher and inspired by [OLauncher Light](https://github.com/tanujnotes/Ultra/), and OLauncher in general. It is even more barebones than OLauncher Light, and aims to provide only the most basic features.
4+
5+
eLauncher favours support easy readibility on eInk/ePaper devices, such as the Onyx Boox Note series, and the Bigme HiBreak.
46

57
## Features
68

9+
- Extremely lightweight: only 779KB
10+
- eInk friendly: uses a light theme by default
11+
712
- Homescreen and app drawer: swipe up on homescreen to enter the app drawer
813
- Long press an app field on the homescreen to assign an app, app can be renamed
914
- Type to search in app drawer, if only one result is left, it is automatically launched (like OLauncher)
10-
- Gestures: swipe down for notification center, left for camera app, right for phone app, double tap to lock screen (requires root)
15+
- Gestures: swipe down for notification center, left for camera app, right for phone app, double tap to hopen app drawer with keyboard
1116
- Hold on empty space to change the number of apps on homescreen
1217

1318
## apk size differences with OLauncher Light
1419

15-
This might have been done on purpose, but OLauncher Light uses long deprecated APIs, like ListView to achieve its impressive 23 KB apk size. NoLauncher uses RecyclerView, which is much better for performance and memory usage, and also uses many other newer APIs. Thus, the APK size is much larger than with OLauncher Light, but still really small - 1.8 MB.
20+
This might have been done on purpose, but OLauncher Light uses long deprecated APIs, like ListView to achieve its impressive 23 KB apk size. eLauncher uses RecyclerView, which is much better for performance and memory usage, and also uses many other newer APIs. Thus, the APK size is much larger than with OLauncher Light, but still really small - 1.8 MB.
1621

1722
## Download
1823

19-
NoLauncher is available in the default F-Droid repository.
20-
21-
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/com.artikus.nolauncher)
22-
23-
Alternatively, you can download the apk file directly from the releases tab and install it manually. Do note that I will never officially publish NoLauncher to the Play Store.
24+
Alternatively, you can download the apk file directly from the releases tab and install it manually.
2425

2526
## Contributing
2627

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ plugins {
33
}
44

55
android {
6-
namespace 'com.artikus.nolauncher'
6+
namespace 'me.pompel.elauncher'
77
compileSdk 32
88

99
defaultConfig {
10-
applicationId "com.artikus.nolauncher"
10+
applicationId "me.pompel.elauncher"
1111
minSdk 21
1212
targetSdk 33
1313
versionCode 1

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
66
<application
77
android:allowBackup="true"
8-
android:label="NoLauncher"
8+
android:label="eLauncher"
99
android:supportsRtl="true"
1010
android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
1111
android:extractNativeLibs="true"
12-
tools:targetApi="31">
12+
tools:targetApi="31"
13+
>
1314

1415
<activity
1516
android:name=".MainActivity"

app/src/main/java/com/artikus/nolauncher/App.java renamed to app/src/main/java/me/pompel/elauncher/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.artikus.nolauncher;
1+
package me.pompel.elauncher;
22

33
public class App {
44
public String appName;

app/src/main/java/com/artikus/nolauncher/MainActivity.java renamed to app/src/main/java/me/pompel/elauncher/MainActivity.java

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.artikus.nolauncher;
1+
package me.pompel.elauncher;
22

33
import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;
44

@@ -35,8 +35,6 @@
3535
import android.widget.LinearLayout;
3636
import android.widget.TextView;
3737

38-
import com.artikus.nolauncher.recyclerAdapter;
39-
4038
import java.util.ArrayList;
4139
import java.util.Collections;
4240

@@ -87,11 +85,6 @@ private void openAppWithIntent(Intent intent, boolean change) {
8785
if (change) changeLayout(true, false);
8886
}
8987

90-
public void lock() {
91-
try { Runtime.getRuntime().exec(new String[] { "su", "-c", "input keyevent 26" }).waitFor(); }
92-
catch (Exception e) { e.printStackTrace(); }
93-
}
94-
9588
@Override public void onBackPressed() { if (findViewById(R.id.AppDrawer).getVisibility() == View.VISIBLE) changeLayout(true, true); }
9689

9790
@Override protected void onCreate(Bundle savedInstanceState) {
@@ -151,9 +144,9 @@ else if (!recyclerView.canScrollVertically(-1)) {
151144
CharSequence[] alertApps = appNames.toArray(new CharSequence[0]);
152145
for (int i = 0; i < prefs.getInt("apps", 8); i++) {
153146
TextView textView = new TextView(this);
154-
textView.setTextColor(Color.WHITE);
147+
textView.setTextColor(Color.BLACK);
155148
textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 25);
156-
textView.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL));
149+
textView.setTypeface(Typeface.create("sans-serif-bold", Typeface.NORMAL));
157150
textView.setPadding(0, 0, 0, 50);
158151
textView.setText(prefs.getString(Integer.toString(i), "App"));
159152
textView.setTag(i);
@@ -207,13 +200,17 @@ else if (Math.abs(yDiff) > 100 && Math.abs(velocityY) > 100) {
207200
catch (Exception e) { e.printStackTrace(); }
208201
else {
209202
changeLayout(false, true);
210-
keyboardAction(false);
203+
keyboardAction(true);
211204
}
212205
}
213206
return true;
214207
}
215208

216-
@Override public boolean onDoubleTap(MotionEvent e) { lock(); return true; }
209+
@Override public boolean onDoubleTap(MotionEvent e) {
210+
changeLayout(false, true);
211+
keyboardAction(false);
212+
return true;
213+
}
217214

218215
@Override public void onLongPress(MotionEvent e) {
219216
super.onLongPress(e);

app/src/main/java/com/artikus/nolauncher/recyclerAdapter.java renamed to app/src/main/java/me/pompel/elauncher/recyclerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.artikus.nolauncher;
1+
package me.pompel.elauncher;
22
import android.view.LayoutInflater;
33
import android.view.View;
44
import android.view.ViewGroup;

app/src/main/res/drawable/bottom_line.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<shape android:shape="rectangle" >
88
<stroke
99
android:width="0.5dp"
10-
android:color="@android:color/white" />
10+
android:color="#000000" />
1111
</shape>
1212
</item>
1313
</layer-list>

app/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:id="@+id/MainLayout"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8-
android:animateLayoutChanges="true"
8+
android:animateLayoutChanges="false"
9+
android:background="@android:color/white"
910
tools:context=".MainActivity">
1011

1112
<LinearLayout
@@ -47,7 +48,7 @@
4748
android:inputType="text"
4849
android:lines="1"
4950
android:textAlignment="center"
50-
android:textColor="@android:color/white"
51+
android:textColor="@android:color/black"
5152
android:textSize="25sp"
5253
app:layout_constraintEnd_toEndOf="parent"
5354
app:layout_constraintStart_toStartOf="parent"

app/src/main/res/layout/list_items.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
android:layout_marginTop="20dp"
1111
android:fontFamily="sans-serif-light"
1212
android:textAlignment="center"
13-
android:textColor="#FFFFFF"
13+
android:textColor="@android:color/black"
1414
android:textSize="25sp" />
1515
</FrameLayout>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
NoLauncher
1+
eLauncher

0 commit comments

Comments
 (0)