diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-22 09:01:51 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-22 09:01:51 +0100 |
commit | 482485d93dbca6f556085cb43efc9a2cf55a583a (patch) | |
tree | 865e1de11795b0f00191f594944589c884f62ecb /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | 4c6172aa80d5b8a8d12f45d1d91ce4e778d9412a (diff) |
Dodat adapter i fragmenti za prikaz pratilaca i pracenja.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml | 87 | ||||
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml | 27 |
2 files changed, 114 insertions, 0 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml new file mode 100644 index 0000000..bc43f1b --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/follower_item.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/tvFolloewItemUsername" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginBottom="10dp"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + + <androidx.cardview.widget.CardView + android:id="@+id/cvFragmentHomePageProfile" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_gravity="center" + + android:elevation="10dp" + app:cardCornerRadius="250dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <ImageView + + android:id="@+id/tvFragmentProfileProfilePicture" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:elevation="10dp" + android:scaleType="centerCrop" + android:src="@drawable/ic_baseline_person_24" + tools:ignore="ContentDescription" /> + </androidx.cardview.widget.CardView> + + + <TextView + android:id="@+id/tvFollowerItemName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginHorizontal="15dp" + android:layout_marginStart="24dp" + android:layout_marginTop="28dp" + android:text="Petar Petrovic" + android:textSize="17sp" + android:textStyle="bold" + app:layout_constraintEnd_toStartOf="@+id/materialButton" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toEndOf="@+id/cvFragmentHomePageProfile" + app:layout_constraintTop_toTopOf="parent"> + + </TextView> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Petar Petrovic" + android:textSize="15sp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/materialButton" + app:layout_constraintHorizontal_bias="0.656" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/tvFollowerItemName" + app:layout_constraintVertical_bias="0.0" /> + + <ImageButton + + android:id="@+id/materialButton" + android:layout_width="101dp" + android:layout_height="39dp" + android:layout_marginEnd="16dp" + android:background="@drawable/rounded_transparent_button" + android:foreground="@drawable/button_follow" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.508" + tools:ignore="TouchTargetSizeCheck" /> + + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml new file mode 100644 index 0000000..81f93a8 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_following.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".Fragments.FragmentFollowing"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:text="Prati" + android:textSize="20sp" + android:textStyle="bold" /> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentShowFollowing" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file |