-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06e594d
commit 4e2a35a
Showing
13 changed files
with
319 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
app_pojavlauncher/src/main/java/com/firefly/ui/button/LauncherMenuButton.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.firefly.ui.button; | ||
|
||
import android.content.Context; | ||
import android.content.res.Resources; | ||
import android.util.AttributeSet; | ||
import android.util.TypedValue; | ||
import android.view.Gravity; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
import net.kdt.pojavlaunch.R; | ||
|
||
import fr.spse.extended_view.ExtendedButton; | ||
|
||
public class LauncherMenuButton extends ExtendedButton { | ||
|
||
public LauncherMenuButton(@NonNull Context context) { | ||
super(context); | ||
setSettings(); | ||
} | ||
|
||
public LauncherMenuButton(@NonNull Context context, @Nullable AttributeSet attrs) { | ||
super(context, attrs); | ||
setSettings(); | ||
} | ||
|
||
private void setSettings() { | ||
Resources resources = getContext().getResources(); | ||
|
||
int padding = resources.getDimensionPixelSize(R.dimen._22sdp); | ||
setCompoundDrawablePadding(padding); | ||
setPaddingRelative(padding, 0, 0, 0); | ||
setGravity(Gravity.CENTER_VERTICAL); | ||
|
||
setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen._12ssp)); | ||
setAllCaps(false); | ||
|
||
int[] sizes = getExtendedViewData().getSizeCompounds(); | ||
sizes[0] = resources.getDimensionPixelSize(R.dimen._30sdp); | ||
getExtendedViewData().setSizeCompounds(sizes); | ||
postProcessDrawables(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/fragments/AboutFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.kdt.pojavlaunch.fragments; | ||
|
||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.EditText; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.fragment.app.Fragment; | ||
|
||
import net.kdt.pojavlaunch.R; | ||
import net.kdt.pojavlaunch.Tools; | ||
import net.kdt.pojavlaunch.extra.ExtraConstants; | ||
import net.kdt.pojavlaunch.extra.ExtraCore; | ||
|
||
import java.io.File; | ||
import java.util.regex.Matcher; | ||
import java.util.regex.Pattern; | ||
|
||
public class AboutFragment extends Fragment { | ||
public static final String TAG = "ABOUT_FRAGMENT"; | ||
public AboutFragment() { | ||
super(R.layout.fragment_about); | ||
} | ||
|
||
@Override | ||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
app_pojavlauncher/src/main/res/layout/fragment_about.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/background_app"> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingHorizontal="@dimen/fragment_padding_medium" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/title_textview" | ||
style="@style/TextAppearance.AppCompat.Title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/padding_large" | ||
android:text="@string/fragment_about_title" /> | ||
|
||
<TextView | ||
android:id="@+id/open_source" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/fragment_about_open_source" /> | ||
|
||
<View | ||
android:id="@+id/view1" | ||
style="@style/ThickDivider" | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="@dimen/padding_large" /> | ||
|
||
<TextView | ||
android:id="@+id/component_title" | ||
style="@style/TextAppearance.AppCompat.Title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/padding_large" | ||
android:text="@string/fragment_about_component_title" /> | ||
|
||
<TextView | ||
android:id="@+id/component_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/fragment_about_component" /> | ||
|
||
<View | ||
android:id="@+id/view2" | ||
style="@style/ThickDivider" | ||
android:layout_width="match_parent" | ||
android:layout_marginTop="@dimen/padding_large" /> | ||
|
||
<TextView | ||
android:id="@+id/contributor_title" | ||
style="@style/TextAppearance.AppCompat.Title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/padding_large" | ||
android:text="@string/fragment_about_contributor_title" /> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_pojavteam" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="PojavLauncherTeam" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_vera_firefly" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="Vera-Firefly" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_movtery" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="MovTery" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_eurya2233369" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="Eurya2233369" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_coloryr" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="Coloryr" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_mio" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="ShirosakiMio" | ||
/> | ||
|
||
<com.firefly.ui.button.LauncherMenuButton | ||
android:id="@+id/contributor_tungsten" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_66sdp" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:text="Tungsten" | ||
/> | ||
|
||
</LinearLayout> | ||
</ScrollView> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.