Layout profile changes + half of a reloader

This commit is contained in:
Felix Atsma
2017-06-28 15:28:40 +02:00
parent 2621062c60
commit 93434a981f
4 changed files with 32 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ public class TimelineFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container, public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_timeline, container, false); View view = inflater.inflate(R.layout.fragment_timeline, container, false);
listView = (ListView) view.findViewById(R.id.listview); listView = (ListView) view.findViewById(R.id.list);
downloadClass = new DownloadClass(getActivity()); downloadClass = new DownloadClass(getActivity());
downloadClass.getPostsFromServer(); downloadClass.getPostsFromServer();

View File

@@ -13,7 +13,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:padding="16dp"> android:padding="0dp">
</FrameLayout> </FrameLayout>
<android.support.design.widget.BottomNavigationView <android.support.design.widget.BottomNavigationView

View File

@@ -5,11 +5,19 @@
android:orientation="vertical" android:orientation="vertical"
tools:context="nl.myhyvesbookplus.tagram.TimelineFragment"> tools:context="nl.myhyvesbookplus.tagram.TimelineFragment">
<ListView <android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/listview" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swiperefresh"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView> </ListView>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout> </LinearLayout>

View File

@@ -3,6 +3,10 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<Space
android:layout_width="match_parent"
android:layout_height="15dp" />
<ImageView <ImageView
android:id="@+id/timeline_image_profile" android:id="@+id/timeline_image_profile"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -13,21 +17,31 @@
android:id="@+id/comment_timeline_profile" android:id="@+id/comment_timeline_profile"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Hallo Ik ben een comment!" /> android:text="Hallo Ik ben een comment!" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp"> android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal">
<TextView <Button
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:clickable="false"
android:text="@string/niet_slecht"/> android:text="@string/niet_slecht"/>
<TextView <TextView
android:id="@+id/niet_slecht_count_profile" android:id="@+id/niet_slecht_count_profile"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center"
android:textSize="20dp"
android:padding="10dp"
android:text="10" /> android:text="10" />
</LinearLayout> </LinearLayout>
<Space
android:layout_width="match_parent"
android:layout_height="15dp" />
</LinearLayout> </LinearLayout>