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
b1d17e78
Commit
b1d17e78
authored
Jan 28, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tablayout flat plan types
parent
1b5cd5fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
52 deletions
+62
-52
ScreenController.kt
...l/roompark/presentation/screen/estate/ScreenController.kt
+9
-4
flat_full_card_screen.xml
app/src/main/res/layout/flat_full_card_screen.xml
+21
-4
flat_plan_type_selector_view.xml
app/src/main/res/layout/flat_plan_type_selector_view.xml
+31
-43
simple_text_tabs.xml
app/src/main/res/layout/simple_text_tabs.xml
+1
-1
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/estate/ScreenController.kt
View file @
b1d17e78
...
@@ -167,6 +167,12 @@ class EstateScreenController :
...
@@ -167,6 +167,12 @@ class EstateScreenController :
@BindView
(
R
.
id
.
start_tour_card
)
@BindView
(
R
.
id
.
start_tour_card
)
lateinit
var
startTour
:
View
lateinit
var
startTour
:
View
@BindView
(
R
.
id
.
info_tab_divider
)
lateinit
var
infoTabDivicder
:
View
@BindView
(
R
.
id
.
start_tour_card_divider
)
lateinit
var
startTourDivider
:
View
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
setToolbar
(
null
,
StatusToolbarModel
())
toolBar
.
setToolbar
(
null
,
StatusToolbarModel
())
...
@@ -259,18 +265,17 @@ class EstateScreenController :
...
@@ -259,18 +265,17 @@ class EstateScreenController :
}
}
}
}
startTour
.
setGone
(
viewState
.
estate
.
multitourId
==
null
)
startTour
.
setGone
(
viewState
.
estate
.
multitourId
==
null
)
startTourDivider
.
setGone
(
viewState
.
estate
.
multitourId
==
null
)
when
(
viewState
.
estate
.
type
){
when
(
viewState
.
estate
.
type
){
FlatType
.
FLAT
->
{
FlatType
.
FLAT
->
{
flatTypeView
.
setGone
(
false
)
flatTypeView
.
setGone
(
false
)
planTypesTabLayout
.
setGone
(
false
)
infoTabDivicder
.
setGone
(
false
)
planWebView
.
setGone
(
false
)
explicationTab
.
setGone
(
false
)
explicationTab
.
setGone
(
false
)
}
}
else
->
{
else
->
{
flatTypeView
.
setGone
(
true
)
flatTypeView
.
setGone
(
true
)
planTypesTabLayout
.
setGone
(
true
)
infoTabDivicder
.
setGone
(
true
)
planWebView
.
setGone
(
true
)
explicationTab
.
setGone
(
true
)
explicationTab
.
setGone
(
true
)
}
}
}
}
...
...
app/src/main/res/layout/flat_full_card_screen.xml
View file @
b1d17e78
...
@@ -13,13 +13,30 @@
...
@@ -13,13 +13,30 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/flat_plan_type_selector_view"
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/flat_title"
style=
"@style/Header_TextView.Main_Header"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:text=
"..."
android:textAlignment=
"viewStart"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<include
android:id=
"@+id/flatTypesCustomView"
android:id=
"@+id/flatTypesCustomView"
layout=
"@layout/flat_plan_type_selector_view"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:visibility=
"visible"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
app:layout_constraintTop_toBottomOf=
"@+id/flat_title"
/>
<include
<include
android:id=
"@+id/switch_flat_content_tab"
android:id=
"@+id/switch_flat_content_tab"
...
@@ -47,7 +64,7 @@
...
@@ -47,7 +64,7 @@
<include
<include
android:id=
"@+id/
include10
"
android:id=
"@+id/
start_tour_card_divider
"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
...
@@ -65,7 +82,7 @@
...
@@ -65,7 +82,7 @@
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/
include10
"
/>
app:layout_constraintTop_toBottomOf=
"@+id/
start_tour_card_divider
"
/>
<include
<include
android:id=
"@+id/include11"
android:id=
"@+id/include11"
...
...
app/src/main/res/layout/flat_plan_type_selector_view.xml
View file @
b1d17e78
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<com.google.android.material.textview.MaterialTextView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/flat_title"
xmlns:tools=
"http://schemas.android.com/tools"
style=
"@style/Header_TextView.Main_Header"
android:layout_width=
"match_parent"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_marginStart=
"16dp"
tools:ignore=
"WebViewLayout"
>
android:layout_marginTop=
"4dp"
android:layout_marginEnd=
"16dp"
android:text=
"Кв..."
android:textAlignment=
"viewStart"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<com.google.android.material.tabs.TabLayout
<com.google.android.material.tabs.TabLayout
android:id=
"@+id/planTypesTabs"
android:id=
"@+id/planTypesTabs"
android:layout_width=
"0dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"24dp"
android:layout_marginTop=
"16dp"
app:layout_constraintEnd_toEndOf=
"parent"
android:layout_gravity=
"bottom"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/flat_title"
android:layout_marginStart=
"16dp"
app:tabMaxWidth=
"@dimen/tab_max_width"
android:padding=
"0dp"
app:tabPaddingStart=
"0dp"
app:tabPaddingEnd=
"0dp"
app:tabPaddingTop=
"0dp"
app:tabPaddingBottom=
"0dp"
app:tabMinWidth=
"0dp"
app:tabMode=
"scrollable"
/>
app:tabMode=
"scrollable"
/>
<include
<include
android:id=
"@+id/include5"
android:id=
"@+id/include5"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
1dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:minHeight=
"200dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -46,7 +38,7 @@
...
@@ -46,7 +38,7 @@
<com.google.android.material.textview.MaterialTextView
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/textView19"
android:id=
"@+id/textView19"
style=
"@style/Common_Text.Default"
style=
"@style/Common_Text.Default"
android:layout_width=
"
0dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
...
@@ -64,6 +56,7 @@
...
@@ -64,6 +56,7 @@
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:minHeight=
"200dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView19"
/>
app:layout_constraintTop_toBottomOf=
"@+id/textView19"
/>
...
@@ -73,10 +66,9 @@
...
@@ -73,10 +66,9 @@
android:id=
"@+id/include6"
android:id=
"@+id/include6"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
1dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"24dp"
android:layout_marginTop=
"24dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -84,7 +76,7 @@
...
@@ -84,7 +76,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/sizes_switch_container"
android:id=
"@+id/sizes_switch_container"
android:layout_width=
"
0dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
...
@@ -117,10 +109,9 @@
...
@@ -117,10 +109,9 @@
android:id=
"@+id/include7"
android:id=
"@+id/include7"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
1dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -128,7 +119,7 @@
...
@@ -128,7 +119,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/furniture_switch_container"
android:id=
"@+id/furniture_switch_container"
android:layout_width=
"
0dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
...
@@ -161,10 +152,9 @@
...
@@ -161,10 +152,9 @@
android:id=
"@+id/include8"
android:id=
"@+id/include8"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
1dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -172,7 +162,7 @@
...
@@ -172,7 +162,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/electricity_switch_container"
android:id=
"@+id/electricity_switch_container"
android:layout_width=
"
0dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
...
@@ -201,15 +191,13 @@
...
@@ -201,15 +191,13 @@
</LinearLayout>
</LinearLayout>
<include
<include
android:id=
"@+id/walls_divider"
android:id=
"@+id/walls_divider"
layout=
"@layout/horizontal_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
1dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -218,7 +206,7 @@
...
@@ -218,7 +206,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/walls_switch_container"
android:id=
"@+id/walls_switch_container"
android:layout_width=
"
0dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
...
@@ -259,4 +247,4 @@
...
@@ -259,4 +247,4 @@
app:layout_constraintTop_toBottomOf=
"@+id/walls_switch_container"
/>
app:layout_constraintTop_toBottomOf=
"@+id/walls_switch_container"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/simple_text_tabs.xml
View file @
b1d17e78
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
android:text=
"Общая информация"
/>
android:text=
"Общая информация"
/>
<com.google.android.material.textview.MaterialTextView
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/
textView21
"
android:id=
"@+id/
info_tab_divider
"
style=
"@style/Default_TextView.Accent_Text"
style=
"@style/Default_TextView.Accent_Text"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
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