You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am new to android and the problem I have is that the next button cuts the background as shown in the image and when it is the final button, the icon does not appear and the text moves to the left, being cut and not What part of the implementation am I failing, I upload the implementation of the `get view model (int) code
Thank you very much for reading and help me.
CODE :
public StepViewModel getViewModel(@IntRange(from = 0) int position) {
StepViewModel.Builder builder = new StepViewModel.Builder(context);
switch (position) {
case 0:
builder
.setEndButtonLabel(context.getString(R.string.botonSiguente))
.setBackButtonLabel(context.getString(R.string.botonSalir))
.setNextButtonEndDrawableResId(R.drawable.ic_next)
.setBackButtonStartDrawableResId(StepViewModel.NULL_DRAWABLE);
break;
case 1:
builder
.setEndButtonLabel(context.getString(R.string.botonSiguente))
.setBackButtonLabel(context.getString(R.string.botonAtras))
.setNextButtonEndDrawableResId(R.drawable.ic_next)
.setBackButtonStartDrawableResId(R.drawable.ic_back);
break;
case 2:
builder
.setEndButtonLabel(context.getString(R.string.botonFinalizar))
.setBackButtonLabel(context.getString(R.string.botonAtras))
.setBackButtonStartDrawableResId(R.drawable.ic_back)
.setNextButtonEndDrawableResId(R.drawable.ic_check);
break;
Hello, I am new to android and the problem I have is that the next button cuts the background as shown in the image and when it is the final button, the icon does not appear and the text moves to the left, being cut and not What part of the implementation am I failing, I upload the implementation of the `get view model (int) code
Thank you very much for reading and help me.
CODE :
public StepViewModel getViewModel(@IntRange(from = 0) int position) {
StepViewModel.Builder builder = new StepViewModel.Builder(context);
switch (position) {
case 0:
builder
.setEndButtonLabel(context.getString(R.string.botonSiguente))
.setBackButtonLabel(context.getString(R.string.botonSalir))
.setNextButtonEndDrawableResId(R.drawable.ic_next)
.setBackButtonStartDrawableResId(StepViewModel.NULL_DRAWABLE);
break;
case 1:
builder
.setEndButtonLabel(context.getString(R.string.botonSiguente))
.setBackButtonLabel(context.getString(R.string.botonAtras))
.setNextButtonEndDrawableResId(R.drawable.ic_next)
.setBackButtonStartDrawableResId(R.drawable.ic_back);
break;
case 2:
builder
.setEndButtonLabel(context.getString(R.string.botonFinalizar))
.setBackButtonLabel(context.getString(R.string.botonAtras))
.setBackButtonStartDrawableResId(R.drawable.ic_back)
.setNextButtonEndDrawableResId(R.drawable.ic_check);
break;
The text was updated successfully, but these errors were encountered: