I am using below code to set text on the canvas..But now i want to know how to set the position of the text at the bottom of the layout..
LinearLayout layout = new LinearLayout(getContext());
TextView textView = new TextView(getContext());
textView.setVisibility(View.VISIBLE);
textView.setText(DetailsActivity.temp_desc);
textView.setLines(10);
textView.setSingleLine(false);
layout.addView(textView);
layout.measure(canvas.getWidth(), canvas.getHeight());
layout.layout(0,100, canvas.getWidth(), canvas.getHeight());
layout.draw(canvas);
Using this code i am getting text on position of (0,0) but i want to set it to (0,400) how can i achieve my requirement?
here is two sample code for draw text on canvas..
1)Draw TextView on Canvas
2)Draw text on canvas