Add view to a vertical LinearLayout at bottom (programmatically)
问题 I need to add views to a vertical Linearlayout at bottom programmatically. (Yes we know that, it's in the title). Ok : i can add views to the linearlayout, it's not a problem. But it's for a chat, so i need to add views at the bottom for each message which is displayed. I don't find any attributes to the LinearLayout to do that. Adding messages : mHandler.post(new Runnable() { @Override public void run() { TextView message = new TextView(ChatActivity.this); String[] splitMessage = text.split(