mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Updating profile details count divider to use item_pref_divider, for consistency
This commit is contained in:
parent
b32cd66d9e
commit
faee351a11
@ -524,7 +524,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRefresh() {
|
public void onRefresh() {
|
||||||
profileDetailsBinding.countsBarrier.setVisibility(View.GONE);
|
profileDetailsBinding.countsBarrier.getRoot().setVisibility(View.GONE);
|
||||||
profileDetailsBinding.mainProfileImage.setVisibility(View.INVISIBLE);
|
profileDetailsBinding.mainProfileImage.setVisibility(View.INVISIBLE);
|
||||||
fetchProfileDetails();
|
fetchProfileDetails();
|
||||||
}
|
}
|
||||||
@ -742,7 +742,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
profileDetailsBinding.mainProfileImage.setImageURI(profileModel.getProfilePicUrl());
|
profileDetailsBinding.mainProfileImage.setImageURI(profileModel.getProfilePicUrl());
|
||||||
profileDetailsBinding.mainProfileImage.setVisibility(View.VISIBLE);
|
profileDetailsBinding.mainProfileImage.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
profileDetailsBinding.countsBarrier.setVisibility(View.VISIBLE);
|
profileDetailsBinding.countsBarrier.getRoot().setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
final long followersCount = profileModel.getFollowerCount();
|
final long followersCount = profileModel.getFollowerCount();
|
||||||
final long followingCount = profileModel.getFollowingCount();
|
final long followingCount = profileModel.getFollowingCount();
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
android:transitionName="profile_pic"
|
android:transitionName="profile_pic"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
app:actualImageScaleType="centerCrop"
|
app:actualImageScaleType="centerCrop"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/btnTagged"
|
||||||
app:layout_constraintEnd_toStartOf="@id/btnFollow"
|
app:layout_constraintEnd_toStartOf="@id/btnFollow"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/btnTagged"
|
tools:foreground="@mipmap/ic_launcher"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible" />
|
||||||
tools:foreground="@mipmap/ic_launcher" />
|
|
||||||
|
|
||||||
<!-- for other people -->
|
<!-- for other people -->
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.Chip
|
||||||
@ -34,8 +34,8 @@
|
|||||||
app:chipBackgroundColor="@null"
|
app:chipBackgroundColor="@null"
|
||||||
app:chipIcon="@drawable/ic_outline_person_add_24"
|
app:chipIcon="@drawable/ic_outline_person_add_24"
|
||||||
app:chipIconTint="@color/deep_purple_200"
|
app:chipIconTint="@color/deep_purple_200"
|
||||||
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
|
|
||||||
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
|
||||||
app:rippleColor="@color/purple_200"
|
app:rippleColor="@color/purple_200"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
@ -48,8 +48,8 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:chipBackgroundColor="@null"
|
app:chipBackgroundColor="@null"
|
||||||
app:layout_constraintStart_toEndOf="@id/btnFollow"
|
|
||||||
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/btnFollow"
|
||||||
tools:text="omg what do u expect"
|
tools:text="omg what do u expect"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
@ -64,8 +64,8 @@
|
|||||||
app:chipBackgroundColor="@null"
|
app:chipBackgroundColor="@null"
|
||||||
app:chipIcon="@drawable/ic_outline_class_24"
|
app:chipIcon="@drawable/ic_outline_class_24"
|
||||||
app:chipIconTint="@color/blue_700"
|
app:chipIconTint="@color/blue_700"
|
||||||
app:layout_constraintStart_toEndOf="@id/mainStatus"
|
|
||||||
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/mainStatus"
|
||||||
app:rippleColor="@color/blue_A400"
|
app:rippleColor="@color/blue_A400"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
@ -79,8 +79,8 @@
|
|||||||
app:chipBackgroundColor="@null"
|
app:chipBackgroundColor="@null"
|
||||||
app:chipIcon="@drawable/ic_like"
|
app:chipIcon="@drawable/ic_like"
|
||||||
app:chipIconTint="@color/red_600"
|
app:chipIconTint="@color/red_600"
|
||||||
app:layout_constraintStart_toEndOf="@id/btnSaved"
|
|
||||||
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
app:layout_constraintBottom_toTopOf="@id/fav_chip"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/btnSaved"
|
||||||
app:rippleColor="@color/red_300"
|
app:rippleColor="@color/red_300"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
@ -136,8 +136,8 @@
|
|||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
android:paddingBottom="4dp"
|
|
||||||
android:paddingEnd="4dp"
|
android:paddingEnd="4dp"
|
||||||
|
android:paddingBottom="4dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@ -189,8 +189,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?android:selectableItemBackground"
|
android:background="?android:selectableItemBackground"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
android:paddingBottom="4dp"
|
android:paddingBottom="4dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||||
app:layout_constraintBottom_toTopOf="@id/mainUrl"
|
app:layout_constraintBottom_toTopOf="@id/mainUrl"
|
||||||
@ -206,8 +206,8 @@
|
|||||||
android:layout_below="@id/mainBiography"
|
android:layout_below="@id/mainBiography"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
android:paddingBottom="4dp"
|
android:paddingBottom="4dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
@ -232,32 +232,33 @@
|
|||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:textStyle="italic"
|
android:textStyle="italic"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/counts_barrier"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/mainUrl"
|
app:layout_constraintTop_toBottomOf="@id/mainUrl"
|
||||||
app:layout_constraintBottom_toTopOf="@id/counts_barrier"
|
|
||||||
tools:text="Followed by @instagram, @facebook + 69 more"
|
tools:text="Followed by @instagram, @facebook + 69 more"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<View
|
<include
|
||||||
android:id="@+id/counts_barrier"
|
android:id="@+id/counts_barrier"
|
||||||
android:layout_width="fill_parent"
|
layout="@layout/item_pref_divider"
|
||||||
android:layout_height="0.5dp"
|
android:layout_width="0dp"
|
||||||
android:background="?attr/colorOnPrimary"
|
android:layout_height="1dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/profileContext"
|
app:layout_constraintTop_toBottomOf="@id/profileContext"
|
||||||
tools:layout_editor_absoluteX="8dp"
|
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/mainPostCount"
|
android:id="@+id/mainPostCount"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="4dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:paddingStart="8dp"
|
||||||
|
android:paddingTop="4dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat"
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
||||||
app:layout_constraintEnd_toStartOf="@id/mainFollowers"
|
app:layout_constraintEnd_toStartOf="@id/mainFollowers"
|
||||||
@ -269,12 +270,12 @@
|
|||||||
android:id="@+id/mainFollowers"
|
android:id="@+id/mainFollowers"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="4dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:background="?selectableItemBackgroundBorderless"
|
android:background="?selectableItemBackgroundBorderless"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:paddingStart="8dp"
|
||||||
|
android:paddingTop="4dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat"
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
||||||
app:layout_constraintEnd_toStartOf="@id/mainFollowing"
|
app:layout_constraintEnd_toStartOf="@id/mainFollowing"
|
||||||
@ -286,12 +287,12 @@
|
|||||||
android:id="@+id/mainFollowing"
|
android:id="@+id/mainFollowing"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="4dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:background="?selectableItemBackgroundBorderless"
|
android:background="?selectableItemBackgroundBorderless"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:paddingStart="8dp"
|
||||||
|
android:paddingTop="4dp"
|
||||||
|
android:paddingEnd="8dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat"
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
Loading…
Reference in New Issue
Block a user