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

favorites bit poolish

parent 9d0ed16c
...@@ -10,6 +10,7 @@ import butterknife.ButterKnife ...@@ -10,6 +10,7 @@ import butterknife.ButterKnife
import com.biganto.visual.roompark.R import com.biganto.visual.roompark.R
import com.biganto.visual.roompark.domain.model.CommonInfoModel import com.biganto.visual.roompark.domain.model.CommonInfoModel
import com.biganto.visual.roompark.domain.model.EstateModel import com.biganto.visual.roompark.domain.model.EstateModel
import java.text.DecimalFormat
/** /**
* Created by Vladislav Bogdashkin on 16.10.2019. * Created by Vladislav Bogdashkin on 16.10.2019.
...@@ -105,7 +106,10 @@ class CamListViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { ...@@ -105,7 +106,10 @@ class CamListViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
private fun View.title() = this.findViewById<TextView>(R.id.info_ceil_header) private fun View.title() = this.findViewById<TextView>(R.id.info_ceil_header)
private fun View.text() = this.findViewById<TextView>(R.id.info_ceil_content) private fun View.text() = this.findViewById<TextView>(R.id.info_ceil_content)
private fun Int.toRubly() = String.format("% d",this) private fun Int.toRubly(): String {
return String.format("%,d \u20BD",this).replace(',',' ')
}
} }
\ No newline at end of file
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginStart="16dp"
android:layout_marginBottom="16dp" android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:background="@color/colorCommonBackground"> android:background="@color/colorCommonBackground">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
......
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/colorOpacityCardBackground" android:background="@color/colorNoticeBackground"
android:orientation="vertical"> android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/favorites_cards_recycler_view" android:id="@+id/favorites_cards_recycler_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="16dp"
tools:listitem="@layout/favorite_card_viewholder" /> tools:listitem="@layout/favorite_card_viewholder" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="16dp"
android:elevation="4dp" android:elevation="4dp"
android:padding="16dp" android:padding="16dp"
app:cardCornerRadius="4dp"
app:cardElevation="4dp"> app:cardElevation="4dp">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
...@@ -16,7 +18,8 @@ ...@@ -16,7 +18,8 @@
android:id="@+id/roundedImageView2" android:id="@+id/roundedImageView2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:foreground="@color/colorOpacityCardBackground" android:foreground="@color/playTourCardOpacityBackground"
android:foregroundTintMode="src_in"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/default_image_placeholder" /> android:src="@drawable/default_image_placeholder" />
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<color name="colorNoticeBackground">#EEEEEE</color> <color name="colorNoticeBackground">#EEEEEE</color>
<color name="colorOpacityBackground">#CC000000</color> <color name="colorOpacityBackground">#CC000000</color>
<color name="colorOpacityCardBackground">#5C000000</color> <color name="colorOpacityCardBackground">#5C000000</color>
<color name="playTourCardOpacityBackground">#B2000000</color>
<color name="colorCheckListGradientStart">@color/colorAccent</color> <color name="colorCheckListGradientStart">@color/colorAccent</color>
<color name="colorCheckListGradientEnd">@color/colorAccentSecondary</color> <color name="colorCheckListGradientEnd">@color/colorAccentSecondary</color>
//endregion //endregion
......
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