2020-08-30 12:51:47 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<awais.instagrabber.customviews.helpers.NestedCoordinatorLayout 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:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-09-03 19:07:43 +00:00
|
|
|
android:background="?attr/colorSurface">
|
2020-08-30 12:51:47 +00:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:id="@+id/appBarLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-03 19:07:43 +00:00
|
|
|
android:background="?attr/colorSurface">
|
2020-08-30 12:51:47 +00:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
|
2020-09-18 19:18:14 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-08-30 12:51:47 +00:00
|
|
|
android:id="@+id/locInfoContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:background="@null"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:padding="8dp">
|
2020-08-30 12:51:47 +00:00
|
|
|
|
2020-09-18 19:18:14 +00:00
|
|
|
<awais.instagrabber.customviews.CircularImageView
|
|
|
|
android:id="@+id/mainLocationImage"
|
|
|
|
android:layout_width="@dimen/profile_picture_size"
|
|
|
|
android:layout_height="@dimen/profile_picture_size"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
app:actualImageScaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/mainLocPostCount"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:background="@mipmap/ic_launcher" />
|
2020-08-30 12:51:47 +00:00
|
|
|
|
2020-09-18 19:18:14 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/mainLocPostCount"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/btnMap"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/mainLocationImage"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="35 Posts" />
|
2020-08-30 12:51:47 +00:00
|
|
|
|
2020-09-18 19:18:14 +00:00
|
|
|
<com.google.android.material.chip.Chip
|
|
|
|
android:id="@+id/btnMap"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:text="@string/map"
|
|
|
|
app:chipBackgroundColor="@null"
|
|
|
|
app:chipIcon="@drawable/ic_outline_map_24"
|
|
|
|
app:chipIconTint="@color/green_500"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/locationFullName"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/mainLocationImage"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mainLocPostCount"
|
|
|
|
app:rippleColor="@color/grey_500"
|
|
|
|
tools:visibility="visible" />
|
2020-08-30 12:51:47 +00:00
|
|
|
|
2020-09-18 19:18:14 +00:00
|
|
|
<com.google.android.material.chip.Chip
|
|
|
|
android:id="@+id/fav_chip"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:text="@string/add_to_favorites"
|
|
|
|
app:chipBackgroundColor="@null"
|
|
|
|
app:chipIcon="@drawable/ic_outline_star_plus_24"
|
|
|
|
app:chipIconTint="@color/yellow_800"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/mainLocationImage"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/btnMap"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mainLocPostCount"
|
|
|
|
app:rippleColor="@color/yellow_400" />
|
2020-08-30 12:51:47 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/locationFullName"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:layout_width="0dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingRight="8dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:singleLine="true"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/locationBiography"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mainLocationImage"
|
2020-08-30 12:51:47 +00:00
|
|
|
tools:text="OUR HOUSE" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RamboTextView
|
|
|
|
android:id="@+id/locationBiography"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:layout_width="0dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/locationFullName"
|
|
|
|
android:background="?android:selectableItemBackground"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingRight="8dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
|
|
android:visibility="gone"
|
2020-09-18 19:18:14 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/locationUrl"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/locationFullName"
|
|
|
|
tools:text="IN THE MIDDLE OF OUR STREET"
|
|
|
|
tools:visibility="visible" />
|
2020-08-30 12:51:47 +00:00
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RamboTextView
|
|
|
|
android:id="@+id/locationUrl"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:layout_width="0dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/locationBiography"
|
|
|
|
android:ellipsize="marquee"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingRight="8dp"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
|
|
android:visibility="gone"
|
2020-09-18 19:18:14 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/locationBiography"
|
|
|
|
tools:text="https://austinhuang.me/"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-08-30 12:51:47 +00:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
2020-11-01 12:56:04 +00:00
|
|
|
android:id="@+id/swipe_refresh_layout"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-11-01 12:56:04 +00:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2020-08-30 12:51:47 +00:00
|
|
|
|
2020-11-01 12:56:04 +00:00
|
|
|
<awais.instagrabber.customviews.PostsRecyclerView
|
|
|
|
android:id="@+id/posts"
|
2020-08-30 12:51:47 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-11-01 12:56:04 +00:00
|
|
|
android:clipToPadding="false" />
|
2020-08-30 12:51:47 +00:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</awais.instagrabber.customviews.helpers.NestedCoordinatorLayout>
|