mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Fix layout problem in notification item
This commit is contained in:
parent
3bf4aa86d0
commit
0e881ba7c5
@ -20,37 +20,6 @@
|
|||||||
app:roundAsCircle="true"
|
app:roundAsCircle="true"
|
||||||
tools:placeholderImage="@mipmap/ic_launcher" />
|
tools:placeholderImage="@mipmap/ic_launcher" />
|
||||||
|
|
||||||
|
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
|
||||||
<!-- android:id="@+id/multi_pic1"-->
|
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- app:actualImageScaleType="centerCrop"-->
|
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
|
||||||
|
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
|
||||||
<!-- android:id="@+id/multi_pic2"-->
|
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- app:layout_constraintBottom_toTopOf="@+id/multi_pic3"-->
|
|
||||||
<!-- app:layout_constraintEnd_toStartOf="@id/barrier"-->
|
|
||||||
<!-- app:layout_constraintStart_toEndOf="@id/multi_pic1"-->
|
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
|
||||||
|
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
|
||||||
<!-- android:id="@+id/multi_pic3"-->
|
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
||||||
<!-- app:layout_constraintEnd_toStartOf="@id/barrier"-->
|
|
||||||
<!-- app:layout_constraintStart_toEndOf="@id/multi_pic1"-->
|
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/multi_pic2"-->
|
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Barrier
|
<androidx.constraintlayout.widget.Barrier
|
||||||
android:id="@+id/barrier"
|
android:id="@+id/barrier"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -105,29 +74,10 @@
|
|||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="8dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat"
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
||||||
app:layout_constraintEnd_toStartOf="@id/tvDate"
|
app:layout_constraintEnd_toStartOf="@id/preview_barrier"
|
||||||
app:layout_constraintStart_toStartOf="@id/tvUsername"
|
app:layout_constraintStart_toStartOf="@id/tvUsername"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvComment"
|
app:layout_constraintTop_toBottomOf="@id/tvComment"
|
||||||
tools:text="sub-comment" />
|
tools:text="sub-comment long long long long long long long long long long" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/tvDate"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:gravity="end"
|
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingEnd="16dp"
|
|
||||||
android:paddingRight="16dp"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
||||||
android:textStyle="italic"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/ivPreviewPic"
|
|
||||||
app:layout_constraintStart_toEndOf="@id/tvSubComment"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvComment"
|
|
||||||
tools:text="date" />
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Barrier
|
<androidx.constraintlayout.widget.Barrier
|
||||||
android:id="@+id/preview_barrier"
|
android:id="@+id/preview_barrier"
|
||||||
@ -147,46 +97,22 @@
|
|||||||
tools:placeholderImage="@mipmap/ic_launcher"
|
tools:placeholderImage="@mipmap/ic_launcher"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
<!-- android:id="@+id/preview_pic1"-->
|
android:id="@+id/tvDate"
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
android:layout_width="0dp"
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
android:ellipsize="marquee"
|
||||||
<!-- app:layout_constraintEnd_toStartOf="@id/preview_pic2"-->
|
android:gravity="end"
|
||||||
<!-- app:layout_constraintStart_toEndOf="@id/preview_barrier"-->
|
android:paddingStart="8dp"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
android:paddingLeft="8dp"
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
android:paddingEnd="16dp"
|
||||||
|
android:paddingRight="16dp"
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
android:singleLine="true"
|
||||||
<!-- android:id="@+id/preview_pic2"-->
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
android:textStyle="italic"
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toStartOf="@id/preview_barrier"
|
||||||
<!-- app:layout_constraintStart_toEndOf="@id/preview_pic1"-->
|
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
app:layout_constraintTop_toBottomOf="@id/tvSubComment"
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
tools:text="some long long long long long date" />
|
||||||
|
|
||||||
<!--<com.facebook.drawee.view.SimpleDraweeView-->
|
|
||||||
<!-- android:id="@+id/preview_pic3"-->
|
|
||||||
<!-- android:layout_width="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- android:layout_height="@dimen/simple_item_picture_size_exact_half"-->
|
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
||||||
<!-- app:layout_constraintStart_toEndOf="@id/preview_pic1"-->
|
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@id/preview_pic2"-->
|
|
||||||
<!-- app:placeholderImage="@mipmap/ic_launcher" />-->
|
|
||||||
|
|
||||||
<!--<androidx.constraintlayout.widget.Group-->
|
|
||||||
<!-- android:id="@+id/multi_pic_group"-->
|
|
||||||
<!-- android:layout_width="wrap_content"-->
|
|
||||||
<!-- android:layout_height="wrap_content"-->
|
|
||||||
<!-- android:visibility="visible"-->
|
|
||||||
<!-- app:constraint_referenced_ids="multi_pic1, multi_pic2, multi_pic3" />-->
|
|
||||||
|
|
||||||
<!--<androidx.constraintlayout.widget.Group-->
|
|
||||||
<!-- android:id="@+id/preview_pic_group"-->
|
|
||||||
<!-- android:layout_width="wrap_content"-->
|
|
||||||
<!-- android:layout_height="wrap_content"-->
|
|
||||||
<!-- android:visibility="gone"-->
|
|
||||||
<!-- app:constraint_referenced_ids="preview_pic1, preview_pic2, preview_pic3" />-->
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user