Hey I need help.. My edittexts in a mod im making is smashing together on the same line, making it impossible to edit them in game. Please help me. Here is my code, I have tried \n and more without luck, they always end up being on the same line. Thanks for any help!
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
try{
var dialog = new android.app.Dialog(ctx);
var dLayout = new android.widget.LinearLayout(ctx);
var sTipM = new android.widget.EditText(ctx);
var setYVel = new android.widget.EditText(ctx);
var setTime = new android.widget.EditText(ctx);
var setHealth = new android.widget.EditText(ctx);
var applybtn = new android.widget.Button(ctx);
var exit = new android.widget.Button(ctx);
dLayout.addView(sTipM);
dLayout.addView(setYVel);
dLayout.addView(setTime);
dLayout.addView(setHealth);
dLayout.addView(applybtn);
dLayout.addView(exit);
dialog.setContentView(dLayout);
I hope I have provided enough code; I dont want to spoil the mod!
Whar do you mean a visual of 'blank input blank'? Whenever I need to have multiple editTexts in the same layout, I usually separate them with TextViews. If this doesn't help, feel free to send me a PM with a screenshot of what your screen looks like.
Hey I need help.. My edittexts in a mod im making is smashing together on the same line, making it impossible to edit them in game. Please help me. Here is my code, I have tried \n and more without luck, they always end up being on the same line. Thanks for any help!
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();ctx.runOnUiThread(new java.lang.Runnable({ run: function(){try{var dialog = new android.app.Dialog(ctx);var dLayout = new android.widget.LinearLayout(ctx);var sTipM = new android.widget.EditText(ctx);var setYVel = new android.widget.EditText(ctx);var setTime = new android.widget.EditText(ctx);var setHealth = new android.widget.EditText(ctx);var applybtn = new android.widget.Button(ctx);var exit = new android.widget.Button(ctx);dLayout.addView(sTipM);dLayout.addView(setYVel);dLayout.addView(setTime);dLayout.addView(setHealth);dLayout.addView(applybtn);dLayout.addView(exit);dialog.setContentView(dLayout);
I hope I have provided enough code; I dont want to spoil the mod!And I assure you- No syntax errors!
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); ctx.runOnUiThread(new java.lang.Runnable({ run: function(){ try{ var dialog = new android.app.Dialog(ctx); var dLayout = new android.widget.LinearLayout(ctx); var sTipM = new android.widget.EditText(ctx); var setYVel = new android.widget.EditText(ctx); var setTime = new android.widget.EditText(ctx); var setHealth = new android.widget.EditText(ctx); var applybtn = new android.widget.Button(ctx); var exit = new android.widget.Button(ctx); dLayout.addView(sTipM); dLayout.addView(setYVel); dLayout.addView(setTime); dLayout.addView(setHealth); dLayout.addView(applybtn); dLayout.addView(exit); dialog.setContentView(dLayout);I hope I have provided enough code; I dont want to spoil the mod!
And I assure you- No syntax errors!
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
What I want it to look like:
|_______Input__________|
|_______Input__________|
|_______Input__________|
|_______Input__________|
[======button========]
What it looks like:
|_______Input__________||_______Input__________||_______Input__
and the second half I cant even seee cuz it goes outside of the dialog
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net
Why?
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]