Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
fb91360f
Commit
fb91360f
authored
Oct 17, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
favorites bit poolish
parent
9d0ed16c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
FavoritesAdapter.kt
...rk/presentation/screen/favorites/util/FavoritesAdapter.kt
+5
-1
favorite_card_viewholder.xml
app/src/main/res/layout/favorite_card_viewholder.xml
+4
-2
favorites_screen.xml
app/src/main/res/layout/favorites_screen.xml
+1
-2
start_tour_viewholder.xml
app/src/main/res/layout/start_tour_viewholder.xml
+4
-1
colors.xml
app/src/main/res/values/colors.xml
+1
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/favorites/util/FavoritesAdapter.kt
View file @
fb91360f
...
...
@@ -10,6 +10,7 @@ import butterknife.ButterKnife
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.domain.model.CommonInfoModel
import
com.biganto.visual.roompark.domain.model.EstateModel
import
java.text.DecimalFormat
/**
* Created by Vladislav Bogdashkin on 16.10.2019.
...
...
@@ -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
.
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
app/src/main/res/layout/favorite_card_viewholder.xml
View file @
fb91360f
...
...
@@ -3,8 +3,10 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginBottom=
"8dp"
android:background=
"@color/colorCommonBackground"
>
<androidx.constraintlayout.widget.ConstraintLayout
...
...
app/src/main/res/layout/favorites_screen.xml
View file @
fb91360f
...
...
@@ -3,13 +3,12 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/color
OpacityCard
Background"
android:background=
"@color/color
Notice
Background"
android:orientation=
"vertical"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/favorites_cards_recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:padding=
"16dp"
tools:listitem=
"@layout/favorite_card_viewholder"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/start_tour_viewholder.xml
View file @
fb91360f
...
...
@@ -3,8 +3,10 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"16dp"
android:elevation=
"4dp"
android:padding=
"16dp"
app:cardCornerRadius=
"4dp"
app:cardElevation=
"4dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
...
...
@@ -16,7 +18,8 @@
android:id=
"@+id/roundedImageView2"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:foreground=
"@color/colorOpacityCardBackground"
android:foreground=
"@color/playTourCardOpacityBackground"
android:foregroundTintMode=
"src_in"
android:scaleType=
"centerCrop"
android:src=
"@drawable/default_image_placeholder"
/>
...
...
app/src/main/res/values/colors.xml
View file @
fb91360f
...
...
@@ -14,6 +14,7 @@
<color
name=
"colorNoticeBackground"
>
#EEEEEE
</color>
<color
name=
"colorOpacityBackground"
>
#CC000000
</color>
<color
name=
"colorOpacityCardBackground"
>
#5C000000
</color>
<color
name=
"playTourCardOpacityBackground"
>
#B2000000
</color>
<color
name=
"colorCheckListGradientStart"
>
@color/colorAccent
</color>
<color
name=
"colorCheckListGradientEnd"
>
@color/colorAccentSecondary
</color>
//endregion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment