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

added feeds screen contained views

parent d991209e
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4px"/>
<solid android:color="@color/colorOpacityCardBackground"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="12dp"/>
<solid android:color="@color/colorCommonBackground"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="46dp"
xmlns:style="http://schemas.android.com/tools"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView2"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="start|center_vertical"
android:layout_weight="0"
app:srcCompat="@drawable/ic_favorites" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textView7"
style="@style/Accent_Minor_TextView.Default"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
android:layout_weight="1"
android:gravity="center_vertical|fill_vertical"
android:text="TextView"
android:textAlignment="viewStart" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="8dp"
android:layout_height="8dp"
android:layout_gravity="start|center_vertical"
android:layout_margin="4dp"
android:layout_weight="0"
android:tint="@color/colorAccent"
app:srcCompat="@drawable/new_feed_icon" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textView8"
style="@style/Feed.Notice"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:gravity="center_vertical|fill_vertical"
android:text="ОНЛАЙН"
android:textAlignment="viewStart" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="284dp"
android:layout_height="189dp"
app:cardElevation="0dp"
app:cardForegroundColor="#00000000"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="false">
<com.biganto.visual.roompark.view_utils.image_view.RoundedImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:background="@drawable/default_image_placeholder"
android:cropToPadding="true"
android:foreground="@drawable/catalog_item_mask"
android:scaleType="centerCrop"
app:image_corner_radius="4dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textView5"
style="@style/Header_TextView.Inverted_Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="64dp"
android:layout_marginBottom="4dp"
android:text="Дом №1"
android:textAlignment="center" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textView6"
style="@style/Common_Text.Inverted"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Последнее обновление"
android:textAlignment="center" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/button"
style="@style/Accent_Minor_TextView.DatePlaceHolder"
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_marginStart="64dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="64dp"
android:gravity="center"
android:maxLines="1"
android:text="14 декабря 2019г"
android:textAlignment="center" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
......@@ -51,10 +51,10 @@
app:layout_constraintTop_toTopOf="parent" />
<TextView
style="@style/Feed.Description"
style="@style/Common_Text.Inverted"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:maxLines="3"
android:text="В «РУМЯНЦЕВО-ПАРК» ПРИСТУПИЛИ К МОНТАЖУ ОКОННЫХ БЛОКОВ"
app:layout_constraintBottom_toBottomOf="parent"
......
......@@ -6,13 +6,14 @@
<color name="colorAccentSecondary">#093835</color>
<color name="colorGray">#A1A1A1</color>
<color name="colorOpacityBackgroundInv">#E3E3E3</color>
<color name="colorOpacityBackgroundInv">#E3E3E3E3</color>
//region background
<color name="colorCommonBackground">#FFFFFF</color>
<color name="colorNoticeBackground">#EEEEEE</color>
<color name="colorOpacityBackground">#CC000000</color>
<color name="colorOpacityCardBackground">#5C000000</color>
<color name="colorCheckListGradientStart">@color/colorAccent</color>
<color name="colorCheckListGradientEnd">@color/colorAccentSecondary</color>
//endregion
......
......@@ -25,8 +25,7 @@
<style name="Widget.Biganto.MaterialCardView" parent="Widget.MaterialComponents.CardView">
<item name="cardUseCompatPadding">false</item>
<item name="strokeColor">#1e000000</item>
<item name="strokeWidth">1dp</item>
<item name="strokeWidth">0dp</item>
<item name="cornerFamily">cut</item>
<item name="cornerSize">4dp</item>
</style>
......@@ -118,6 +117,24 @@
</style>>
<style name="DevProgressButton" parent="Widget.MaterialComponents.Button.UnelevatedButton">
<item name="strokeWidth">1dp</item>
<item name="android:colorBackground">@color/colorCommonBackground</item>
<item name="android:colorControlNormal">@color/colorCommonBackground</item>
<item name="android:colorControlActivated">@color/colorCommonBackground</item>
<item name="boxBackgroundColor">@color/colorCommonBackground</item>
<item name="android:layout_height">24dp</item>
<item name="android:layout_width">128dp</item>
<item name="cornerRadius">12dp</item>
<item name="rippleColor">@color/colorGray</item>
<item name="android:textSize">@dimen/minor_text</item>
<item name="android:textColor">@color/colorHeaderText</item>
<item name="android:fontFamily">@font/acrom_medium</item>
<item name="android:gravity">center</item>
</style>
//region TextView
<style name="Base.Widget.AppCompat.TextView.AcromMediumTextView">
......@@ -149,7 +166,7 @@
</style>
<style name="Header_TextView.Inverted_Header">
<item name="android:textColor">@color/colorCommonText</item>
<item name="android:textColor">@color/colorInvertedText</item>
</style>
<style name="Flat_Input_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
......@@ -202,6 +219,10 @@
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name="Feed_Title.Disclaimer">
<item name="android:textColor">@color/colorInvertedText</item>
</style>
<style name="Common_Text" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<item name="android:textSize">@dimen/common_text</item>
</style>
......@@ -234,6 +255,15 @@
<item name="android:textColor">@color/colorNoticeText</item>
</style>
<style name="Accent_Minor_TextView.DatePlaceHolder">
<item name="android:textColor">@color/colorCommonText</item>
<item name="android:background">@drawable/rounded_text</item>
<item name="android:paddingStart">12dp</item>
<item name="android:paddingEnd">12dp</item>
</style>
<style name="Feed" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<item name="android:textSize">@dimen/lite_notice</item>
</style>
......
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