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
1bd9f768
Commit
1bd9f768
authored
Jan 14, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide estate and financinal info to deal screen
parent
e70c00dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
ScreenController.kt
...ual/roompark/presentation/screen/deal/ScreenController.kt
+35
-1
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenController.kt
View file @
1bd9f768
...
@@ -10,6 +10,7 @@ import com.biganto.visual.roompark.R
...
@@ -10,6 +10,7 @@ import com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
import
com.biganto.visual.roompark.util.extensions.toRubly
import
com.biganto.visual.roompark.util.view_utils.status_progress_view.StatusProgressAnimationState
import
com.biganto.visual.roompark.util.view_utils.status_progress_view.StatusProgressAnimationState
import
com.biganto.visual.roompark.util.view_utils.status_progress_view.StatusProgressCeil
import
com.biganto.visual.roompark.util.view_utils.status_progress_view.StatusProgressCeil
import
com.google.android.material.textview.MaterialTextView
import
com.google.android.material.textview.MaterialTextView
...
@@ -52,6 +53,16 @@ class DealScreenController :
...
@@ -52,6 +53,16 @@ class DealScreenController :
@BindView
(
R
.
id
.
progress_holder
)
@BindView
(
R
.
id
.
progress_holder
)
lateinit
var
progressLayout
:
LinearLayout
lateinit
var
progressLayout
:
LinearLayout
@BindView
(
R
.
id
.
info_ceil_1
)
lateinit
var
info1
:
View
@BindView
(
R
.
id
.
info_ceil_2
)
lateinit
var
info2
:
View
@BindView
(
R
.
id
.
info_ceil_3
)
lateinit
var
info3
:
View
@BindView
(
R
.
id
.
info_ceil_4
)
lateinit
var
info4
:
View
@BindView
(
R
.
id
.
deal_sum_value_text_view
)
lateinit
var
dealSum
:
MaterialTextView
@BindView
(
R
.
id
.
deal_payed_value_text_view
)
lateinit
var
dealPayed
:
MaterialTextView
@BindView
(
R
.
id
.
deal_to_pay_value_text_view
)
lateinit
var
dealSumToPay
:
MaterialTextView
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
false
)
toolBar
.
appBar
.
setExpanded
(
false
,
false
)
...
@@ -89,8 +100,31 @@ class DealScreenController :
...
@@ -89,8 +100,31 @@ class DealScreenController :
showError
(
viewState
.
exception
)
showError
(
viewState
.
exception
)
private
val
View
.
title
get
()
=
this
.
findViewById
<
MaterialTextView
>(
R
.
id
.
info_ceil_header
)
private
val
View
.
text
get
()
=
this
.
findViewById
<
MaterialTextView
>(
R
.
id
.
info_ceil_content
)
private
fun
render
(
viewState
:
DealScreenViewState
.
LoadDeal
)
{
private
fun
render
(
viewState
:
DealScreenViewState
.
LoadDeal
)
{
info1
.
title
.
text
=
resources
?.
getString
(
R
.
string
.
building
)
info1
.
text
.
text
=
viewState
.
estate
.
estate
.
commonInfo
?.
building
.
toString
()
info2
.
title
.
text
=
resources
?.
getString
(
R
.
string
.
section_begin
)
info2
.
text
.
text
=
viewState
.
estate
.
estate
.
commonInfo
?.
section_begin
.
toString
()
info3
.
title
.
text
=
resources
?.
getString
(
R
.
string
.
floor
)
info3
.
text
.
text
=
viewState
.
estate
.
estate
.
commonInfo
?.
floor
.
toString
()
info4
.
title
.
text
=
resources
?.
getString
(
R
.
string
.
area
)
info4
.
text
.
text
=
resources
?.
getString
(
R
.
string
.
area_value
,
viewState
.
estate
.
estate
.
commonInfo
?.
area
)
dealSum
.
text
=
viewState
.
estate
.
opportunitySum
.
toRubly
()
dealPayed
.
text
=
viewState
.
estate
.
paymentSum
.
toRubly
()
dealSumToPay
.
text
=
viewState
.
estate
.
amount_pay_sum
.
toRubly
()
viewState
.
statusList
.
forEach
{
viewState
.
statusList
.
forEach
{
val
statusLayout
=
LayoutInflater
.
from
(
activity
)
val
statusLayout
=
LayoutInflater
.
from
(
activity
)
...
@@ -117,7 +151,7 @@ class DealScreenController :
...
@@ -117,7 +151,7 @@ class DealScreenController :
val
statusTitle
=
statusLayout
.
findViewById
<
MaterialTextView
>(
R
.
id
.
title
)
val
statusTitle
=
statusLayout
.
findViewById
<
MaterialTextView
>(
R
.
id
.
title
)
Timber
.
d
(
"layouted statusTitle : $statusTitle"
)
Timber
.
d
(
"layouted statusTitle : $statusTitle"
)
statusTitle
.
text
=
it
.
t
itle
statusTitle
.
text
=
it
.
shortT
itle
progressLayout
.
addView
(
statusLayout
)
progressLayout
.
addView
(
statusLayout
)
}
}
progressLayout
.
invalidate
()
progressLayout
.
invalidate
()
...
...
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