mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 17:15:40 -04:00
- Did some cleaning.
This commit is contained in:
parent
4eb7ba7445
commit
803e3431e6
@ -2,12 +2,7 @@ package com.kdt.mcgui;
|
||||
|
||||
import android.content.*;
|
||||
import android.graphics.*;
|
||||
import android.graphics.drawable.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.view.View.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
public class MineButton extends androidx.appcompat.widget.AppCompatButton
|
||||
{
|
||||
@ -20,17 +15,8 @@ public class MineButton extends androidx.appcompat.widget.AppCompatButton
|
||||
super(ctx, attrs);
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
public void init() {
|
||||
getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||
@Override
|
||||
public void onGlobalLayout() {
|
||||
setTextColor(Color.WHITE);
|
||||
setPadding(10,10,10,10);
|
||||
|
||||
//setOnTouchListener(null);
|
||||
}
|
||||
});
|
||||
setTypeface(Typeface.createFromAsset(getContext().getAssets(), "font/NotoSans-Bold.ttf"));
|
||||
}
|
||||
|
||||
|
@ -93,10 +93,12 @@
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/mine_button_background"
|
||||
android:text="@string/login_online_login_label"
|
||||
android:textColor="@android:color/white"
|
||||
android:onClick="loginMC"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/mine_button_background"/>
|
||||
/>
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="match_parent"
|
||||
@ -111,18 +113,22 @@
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:layout_width="210dip"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/mine_button_background"
|
||||
android:text="@string/login_select_account"
|
||||
android:textColor="@android:color/white"
|
||||
android:onClick="loginSavedAcc"
|
||||
android:background="@drawable/mine_button_background"/>
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:layout_height="42dp"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/mine_button_background"
|
||||
android:text="@string/login_microsoft"
|
||||
android:textColor="@android:color/white"
|
||||
android:onClick="loginMicrosoft"
|
||||
android:background="@drawable/mine_button_background"/>
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -241,19 +241,21 @@
|
||||
app:layout_constraintTop_toTopOf="@+id/guidelineBottom2" />
|
||||
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:background="@drawable/mine_button_background"
|
||||
android:id="@+id/launchermainPlayButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:onClick="launchGame"
|
||||
android:text="@string/main_play"
|
||||
android:textColor="@android:color/white"
|
||||
app:layout_constraintWidth_default="percent"
|
||||
app:layout_constraintWidth_percent="0.25"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/guidelineLeft"
|
||||
app:layout_constraintTop_toTopOf="@+id/guidelineBottom"
|
||||
android:background="@drawable/mine_button_background"/>
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/launchermain_text_welcome"
|
||||
|
Loading…
x
Reference in New Issue
Block a user