I want to add an image from the company location below the information about it, but I also want to add text below the image. I have tried a code that I've found on internet but what it does is that the image go to the left side and the text on the right
Here is the code:
private TextView txt_contactos;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contactos);
txt_contactos = (TextView) findViewById(R.id.txt_contacto);
iv_Voltar = (ImageView) findViewById(R.id.iv_voltar);
txt_contactos.setText("Pode contactar a empresa Juvex das seguintes formas:\n" +
"\n" +
"Morada: Estrada Nacional 8 – Edifício Vale de Canas, 2560 – 254, Vale de Canas, Torres Vedras\n" +
"\n" +
"Telefone: 261 334 540\n" +
"\n" +
"Fax: 261 315 437\n" +
"\n" +
"Email: geral@juvex.pt\n" +
"\n" +
"\n" +
"\n" +
"Ou pode contactar a empresa Juvex 3 das seguintes formas:\n" +
"\n" +
"\n" +
"Morada: Praceta Gil Eanes nº 2, Parque Residencial do Almirante, 2660 – 444, Santo António dos Cavaleiros\n" +
"\n" +
"Telefone: 219 379 340\n" +
"\n" +
"Fax: 219 379 349\n" +
"\n" +
"Email: geral@juvex3.pt");
txt_contactos.setCompoundDrawablesWithIntrinsicBounds(
R.drawable.localizacaojuvex1, 0, 0, 0);
I have tried to insert the image code that is in the end, on the middle but it hasn't worked, don't even show the image.
Thank you in advance.