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

Commit

Permalink
Use Vector Drawable Support Library
Browse files Browse the repository at this point in the history
  • Loading branch information
MSkjel committed May 28, 2019
1 parent 7f96b70 commit c34f1ea
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
vectorDrawables.useSupportLibrary = true
applicationId "tw.fatminmin.xposed.minminguard"
minSdkVersion 14
targetSdkVersion 28
versionCode 64
versionCode 65
versionName "2.0.6"
}
buildTypes {
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS"/>
</intent-filter>
Expand Down Expand Up @@ -56,5 +55,4 @@
android:name="io.fabric.ApiKey"
android:value="11b3bd0c3467e4848618141b36a73619c7ef4843"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatDelegate;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -53,6 +54,7 @@ public static MainFragment newInstance(FragmentMode mode)
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
setHasOptionsMenu(true);
}

Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/layout/dialog_app_detail.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp">

<ImageView
android:id="@+id/detail_app_icon"
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/res/layout/navigation_header.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="150dp"
android:background="@color/black">
android:layout_width="match_parent"
android:layout_height="150dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/black">

<LinearLayout
android:layout_width="wrap_content"
Expand All @@ -14,7 +15,7 @@
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:src="@mipmap/ic_launcher"
app:srcCompat="@mipmap/ic_launcher"
android:contentDescription="Navigation header icon" />

<TextView
Expand Down

0 comments on commit c34f1ea

Please sign in to comment.