From 55a27f240fc871c658eef96894501cce3233ce6e Mon Sep 17 00:00:00 2001 From: TAMARA JERINIC Date: Mon, 14 Nov 2022 23:57:06 +0100 Subject: Promenjen fragment_profile.xml. --- .../brzodolokacije/Fragments/FragmentProfile.kt | 10 ++- .../app/src/main/res/layout/fragment_profile.xml | 85 ++++++++++++++-------- 2 files changed, 60 insertions(+), 35 deletions(-) (limited to 'Client') diff --git a/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentProfile.kt b/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentProfile.kt index 198e125..92a6824 100644 --- a/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentProfile.kt +++ b/Client/BrzoDoLokacije/app/src/main/java/com/example/brzodolokacije/Fragments/FragmentProfile.kt @@ -7,6 +7,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button +import android.widget.ImageView import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity @@ -17,6 +18,7 @@ import com.example.brzodolokacije.Models.UserReceive import com.example.brzodolokacije.R import com.example.brzodolokacije.Services.RetrofitHelper import com.example.brzodolokacije.Services.SharedPreferencesHelper +import com.google.android.material.button.MaterialButton import com.google.android.material.imageview.ShapeableImageView import okhttp3.MediaType.Companion.toMediaTypeOrNull import okhttp3.MultipartBody @@ -51,8 +53,8 @@ class FragmentProfile : Fragment(R.layout.fragment_profile) { private lateinit var showMyPosts: Button private lateinit var showMyData: Button private lateinit var showMyRecensions: Button - private lateinit var profilePicture: ShapeableImageView - private lateinit var profilePicturePlus: ShapeableImageView + private lateinit var profilePicture: ImageView + private lateinit var profilePicturePlus: MaterialButton override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? @@ -67,8 +69,8 @@ class FragmentProfile : Fragment(R.layout.fragment_profile) { showMyPosts=view.findViewById(R.id.btnFragmentProfileShowMyPosts) as Button showMyData=view.findViewById(R.id.btnFragmentProfileShowMyData) as Button showMyRecensions=view.findViewById(R.id.btnFragmentProfileShowMyRecensions) as Button - profilePicture=view.findViewById(R.id.tvFragmentProfileProfilePicture) as ShapeableImageView - profilePicturePlus=view.findViewById(R.id.tvFragmentProfileProfilePicturePlus) as ShapeableImageView + profilePicture=view.findViewById(R.id.tvFragmentProfileProfilePicture) as ImageView + profilePicturePlus=view.findViewById(R.id.btnFragmentProfileProfilePicturePlus) as MaterialButton //podaci iz baze diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml index 19e6212..c75e1e4 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml @@ -6,7 +6,6 @@ android:layout_height="match_parent" tools:context=".Fragments.FragmentProfile"> - - - + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.887"> + + + + + + + - - - -