Commit d991209e authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

viewholder for feed

parent 6ff98096
......@@ -3,7 +3,6 @@
<item android:state_enabled="false"
android:width="24dp" android:height="24dp">
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp"/>
<stroke
android:width="2dp"
......@@ -13,14 +12,11 @@
android:top="0dp"
android:right="0dp"
android:bottom="0dp" />
</shape>
</item>
<item android:state_checked="true"
android:width="24dp" android:height="24dp">
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp"/>
<stroke
android:width="2dp"
......@@ -29,7 +25,6 @@
</item>
<item>
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp"/>
<stroke
android:width="2dp"
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:width="8dp" android:height="8dp">
<shape android:shape="oval">
<size android:width="8dp" android:height="8dp"/>
<solid android:color="@color/colorAccentSecondary" />
</shape>
</item>
<item android:state_checked="true"
android:width="8dp" android:height="8dp">
<shape android:shape="oval">
<size android:width="8dp" android:height="8dp"/>
<solid android:color="@color/colorAccent" />
</shape>
</item>
<item
android:width="8dp" android:height="8dp">
<shape android:shape="oval">
<size android:width="8dp" android:height="8dp"/>
<solid android:color="@color/colorGray" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/colorFeedViewHolderBackground"
android:orientation="vertical"
android:paddingEnd="128dp">
<com.biganto.visual.roompark.view_utils.image_view.RoundedImageView
android:id="@+id/imageHolder"
android:layout_width="60dp"
android:layout_height="60dp"
android:background="@color/colorAccentSecondary"
app:image_corner_radius="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_favorites" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="76dp" />
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="8dp"
android:layout_height="8dp"
android:layout_marginTop="2dp"
android:background="@drawable/new_feed_icon"
android:visibility="visible"
app:layout_constraintStart_toStartOf="@+id/guideline"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/feed_date_text_view"
style="@style/Feed.Notice"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:includeFontPadding="false"
android:text="22 / 02 / 2019"
android:visibility="visible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline"
app:layout_constraintTop_toTopOf="parent" />
<TextView
style="@style/Feed.Description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:maxLines="3"
android:text="В «РУМЯНЦЕВО-ПАРК» ПРИСТУПИЛИ К МОНТАЖУ ОКОННЫХ БЛОКОВ"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline"
app:layout_constraintTop_toBottomOf="@+id/feed_date_text_view" />
</androidx.constraintlayout.widget.ConstraintLayout>
......@@ -6,7 +6,8 @@
android:layout_width="match_parent"
android:layout_height="448dp"
android:background="@drawable/gradient_background_accent"
android:orientation="vertical">
android:orientation="vertical"
android:paddingStart="16dp">
<androidx.viewpager.widget.ViewPager
android:id="@+id/viewPager"
......@@ -15,13 +16,13 @@
app:layout_constraintBottom_toTopOf="@+id/feeds_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</androidx.viewpager.widget.ViewPager>
app:layout_constraintTop_toTopOf="parent"></androidx.viewpager.widget.ViewPager>
<ImageView
<include
android:id="@+id/feeds_divider"
layout="@layout/horizontal_divider"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_height="1dp"
android:background="@drawable/botttom_bar_shadow"
app:layout_constraintBottom_toTopOf="@+id/textView4" />
......
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@+id/frameDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/colorOpacityBackgroundInv"
xmlns:android="http://schemas.android.com/apk/res/android">
</FrameLayout>
\ No newline at end of file
......@@ -31,4 +31,6 @@
<color name="colorInvertedNoticeText">#A1FFFFFF</color>
//endregion
<color name="colorFeedViewHolderBackground">#00000000</color>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment