Commit 99924be7 authored by Christof Wolke's avatar Christof Wolke

änderungenden am dateformat und direkt nach unten scrollen, wenn activity is called

parent 324d35c1
......@@ -78,7 +78,7 @@ public class CommentListAdapter extends ListAdapter {
private String getTime(String timestamp) {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat strDateFormat = new SimpleDateFormat("d MMM hh:mm");
SimpleDateFormat strDateFormat = new SimpleDateFormat("d MMM HH:mm");
try {
Date date = format.parse(timestamp);
return strDateFormat.format(date);
......
......@@ -12,6 +12,7 @@ import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.Toast;
import java.util.ArrayList;
......@@ -43,6 +44,8 @@ public class ForumActivity extends AppCompatActivity implements ListCommunicator
/** GUI **/
private EditText yourMessage;
private ImageButton sendButton;
private View v;
protected LocalStorage localStorage;
......@@ -154,6 +157,7 @@ public class ForumActivity extends AppCompatActivity implements ListCommunicator
});
}
private void setCommentList(CommentList comments) {
this.comments = comments;
}
......
......@@ -7,7 +7,9 @@
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:transcriptMode="alwaysScroll"
android:stackFromBottom="true">
</ListView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment