Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
73e20f68
Commit
73e20f68
authored
Jan 13, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flat info view
parent
b24e9054
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
9 deletions
+20
-9
info.kt
...o/visual/roompark/presentation/screen/estate/util/info.kt
+7
-1
flat_full_card_screen.xml
app/src/main/res/layout/flat_full_card_screen.xml
+4
-2
flate_measure_info_viewholder.xml
app/src/main/res/layout/flate_measure_info_viewholder.xml
+7
-4
simple_text_tabs.xml
app/src/main/res/layout/simple_text_tabs.xml
+1
-2
colors.xml
app/src/main/res/values/colors.xml
+1
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/estate/util/info.kt
View file @
73e20f68
...
...
@@ -18,6 +18,13 @@ class FlatInfoAdapter : CommonRecyclerAdapter<FlatInfoViewHolder, DisplayInfoMod
override
fun
getVhLayout
():
Int
=
R
.
layout
.
flate_measure_info_viewholder
override
fun
onBindViewHolder
(
holder
:
FlatInfoViewHolder
,
position
:
Int
)
{
super
.
onBindViewHolder
(
holder
,
position
)
if
(
position
%
2
==
0
)
holder
.
itemView
.
background
=
holder
.
itemView
.
context
.
getDrawable
(
R
.
color
.
colorDividerLightGray
)
else
holder
.
itemView
.
background
=
holder
.
itemView
.
context
.
getDrawable
(
R
.
color
.
colorPrimary
)
}
}
...
...
@@ -26,7 +33,6 @@ class FlatInfoViewHolder(itemView: View) : CommonViewHolder<DisplayInfoModel>(it
@BindView
(
R
.
id
.
flat_measure_description
)
lateinit
var
infoTitle
:
MaterialTextView
@BindView
(
R
.
id
.
flat_measure_value
)
lateinit
var
infoValue
:
MaterialTextView
...
...
app/src/main/res/layout/flat_full_card_screen.xml
View file @
73e20f68
...
...
@@ -254,9 +254,11 @@
<include
android:id=
"@+id/switch_flat_content_tab"
layout=
"@layout/simple_text_tabs"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
@@ -265,7 +267,7 @@
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/flat_content_recycler_view"
android:layout_width=
"0dp"
android:layout_height=
"
232dp
"
android:layout_height=
"
wrap_content
"
android:layout_marginTop=
"16dp"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
app/src/main/res/layout/flate_measure_info_viewholder.xml
View file @
73e20f68
...
...
@@ -3,12 +3,15 @@
android:id=
"@+id/flat_measure_container"
android:layout_width=
"match_parent"
android:layout_height=
"32dp"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
android:paddingStart=
"16dp"
android:paddingEnd=
"16dp"
android:weightSum=
"2"
>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/flat_measure_description"
style=
"@style/Accent_Minor_TextView.Inverted"
android:layout_width=
"
match_parent
"
android:layout_width=
"
0dp
"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
...
...
@@ -18,8 +21,8 @@
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/flat_measure_value"
style=
"@style/Accent_Minor_TextView.Default"
android:layout_width=
"
match_parent
"
android:layout_height=
"
match_par
ent"
android:layout_width=
"
0dp
"
android:layout_height=
"
wrap_cont
ent"
android:layout_marginStart=
"16dp"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
...
...
app/src/main/res/layout/simple_text_tabs.xml
View file @
73e20f68
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:weightSum=
"2"
>
...
...
@@ -27,6 +27,5 @@
style=
"@style/Default_TextView.Accent_Text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Экспликация"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
73e20f68
...
...
@@ -14,6 +14,7 @@
<color
name=
"colorNoticeBackground"
>
#EEEEEE
</color>
<color
name=
"colorOpacityBackground"
>
#CC000000
</color>
<color
name=
"colorOpacityCardBackground"
>
#5C000000
</color>
<color
name=
"colorDividerLightGray"
>
#F2F2F2
</color>
<color
name=
"playTourCardOpacityBackground"
>
#B2000000
</color>
<color
name=
"colorCheckListGradientStart"
>
@color/colorAccent
</color>
<color
name=
"colorCheckListGradientEnd"
>
@color/colorAccentSecondary
</color>
...
...
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