how call how call this view from my java code for show the white line
<View
android:id="@+id/linea"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="#ffffff" />
this is onCreate
View line;
line = (View) findViewById(R.id.linea);
when select the button
boton.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if(tipoo == 0){
double gr[] = con.Peso(y);
text1.setText(gr[0] + " kg\n\n"+ line+ gr[1]+ " gramos\n\n" + line+ +gr[2] +
" onzas\n\n"+gr[3]+" libras\n\n" + line+ +gr[4]+" Toneladas");
}
}
to separate with lines the text from on java code example
Hola ----------- (this is the view of xml code) hi
" text\n"+ (line) +"text"+
I have bad english sorry :(