From 1928c1f20e12355bb2af8684a8d32a559fbbf34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20L=C3=A1szl=C3=B3?= Date: Sat, 4 May 2024 19:30:34 +0200 Subject: [PATCH] basic profile layout --- .../dowerx/quack/PostRecyclerViewAdapter.java | 3 ++ .../com/dowerx/quack/ProfileFragment.java | 48 +++++++++++++++++++ .../com/dowerx/quack/SwitcherActivity.java | 9 +++- .../java/com/dowerx/quack/model/Post.java | 14 +++++- app/src/main/res/layout/fragment_post.xml | 16 ++++++- app/src/main/res/layout/fragment_profile.xml | 37 ++++++++++++++ app/src/main/res/values/strings.xml | 2 + 7 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 app/src/main/java/com/dowerx/quack/ProfileFragment.java create mode 100644 app/src/main/res/layout/fragment_profile.xml diff --git a/app/src/main/java/com/dowerx/quack/PostRecyclerViewAdapter.java b/app/src/main/java/com/dowerx/quack/PostRecyclerViewAdapter.java index a949aae..b1c26a5 100644 --- a/app/src/main/java/com/dowerx/quack/PostRecyclerViewAdapter.java +++ b/app/src/main/java/com/dowerx/quack/PostRecyclerViewAdapter.java @@ -30,6 +30,7 @@ public class PostRecyclerViewAdapter extends RecyclerView.Adapter @@ -24,4 +24,16 @@ android:text="some random placeeholder post content" app:layout_constraintTop_toBottomOf="@+id/username" android:layout_margin="20dp"/> + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_profile.xml b/app/src/main/res/layout/fragment_profile.xml new file mode 100644 index 0000000..9270ec5 --- /dev/null +++ b/app/src/main/res/layout/fragment_profile.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0322550..3c46a03 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -12,4 +12,6 @@ Profile Search placeholder_name + + Hello blank fragment \ No newline at end of file