Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Removed all drawable and layout resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Collinux committed Apr 13, 2018
1 parent 8005e67 commit 0ee8600
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 45 deletions.
26 changes: 13 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,43 @@
*.class

# Generated files
android/bin/
android/en/
andoid/out/
bin/
en/
out/

# Gradle files
android/.gradle/
android/build/
.gradle/
build/

android/.gradle/
android/build/
build/

# Local configuration file (sdk path, etc)
android/local.properties
local.properties

# Proguard folder generated by Eclipse
android/proguard/
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
android/.navigation/
.navigation/

# Android Studio captures folder
android/captures/
captures/

# IntelliJ
*.iml
.idea/
android/.idea/
.idea/

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
android/.externalNativeBuild
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
android/google-services.json
google-services.json
3 changes: 1 addition & 2 deletions MinimalistLauncher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ android {
compileSdkVersion 27
defaultConfig {
applicationId "launcher.simple.com.simplelauncher"
minSdkVersion 16
minSdkVersion 4
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
2 changes: 2 additions & 0 deletions MinimalistLauncher/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
android:icon="@android:drawable/ic_menu_sort_by_size"
android:label="Minimalist Launcher"
android:excludeFromRecents="true"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:theme="@android:style/Theme.Black.NoTitleBar">

<activity android:name=".MainActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
Expand All @@ -27,14 +28,21 @@ public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

// Setup UI elements
listView = new ListView(this);
listView.setVerticalScrollBarEnabled(false);
listView.setId(android.R.id.list);
listView.setDivider(null);
setContentView(listView);
ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) listView.getLayoutParams();
p.setMargins(100, 0, 0, 0);

// Get a list of all the apps installed
packageManager = getPackageManager();
adapter = new ArrayAdapter<>(
this, R.layout.list_item, new ArrayList<String>());
adapter = new ArrayAdapter<String>(
this, android.R.layout.simple_list_item_1, new ArrayList<String>());
packageNames = new ArrayList<>();
listView = findViewById(R.id.listView);

// Tap on an item in the list to launch the app
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
Expand Down Expand Up @@ -67,7 +75,9 @@ public boolean onItemLongClick(AdapterView<?> parent, View view, int position, l
}

private void fetchAppList() {
adapter.clear(); // Start from a clean adapter when refreshing the list
// Start from a clean adapter when refreshing the list
adapter.clear();
packageNames.clear();

// Query the package manager for all apps
List<ResolveInfo> activities = packageManager.queryIntentActivities(
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions MinimalistLauncher/src/main/res/drawable/list_item_style.xml

This file was deleted.

8 changes: 0 additions & 8 deletions MinimalistLauncher/src/main/res/layout/activity_main.xml

This file was deleted.

8 changes: 0 additions & 8 deletions MinimalistLauncher/src/main/res/layout/list_item.xml

This file was deleted.

0 comments on commit 0ee8600

Please sign in to comment.