mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
Update layout names
This commit is contained in:
parent
b6c250cadd
commit
e61b811545
33 changed files with 18 additions and 27 deletions
|
|
@ -47,7 +47,7 @@ public class LoggerView extends ConstraintLayout {
|
||||||
* Inflate the layout, and add component behaviors
|
* Inflate the layout, and add component behaviors
|
||||||
*/
|
*/
|
||||||
private void init(){
|
private void init(){
|
||||||
inflate(getContext(), R.layout.loggerview_layout, this);
|
inflate(getContext(), R.layout.view_logger, this);
|
||||||
mLogTextView = findViewById(R.id.content_log_view);
|
mLogTextView = findViewById(R.id.content_log_view);
|
||||||
mLogTextView.setTypeface(Typeface.MONOSPACE);
|
mLogTextView.setTypeface(Typeface.MONOSPACE);
|
||||||
//TODO clamp the max text so it doesn't go oob
|
//TODO clamp the max text so it doesn't go oob
|
||||||
|
|
|
||||||
|
|
@ -342,7 +342,7 @@ public class BaseMainActivity extends BaseActivity {
|
||||||
public void adjustMouseSpeedLive() {
|
public void adjustMouseSpeedLive() {
|
||||||
AlertDialog.Builder b = new AlertDialog.Builder(this);
|
AlertDialog.Builder b = new AlertDialog.Builder(this);
|
||||||
b.setTitle(R.string.mcl_setting_title_mousespeed);
|
b.setTitle(R.string.mcl_setting_title_mousespeed);
|
||||||
View v = LayoutInflater.from(this).inflate(R.layout.live_mouse_speed_editor,null);
|
View v = LayoutInflater.from(this).inflate(R.layout.dialog_live_mouse_speed_editor,null);
|
||||||
final SeekBar sb = v.findViewById(R.id.mouseSpeed);
|
final SeekBar sb = v.findViewById(R.id.mouseSpeed);
|
||||||
final TextView tv = v.findViewById(R.id.mouseSpeedTV);
|
final TextView tv = v.findViewById(R.id.mouseSpeedTV);
|
||||||
sb.setMax(275);
|
sb.setMax(275);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ public class CustomControlsActivity extends BaseActivity {
|
||||||
// setTheme(androidx.appcompat.R.style.Theme_AppCompat_Translucent);
|
// setTheme(androidx.appcompat.R.style.Theme_AppCompat_Translucent);
|
||||||
}
|
}
|
||||||
|
|
||||||
setContentView(R.layout.control_mapping);
|
setContentView(R.layout.activity_custom_controls);
|
||||||
|
|
||||||
mControlLayout = (ControlLayout) findViewById(R.id.customctrl_controllayout);
|
mControlLayout = (ControlLayout) findViewById(R.id.customctrl_controllayout);
|
||||||
mDrawerLayout = (DrawerLayout) findViewById(R.id.customctrl_drawerlayout);
|
mDrawerLayout = (DrawerLayout) findViewById(R.id.customctrl_drawerlayout);
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public class ImportControlActivity extends Activity {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Tools.initContextConstants(getApplicationContext());
|
Tools.initContextConstants(getApplicationContext());
|
||||||
|
|
||||||
setContentView(R.layout.import_control_layout);
|
setContentView(R.layout.activity_import_control);
|
||||||
mEditText = findViewById(R.id.editText_import_control_file_name);
|
mEditText = findViewById(R.id.editText_import_control_file_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import android.annotation.SuppressLint;
|
||||||
import android.os.*;
|
import android.os.*;
|
||||||
import android.util.*;
|
import android.util.*;
|
||||||
import android.view.*;
|
import android.view.*;
|
||||||
import android.view.View.*;
|
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
@ -38,7 +37,7 @@ public class JavaGUILauncherActivity extends BaseActivity implements View.OnTouc
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.install_mod);
|
setContentView(R.layout.activity_java_gui_launcher);
|
||||||
|
|
||||||
Logger.getInstance().reset();
|
Logger.getInstance().reset();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import android.content.Intent;
|
||||||
import android.os.*;
|
import android.os.*;
|
||||||
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
import net.kdt.pojavlaunch.customcontrols.*;
|
import net.kdt.pojavlaunch.customcontrols.*;
|
||||||
import net.kdt.pojavlaunch.prefs.*;
|
import net.kdt.pojavlaunch.prefs.*;
|
||||||
import net.kdt.pojavlaunch.utils.MCOptionUtils;
|
import net.kdt.pojavlaunch.utils.MCOptionUtils;
|
||||||
|
|
@ -15,7 +13,6 @@ import java.io.*;
|
||||||
|
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
||||||
import static net.kdt.pojavlaunch.utils.MCOptionUtils.getMcScale;
|
|
||||||
|
|
||||||
public class MainActivity extends BaseMainActivity {
|
public class MainActivity extends BaseMainActivity {
|
||||||
public static ControlLayout mControlLayout;
|
public static ControlLayout mControlLayout;
|
||||||
|
|
@ -25,7 +22,7 @@ public class MainActivity extends BaseMainActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
initLayout(R.layout.main_with_customctrl);
|
initLayout(R.layout.activity_basemain);
|
||||||
|
|
||||||
// Set the sustained performance mode for available APIs
|
// Set the sustained performance mode for available APIs
|
||||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ public class PojavLauncherActivity extends BaseLauncherActivity
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.launcher_main_v4);
|
setContentView(R.layout.activity_pojav_launcher);
|
||||||
|
|
||||||
//Boilerplate linking/initialisation
|
//Boilerplate linking/initialisation
|
||||||
viewPager = findViewById(R.id.launchermainTabPager);
|
viewPager = findViewById(R.id.launchermainTabPager);
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,7 @@ import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.res.AssetManager;
|
import android.content.res.AssetManager;
|
||||||
import android.graphics.Bitmap;
|
|
||||||
import android.graphics.BitmapFactory;
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.BitmapDrawable;
|
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
|
@ -22,7 +19,6 @@ import android.text.Html;
|
||||||
import android.text.SpannableString;
|
import android.text.SpannableString;
|
||||||
import android.text.Spanned;
|
import android.text.Spanned;
|
||||||
import android.text.style.StyleSpan;
|
import android.text.style.StyleSpan;
|
||||||
import android.util.Base64;
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
@ -171,7 +167,7 @@ public class PojavLoginActivity extends BaseActivity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void uiInit() {
|
private void uiInit() {
|
||||||
setContentView(R.layout.launcher_login_v3);
|
setContentView(R.layout.activity_pojav_login);
|
||||||
|
|
||||||
Spinner spinnerChgLang = findViewById(R.id.login_spinner_language);
|
Spinner spinnerChgLang = findViewById(R.id.login_spinner_language);
|
||||||
|
|
||||||
|
|
@ -494,14 +490,14 @@ public class PojavLoginActivity extends BaseActivity {
|
||||||
|
|
||||||
final Dialog accountDialog = new Dialog(PojavLoginActivity.this);
|
final Dialog accountDialog = new Dialog(PojavLoginActivity.this);
|
||||||
|
|
||||||
accountDialog.setContentView(R.layout.simple_account_list_holder);
|
accountDialog.setContentView(R.layout.dialog_select_account);
|
||||||
|
|
||||||
LinearLayout accountListLayout = accountDialog.findViewById(R.id.accountListLayout);
|
LinearLayout accountListLayout = accountDialog.findViewById(R.id.accountListLayout);
|
||||||
LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);
|
LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);
|
||||||
|
|
||||||
for (int accountIndex = 0; accountIndex < accountArr.length; accountIndex++) {
|
for (int accountIndex = 0; accountIndex < accountArr.length; accountIndex++) {
|
||||||
String s = accountArr[accountIndex];
|
String s = accountArr[accountIndex];
|
||||||
View child = inflater.inflate(R.layout.simple_account_list_item, accountListLayout,false);
|
View child = inflater.inflate(R.layout.item_minecraft_account, accountListLayout,false);
|
||||||
TextView accountName = child.findViewById(R.id.accountitem_text_name);
|
TextView accountName = child.findViewById(R.id.accountitem_text_name);
|
||||||
ImageButton removeButton = child.findViewById(R.id.accountitem_button_remove);
|
ImageButton removeButton = child.findViewById(R.id.accountitem_button_remove);
|
||||||
ImageView imageView = child.findViewById(R.id.account_head);
|
ImageView imageView = child.findViewById(R.id.account_head);
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ public class EditControlButtonPopup {
|
||||||
protected void initializeEditDialog(Context ctx){
|
protected void initializeEditDialog(Context ctx){
|
||||||
//Create the editing dialog
|
//Create the editing dialog
|
||||||
LayoutInflater layoutInflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
LayoutInflater layoutInflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
mRootView = layoutInflater.inflate(R.layout.control_button_setting,null);
|
mRootView = layoutInflater.inflate(R.layout.dialog_control_button_setting,null);
|
||||||
|
|
||||||
mBuilder = new AlertDialog.Builder(ctx);
|
mBuilder = new AlertDialog.Builder(ctx);
|
||||||
mBuilder.setTitle(ctx.getResources().getString(R.string.customctrl_edit, mProperties.name));
|
mBuilder.setTitle(ctx.getResources().getString(R.string.customctrl_edit, mProperties.name));
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class ConsoleFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
super.onCreateView(inflater, container, savedInstanceState);
|
super.onCreateView(inflater, container, savedInstanceState);
|
||||||
View view = inflater.inflate(R.layout.lmaintab_consolelog, container, false);
|
View view = inflater.inflate(R.layout.fragment_console_log, container, false);
|
||||||
|
|
||||||
mConsoleView = (TextView) view.findViewById(R.id.lmaintabconsoleLogTextView);
|
mConsoleView = (TextView) view.findViewById(R.id.lmaintabconsoleLogTextView);
|
||||||
mConsoleView.setTypeface(Typeface.MONOSPACE);
|
mConsoleView.setTypeface(Typeface.MONOSPACE);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ public class CrashFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
super.onCreateView(inflater, container, savedInstanceState);
|
super.onCreateView(inflater, container, savedInstanceState);
|
||||||
return inflater.inflate(R.layout.lmaintab_crashlog, container, false);
|
return inflater.inflate(R.layout.fragment_crash_log, container, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public class LauncherFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
super.onCreateView(inflater, container, savedInstanceState);
|
super.onCreateView(inflater, container, savedInstanceState);
|
||||||
mRootView = inflater.inflate(R.layout.lmaintab_news, container, false);
|
mRootView = inflater.inflate(R.layout.fragment_news, container, false);
|
||||||
return mRootView;
|
return mRootView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public class RTRecyclerViewAdapter extends RecyclerView.Adapter<RTRecyclerViewAd
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public RTViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public RTViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
View recyclableView = LayoutInflater.from(parent.getContext()).inflate(R.layout.multirt_recyclable_view,parent,false);
|
View recyclableView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_multirt_runtime,parent,false);
|
||||||
return new RTViewHolder(recyclableView);
|
return new RTViewHolder(recyclableView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ public class RTSpinnerAdapter implements SpinnerAdapter {
|
||||||
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
||||||
View view = convertView != null?
|
View view = convertView != null?
|
||||||
convertView:
|
convertView:
|
||||||
LayoutInflater.from(mContext).inflate(R.layout.multirt_recyclable_view,parent,false);
|
LayoutInflater.from(mContext).inflate(R.layout.item_multirt_runtime,parent,false);
|
||||||
|
|
||||||
Runtime runtime = mRuntimes.get(position);
|
Runtime runtime = mRuntimes.get(position);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ public class ControlOffsetPreference extends Preference {
|
||||||
|
|
||||||
// Prepare Alert dialog
|
// Prepare Alert dialog
|
||||||
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getContext());
|
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getContext());
|
||||||
dialogBuilder.setView(R.layout.control_offset_preference_dialog);
|
dialogBuilder.setView(R.layout.dialog_control_offset_preference);
|
||||||
dialogBuilder.setTitle(getContext().getString(R.string.control_offset_title));
|
dialogBuilder.setTitle(getContext().getString(R.string.control_offset_title));
|
||||||
|
|
||||||
dialogBuilder.setPositiveButton(android.R.string.ok, null);
|
dialogBuilder.setPositiveButton(android.R.string.ok, null);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ import net.kdt.pojavlaunch.value.PerVersionConfig;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -37,7 +36,7 @@ public class PerVersionConfigDialog{
|
||||||
|
|
||||||
public PerVersionConfigDialog(Context ctx) {
|
public PerVersionConfigDialog(Context ctx) {
|
||||||
mContext = ctx;
|
mContext = ctx;
|
||||||
mRootView = LayoutInflater.from(mContext).inflate(R.layout.pvc_popup,null);
|
mRootView = LayoutInflater.from(mContext).inflate(R.layout.dialog_per_version_control,null);
|
||||||
mJvmSpinner = mRootView.findViewById(R.id.pvc_javaVm);
|
mJvmSpinner = mRootView.findViewById(R.id.pvc_javaVm);
|
||||||
mRendererSpinner = mRootView.findViewById(R.id.pvc_renderer);
|
mRendererSpinner = mRootView.findViewById(R.id.pvc_renderer);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue