diff options
| -rw-r--r-- | Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentShowPosts.kt | 3 | ||||
| -rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml | 2 | 
2 files changed, 2 insertions, 3 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentShowPosts.kt b/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentShowPosts.kt index 807cbde..73744d4 100644 --- a/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentShowPosts.kt +++ b/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentShowPosts.kt @@ -46,7 +46,6 @@ class FragmentShowPosts : Fragment() {              override fun onResponse(call: Call<MutableList<PostPreview>?>, response: Response<MutableList<PostPreview>?>) {                  if(response.isSuccessful){                      posts=response.body()!! -                    Log.d("main",posts[0].toString())                      recyclerView?.adapter=ShowPostsAdapter(requireActivity(),posts)                      Toast.makeText(                          activity, "prosao zahtev", Toast.LENGTH_LONG @@ -96,7 +95,7 @@ class FragmentShowPosts : Fragment() {          val rootView =  inflater?.inflate(R.layout.fragment_show_posts, container, false)          recyclerView = rootView?.findViewById(R.id.rvMain)          // set recyclerView attributes -        recyclerView?.setHasFixedSize(false) +        recyclerView?.setHasFixedSize(true)          recyclerView?.layoutManager = layoutManagerVar          recyclerView?.adapter = adapterVar          return rootView diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml index 4565b74..02512d4 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml @@ -72,7 +72,7 @@      <androidx.recyclerview.widget.RecyclerView          android:id="@+id/rvMain"          android:layout_width="match_parent" -        android:layout_height="823dp" +        android:layout_height="wrap_content"          app:layout_constraintStart_toStartOf="parent"          app:layout_constraintTop_toTopOf="parent" >  | 
