diff options
Diffstat (limited to 'Client')
3 files changed, 213 insertions, 138 deletions
| diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_change_user_data.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_change_user_data.xml index 08877d5..43bad3c 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_change_user_data.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_change_user_data.xml @@ -130,6 +130,8 @@          android:layout_height="wrap_content"          android:layout_marginTop="140dp"          android:text="Izmeni lozinku" +        app:shapeAppearanceOverlay="@style/Circular" +          app:layout_constraintEnd_toEndOf="parent"          app:layout_constraintStart_toStartOf="parent"          app:layout_constraintTop_toBottomOf="@+id/editTextTextPersonName3" /> @@ -139,6 +141,8 @@          android:layout_width="0dp"          android:layout_height="wrap_content"          android:layout_marginTop="4dp" +        app:shapeAppearanceOverlay="@style/Circular" +          android:text="Sačuvaj izmene"          app:layout_constraintEnd_toEndOf="parent"          app:layout_constraintStart_toStartOf="parent" diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml index cbcafc5..9f5dd96 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_user_profile.xml @@ -14,8 +14,8 @@          <ImageView              android:id="@+id/imageView3" -            android:layout_width="match_parent" -            android:layout_height="250dp" +            android:layout_width="447dp" +            android:layout_height="180dp"              android:foreground="@drawable/b3"              android:foregroundGravity="center_vertical|center|center_horizontal|fill"              android:src="@drawable/b3" @@ -28,15 +28,15 @@              android:id="@+id/tvFragmentProfileInfoContainer"              android:layout_width="0dp" -            android:layout_height="240dp" +            android:layout_height="199dp"              android:layout_marginStart="20dp" -            android:layout_marginTop="120dp" +            android:layout_marginTop="90dp"              android:layout_marginEnd="20dp"              android:adjustViewBounds="true" -            android:background="@drawable/profile_view_background" - +            android:background="#E8FFFFFF"              android:elevation="1dp"              android:scaleType="fitEnd" +              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintHorizontal_bias="0.0"              app:layout_constraintStart_toStartOf="parent" @@ -46,10 +46,10 @@          <androidx.cardview.widget.CardView              android:id="@+id/cvFragmentHomePageProfile" -            android:layout_width="130dp" -            android:layout_height="130dp" +            android:layout_width="120dp" +            android:layout_height="120dp"              android:layout_gravity="center" -            android:layout_marginTop="60dp" +            android:layout_marginTop="24dp"              android:elevation="10dp"              app:cardCornerRadius="250dp"              app:layout_constraintEnd_toEndOf="parent" @@ -99,7 +99,6 @@              android:backgroundTint="#FFFFFF"              android:stateListAnimator="@null"              android:text="Podaci" -              android:textColor="@color/cardview_dark_background"              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintHorizontal_bias="1.0" @@ -121,8 +120,8 @@          <FrameLayout              android:id="@+id/flActivityProfileFragmentContainer" -            android:layout_width="409dp" -            android:layout_height="319dp" +            android:layout_width="match_parent" +            android:layout_height="0dp"              app:layout_constraintBottom_toBottomOf="parent"              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintHorizontal_bias="0.0" @@ -132,135 +131,155 @@          <TableLayout -            android:layout_width="363dp" - -            android:layout_height="wrap_content" -            android:layout_marginStart="30dp" -            android:layout_marginTop="5dp" -            android:layout_marginEnd="30dp" -            android:layout_marginBottom="8dp" +            android:layout_width="350dp" +            android:layout_height="140dp" +            android:layout_marginStart="35dp" +            android:layout_marginEnd="35dp"              android:elevation="1dp"              android:numColumns="3" - -            android:stretchColumns="1"              app:layout_constraintBottom_toBottomOf="@+id/tvFragmentProfileInfoContainer"              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintStart_toStartOf="parent" -            app:layout_constraintTop_toBottomOf="@+id/cvFragmentHomePageProfile" -            app:layout_constraintVertical_bias="0.35000002"> +            app:layout_constraintTop_toTopOf="@+id/tvFragmentProfileInfoContainer" +            app:layout_constraintVertical_bias="0.88">              <TableRow -                android:layout_width="match_parent" +                                android:layout_width="match_parent"                  android:layout_height="match_parent" -                android:layout_column="1"> +                android:layout_column="1" +                >                  <TextView                      android:id="@+id/tvActivityUserProfileName"                      android:layout_width="wrap_content"                      android:layout_height="match_parent" -                    android:layout_column="1"                      android:layout_gravity="center"                      android:text="Petar Petrović" -                    android:textStyle="bold" -                    android:textSize="23sp" /> +                    android:textSize="23sp" +                    android:textStyle="bold" />              </TableRow> -            <TableRow android:layout_marginTop="20dp"> - +            <TableRow +                android:gravity="center" +                android:layout_marginLeft="10dp" +                android:layout_marginRight="10dp" +                android:layout_marginTop="5dp"> +            <LinearLayout +                android:orientation="horizontal" +                android:layout_height="wrap_content" +                android:layout_width="wrap_content" +                android:weightSum="3" +                >                  <TextView                      android:id="@+id/tvFragmentUserProfilePosts" -                    android:layout_width="105dp" +                    android:layout_weight="1" +                    android:backgroundTint="@color/white"                      android:gravity="center" -                    android:text="OBJAVE" +                    android:layout_width="110dp" +                    android:layout_height="wrap_content" +                    android:textSize="14sp"                      android:stateListAnimator="@null" -                    android:backgroundTint="@color/white" -                    android:textColor="#757471"/> +                    android:text="OBJAVE" +                    android:textColor="#757471" />                  <Button                      android:id="@+id/tvActivityUserProfileFollowers"                      android:layout_width="110dp" -                    android:layout_height="28dp" +                    android:layout_height="27dp"                      android:layout_margin="0dp"                      android:backgroundTint="@color/white"                      android:clickable="true" +                    android:layout_weight="1"                      android:gravity="center"                      android:padding="0dp"                      android:stateListAnimator="@null"                      android:text="PRATIOCI"                      android:textColor="#757471" - +                    android:textSize="14sp"                      tools:ignore="TouchTargetSizeCheck" />                  <Button +                    android:textSize="14sp"                      android:id="@+id/tvActivityUserProfileFollow"                      android:layout_width="110dp" -                    android:layout_height="28dp" +                    android:layout_height="27dp"                      android:layout_margin="0dp"                      android:backgroundTint="@color/white"                      android:clickable="true" +                    android:layout_weight="1"                      android:gravity="center"                      android:padding="0dp"                      android:stateListAnimator="@null"                      android:text="PRAĆENJA"                      android:textColor="#757471"                      tools:ignore="TouchTargetSizeCheck" /> +            </LinearLayout> +              </TableRow>              <TableRow -                android:layout_height="wrap_content" -                > +                android:layout_marginLeft="10dp" +                android:layout_marginRight="10dp" +                android:layout_gravity="center" +                android:layout_height="wrap_content"> +            <LinearLayout>                  <TextView                      android:id="@+id/tvActivityUserProfilePostsNo"                      android:layout_width="110dp"                      android:layout_height="wrap_content"                      android:gravity="center"                      android:text="156" +                      android:textSize="20dp"                      android:textStyle="bold" />                  <TextView -                    android:id="@+id/tvActivityUserProfileFollowersNo"                      android:layout_width="110dp" +                    android:layout_height="wrap_content" +                    android:id="@+id/tvActivityUserProfileFollowersNo"                      android:gravity="center"                      android:text="50"                      android:textSize="20dp" -                    android:textStyle="bold"/> +                    android:textStyle="bold" />                  <TextView                      android:id="@+id/tvActivityUserProfileFollowNo"                      android:layout_width="110dp" +                    android:layout_height="wrap_content"                      android:gravity="center"                      android:text="40"                      android:textSize="20dp" -                    android:textStyle="bold"/> - +                    android:textStyle="bold" /> +            </LinearLayout>              </TableRow> -            <TableRow -                android:layout_height="wrap_content" -                android:layout_marginTop="10dp" -                > -                <androidx.constraintlayout.widget.ConstraintLayout android:layout_span="3"> + +                <androidx.constraintlayout.widget.ConstraintLayout +                    android:layout_width="match_parent" +                    android:layout_height="wrap_content" +                    android:layout_marginTop="10dp" +                    android:layout_marginStart="10dp" +                    android:layout_marginEnd="10dp" +                    android:layout_gravity="center">                      <Button                          android:id="@+id/btnActivityUserProfileFollow"                          android:layout_width="280dp" -                        android:layout_height="30dp" -                        android:layout_marginStart="16dp" +                        android:layout_height="35dp" +                        android:backgroundTint="@color/button_main"                          android:clickable="true"                          android:drawableLeft="@drawable/ic_outline_person_add_alt_24"                          android:insetTop="0dp"                          android:insetBottom="0dp" -                        android:backgroundTint="@color/button_main"                          android:text="PRATI"                          android:visibility="visible"                          app:layout_constraintBottom_toBottomOf="parent"                          app:layout_constraintStart_toStartOf="parent"                          app:layout_constraintTop_toTopOf="parent" -                        app:layout_constraintVertical_bias="0.13" +                        app:layout_constraintVertical_bias="0.0"                          app:shapeAppearanceOverlay="@style/Circular"                          tools:ignore="TouchTargetSizeCheck" /> @@ -268,29 +287,26 @@                          android:id="@+id/btnActivityUserProfileUnFollow"                          android:layout_width="280dp" -                        android:layout_height="30dp" -                        android:layout_marginStart="16dp" +                        android:layout_height="35dp" +                        android:backgroundTint="@color/unfollow"                          android:clickable="false"                          android:drawableLeft="@drawable/ic_outline_person_remove_24"                          android:insetTop="0dp"                          android:insetBottom="0dp" -                        android:text="NE PRATI više" -                        android:backgroundTint="@color/unfollow" +                        android:text="NE PRATI više"                          app:layout_constraintBottom_toBottomOf="parent"                          app:layout_constraintStart_toStartOf="parent"                          app:layout_constraintTop_toTopOf="parent" -                        app:layout_constraintVertical_bias="0.13" +                        app:layout_constraintVertical_bias="0.0"                          app:shapeAppearanceOverlay="@style/Circular"                          tools:ignore="TouchTargetSizeCheck" /> -                      <ImageButton                          android:id="@+id/activityUserProfileOpenChat"                          android:layout_width="35dp" -                        android:layout_height="30dp" +                        android:layout_height="35dp"                          android:layout_gravity="center" -                        android:layout_marginEnd="16dp"                          android:height="40dp"                          android:background="@drawable/rounded_button"                          android:backgroundTint="@color/button_main" @@ -298,11 +314,10 @@                          app:layout_constraintBottom_toBottomOf="parent"                          app:layout_constraintEnd_toEndOf="parent"                          app:layout_constraintTop_toTopOf="parent" -                        app:layout_constraintVertical_bias="0.0"                          app:shapeAppearanceOverlay="@style/Circular"                          tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" /> +                  </androidx.constraintlayout.widget.ConstraintLayout> -            </TableRow>          </TableLayout>      </androidx.constraintlayout.widget.ConstraintLayout> 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 7531cf5..54686a4 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile.xml @@ -14,8 +14,8 @@          <ImageView              android:id="@+id/imageView3" -            android:layout_width="match_parent" -            android:layout_height="290dp" +            android:layout_width="416dp" +            android:layout_height="190dp"              android:foreground="@drawable/b3"              android:foregroundGravity="center_vertical|center|center_horizontal|fill"              android:src="@drawable/b3" @@ -26,8 +26,8 @@          <ImageView              android:id="@+id/imageView4" -            android:layout_width="411dp" -            android:layout_height="287dp" +            android:layout_width="413dp" +            android:layout_height="175dp"              app:layout_constraintBottom_toBottomOf="@+id/imageView3"              app:layout_constraintEnd_toEndOf="@id/imageView3"              app:layout_constraintHorizontal_bias="0.0" @@ -41,7 +41,7 @@              android:layout_width="0dp"              android:layout_height="199dp"              android:layout_marginStart="20dp" -            android:layout_marginTop="156dp" +            android:layout_marginTop="90dp"              android:layout_marginEnd="20dp"              android:adjustViewBounds="true"              android:background="#E8FFFFFF" @@ -56,10 +56,9 @@          <androidx.cardview.widget.CardView              android:id="@+id/cvFragmentHomePageProfile" -            android:layout_width="140dp" -            android:layout_height="140dp" +            android:layout_width="120dp" +            android:layout_height="120dp"              android:layout_gravity="center" -            android:layout_marginTop="24dp"              android:elevation="10dp"              app:cardCornerRadius="250dp"              app:layout_constraintBottom_toTopOf="@+id/tableLayout" @@ -67,14 +66,14 @@              app:layout_constraintHorizontal_bias="0.498"              app:layout_constraintStart_toStartOf="parent"              app:layout_constraintTop_toTopOf="parent" -            app:layout_constraintVertical_bias="0.887"> +            app:layout_constraintVertical_bias="0.65999997">              <ImageView                  android:id="@+id/tvFragmentProfileProfilePicture" -                android:layout_width="140dp" -                android:layout_height="140dp" -                android:elevation="10dp" +                android:layout_width="120dp" +                android:layout_height="120dp" +                android:elevation="20dp"                  android:scaleType="centerCrop"                  android:src="@drawable/ic_baseline_person_24"                  tools:ignore="ContentDescription" /> @@ -99,7 +98,7 @@          <TableLayout              android:id="@+id/tableLayout" -            android:layout_width="323dp" +            android:layout_width="0dp"              android:layout_height="120dp"              android:elevation="20dp"              android:gravity="center" @@ -107,16 +106,19 @@              app:layout_constraintBottom_toBottomOf="@+id/tvFragmentProfileInfoContainer"              app:layout_constraintEnd_toEndOf="@+id/tvFragmentProfileInfoContainer"              app:layout_constraintHorizontal_bias="0.488" -            app:layout_constraintStart_toStartOf="@+id/tvFragmentProfileInfoContainer"> +            app:layout_constraintStart_toStartOf="@+id/tvFragmentProfileInfoContainer" +            app:layout_constraintTop_toTopOf="@+id/tvFragmentProfileInfoContainer" +            app:layout_constraintVertical_bias="0.97">              <TableRow                  android:layout_width="fill_parent"                  android:layout_height="wrap_content" -                  android:gravity="center">                  <TextView                      android:id="@+id/tvFragmentProfileName" +                    style="@style/title" +                    android:gravity="center"                      android:layout_width="match_parent"                      android:layout_height="match_parent"                      android:text="Petar Petrović" /> @@ -133,119 +135,173 @@                      android:layout_width="match_parent"                      android:layout_height="match_parent"                      android:gravity="center" -                    android:text="#PetarP" /> +                    android:textSize="17sp" +                    android:text="PetarP" /> +            </TableRow> + +            <TableRow +                android:layout_width="match_parent" +                android:layout_height="100dp"> + +                <Button +                    android:layout_height="15dp" +                    android:background="@drawable/rounded_transparent_button" +                    android:clickable="false" +                    android:visibility="invisible" />              </TableRow> -            <Space android:layout_height="20dp"></Space>              <TableRow                  android:layout_width="match_parent"                  android:layout_height="wrap_content" -                android:gravity="center"> - +                android:gravity="center" +                android:weightSum="1"> +            <LinearLayout +                android:orientation="horizontal" +                android:layout_height="wrap_content" +                android:layout_width="wrap_content" +                android:weightSum="3" +                >                  <TextView +                    android:layout_width="110dp" +                    android:layout_height="wrap_content" +                    android:layout_weight="1"                      android:id="@+id/tvFragmentProfilePosts" +                    android:width="100dp"                      android:gravity="center"                      android:text="OBJAVE" />                  <TextView +                    android:layout_height="wrap_content" +                    android:layout_width="110dp" +                    android:layout_weight="1"                      android:id="@+id/tvFragmentProfileFollowers" -                    android:gravity="center" +                    android:width="100dp"                      android:clickable="true" +                    android:gravity="center"                      android:text="PRATIOCI" />                  <TextView +                    android:layout_height="wrap_content" +                    android:layout_width="110dp" +                    android:layout_weight="1"                      android:id="@+id/tvFragmentProfileFollow" +                    android:width="100dp"                      android:gravity="center"                      android:text="PRAĆENJA" /> +</LinearLayout>              </TableRow>              <TableRow +                android:weightSum="1"                  android:layout_width="match_parent"                  android:layout_height="wrap_content"                  android:gravity="center"> +                <LinearLayout>                  <TextView                      android:id="@+id/tvFragmentProfilePostsNo" +                    android:layout_weight="1"                      android:gravity="center" -                    android:text="156" /> +                    android:layout_width="110dp" +                    android:layout_height="wrap_content" +                    android:text="156" +                    android:textSize="20dp" +                    android:textStyle="bold" />                  <TextView +                    android:layout_weight="1"                      android:id="@+id/tvFragmentProfileFollowersNo"                      android:gravity="center" -                    android:text="50" /> +                    android:layout_width="110dp" +                    android:layout_height="wrap_content" +                    android:text="50" +                    android:textSize="20dp" +                    android:textStyle="bold" />                  <TextView +                    android:layout_weight="1"                      android:id="@+id/tvFragmentProfileFollowNo" -                    android:layout_width="match_parent" -                    android:layout_height="match_parent" +                    android:layout_width="110dp" +                    android:layout_height="wrap_content"                      android:gravity="center" -                    android:text="40" /> +                    android:text="40" +                    android:textSize="20dp" +                    android:textStyle="bold" /> +                </LinearLayout>              </TableRow>          </TableLayout> -        <View -            android:id="@+id/divider" -            android:layout_width="409dp" -            android:layout_height="40dp" +        <LinearLayout +            android:id="@+id/buttons" +            android:layout_width="match_parent" +            android:layout_height="wrap_content" +            android:weightSum="3"              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintStart_toStartOf="parent" -            app:layout_constraintTop_toBottomOf="@+id/btnFragmentProfileShowMyPosts" /> +            app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer"> -        <Button -            android:id="@+id/btnFragmentProfileShowMyPosts" -            android:layout_width="wrap_content" -            android:layout_height="wrap_content" -            android:layout_marginStart="20dp" -            android:layout_marginTop="4dp" -            android:backgroundTint="#FFFFFF" -            android:stateListAnimator="@null" -            android:text="Objave" - -            android:textColor="@color/cardview_dark_background" -            app:layout_constraintStart_toStartOf="parent" -            app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> +            <Button +                android:id="@+id/btnFragmentProfileShowMyPosts" +                android:layout_width="110dp" +                android:layout_height="wrap_content" +                android:layout_weight="1" +                android:backgroundTint="#FFFFFF" +                android:stateListAnimator="@null" +                android:text="Objave" +                android:textColor="@color/cardview_dark_background" +                app:layout_constraintStart_toStartOf="parent" +                app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + +            <Button +                android:id="@+id/btnFragmentProfileShowMyData" +                android:layout_width="110dp" +                android:layout_height="wrap_content" +                android:layout_weight="1" +                android:backgroundTint="#FFFFFF" +                android:stateListAnimator="@null" + +                android:text="Nalog" +                android:textColor="@color/cardview_dark_background" +                app:layout_constraintEnd_toEndOf="parent" +                app:layout_constraintHorizontal_bias="1.0" +                app:layout_constraintStart_toEndOf="@+id/btnFragmentProfileShowMyRecensions" +                app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> + +            <Button +                android:id="@+id/btnFragmentProfileShowMyRecensions" +                android:layout_width="120dp" +                android:layout_height="wrap_content" +                android:layout_gravity="end" +                android:layout_weight="1" +                android:backgroundTint="#FFFFFF" +                android:stateListAnimator="@null" +                android:text="Istorija" +                android:textColor="@color/cardview_dark_background" +                app:layout_constraintStart_toEndOf="@+id/btnFragmentProfileShowMyPosts" +                app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> +        </LinearLayout> -        <Button -            android:id="@+id/btnFragmentProfileShowMyData" -            android:layout_width="wrap_content" -            android:layout_height="wrap_content" +        <FrameLayout +            android:id="@+id/flFragmentProfileFragmentContainer" +            android:layout_width="match_parent" +            android:layout_height="0dp"              android:layout_marginTop="4dp" -            android:layout_marginEnd="20dp" -            android:backgroundTint="#FFFFFF" -            android:stateListAnimator="@null" -            android:text="Podaci" - -            android:textColor="@color/cardview_dark_background" +            app:layout_constraintBottom_toBottomOf="parent"              app:layout_constraintEnd_toEndOf="parent" -            app:layout_constraintHorizontal_bias="1.0" -            app:layout_constraintStart_toEndOf="@+id/btnFragmentProfileShowMyRecensions" -            app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> - -        <Button -            android:id="@+id/btnFragmentProfileShowMyRecensions" -            android:layout_width="wrap_content" -            android:layout_height="wrap_content" -            android:layout_marginStart="36dp" -            android:layout_marginTop="4dp" -            android:backgroundTint="#FFFFFF" -            android:stateListAnimator="@null" -            android:text="Istorija" -            android:textColor="@color/cardview_dark_background" -            app:layout_constraintStart_toEndOf="@+id/btnFragmentProfileShowMyPosts" -            app:layout_constraintTop_toBottomOf="@+id/tvFragmentProfileInfoContainer" /> +            app:layout_constraintStart_toStartOf="parent" +            app:layout_constraintTop_toBottomOf="@+id/divider6"></FrameLayout> -        <FrameLayout -            android:id="@+id/flFragmentProfileFragmentContainer" +        <View +            android:id="@+id/divider6"              android:layout_width="409dp" -            android:layout_height="319dp" -            android:layout_marginTop="40dp" -            app:layout_constraintBottom_toBottomOf="parent" +            android:layout_height="1dp" +            android:layout_marginTop="4dp" +            android:background="?android:attr/listDivider"              app:layout_constraintEnd_toEndOf="parent"              app:layout_constraintStart_toStartOf="parent" -            app:layout_constraintTop_toTopOf="@+id/divider"> -        </FrameLayout> +            app:layout_constraintTop_toBottomOf="@+id/buttons" />      </androidx.constraintlayout.widget.ConstraintLayout> | 
