I'm basically not able to set the value in the field.
I'm doing this, declare the variables:
Restaurante restaurante;
@ViewById
TextView nmRestaurante;
@ViewById
ImageView imgLogoRestaurante;
@ViewById
RatingBar ratingBar;
@ViewById
ListView lisComentarios;
@ViewById
LinearLayout lytEmptyComentarios;
List<Comentarios> lstComentarios;
GenericAdapter<Comentarios> adapter;
Then the method onCreate
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comentarios);
restaurante = Globales.getRestauranteAtual();
View v = findViewById(R.id.toolbar_title);
nmRestaurante = (TextView) findViewById(R.id.nmRestaurante);
imgLogoRestaurante = (ImageView) findViewById(R.id.imgLogoRestaurante);
ratingBar = (RatingBar) findViewById(R.id.ratingBar);
lisComentarios = (ListView) findViewById(R.id.lisComentarios);
lytEmptyComentarios = (LinearLayout) findViewById(R.id.lytEmptyComentarios);
TextView toolbarTitle = (TextView) v;
toolbarTitle.setText(restaurante.getNomeRestaurante());
nmRestaurante.setText(restaurante.getNomeRestaurante());
Picasso.with(getApplicationContext()).load(restaurante.getUrlImagem()).into(imgLogoRestaurante);
ratingBar.setRating(Float.valueOf(String.valueOf(restaurante
.getMedia())));
carregarComentarios(restaurante.getCodigoRestaurante());
}
In the log there is no error, and even then the fields are white