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
b338b557
Commit
b338b557
authored
Apr 20, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dis fixes
parent
1b342e91
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
DownloadPlansDialogController.kt
...ompark/conductor/dialogs/DownloadPlansDialogController.kt
+8
-4
flat_placeholder.png
app/src/main/res/drawable/flat_placeholder.png
+0
-0
strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/DownloadPlansDialogController.kt
View file @
b338b557
...
@@ -20,6 +20,7 @@ import com.biganto.visual.roompark.domain.use_case.DownloadUseCase
...
@@ -20,6 +20,7 @@ import com.biganto.visual.roompark.domain.use_case.DownloadUseCase
import
com.biganto.visual.roompark.util.view_utils.snackbar.ISnackBarProvider
import
com.biganto.visual.roompark.util.view_utils.snackbar.ISnackBarProvider
import
com.bluelinelabs.conductor.Controller
import
com.bluelinelabs.conductor.Controller
import
com.bumptech.glide.Glide
import
com.bumptech.glide.Glide
import
com.bumptech.glide.load.resource.bitmap.FitCenter
import
com.google.android.material.textview.MaterialTextView
import
com.google.android.material.textview.MaterialTextView
import
dagger.Binds
import
dagger.Binds
import
dagger.BindsInstance
import
dagger.BindsInstance
...
@@ -51,6 +52,7 @@ class DownloadPlansDialogController : Controller {
...
@@ -51,6 +52,7 @@ class DownloadPlansDialogController : Controller {
lateinit
var
downloaderBg
:
ImageView
lateinit
var
downloaderBg
:
ImageView
lateinit
var
downloadTourTitleText
:
MaterialTextView
lateinit
var
downloadTourTitleText
:
MaterialTextView
lateinit
var
cancelDownloadText
:
MaterialTextView
lateinit
var
cancelDownloadText
:
MaterialTextView
lateinit
var
downloadingContentText
:
MaterialTextView
override
fun
onContextAvailable
(
context
:
Context
)
{
override
fun
onContextAvailable
(
context
:
Context
)
{
super
.
onContextAvailable
(
context
)
super
.
onContextAvailable
(
context
)
...
@@ -86,6 +88,8 @@ class DownloadPlansDialogController : Controller {
...
@@ -86,6 +88,8 @@ class DownloadPlansDialogController : Controller {
downloaderBg
=
view
.
findViewById
(
R
.
id
.
backgroundDownloader
)
downloaderBg
=
view
.
findViewById
(
R
.
id
.
backgroundDownloader
)
cancelDownloadText
=
view
.
findViewById
(
R
.
id
.
cancelDownloadButton
)
cancelDownloadText
=
view
.
findViewById
(
R
.
id
.
cancelDownloadButton
)
downloadTourTitleText
=
view
.
findViewById
(
R
.
id
.
tourToDownloadTitle
)
downloadTourTitleText
=
view
.
findViewById
(
R
.
id
.
tourToDownloadTitle
)
downloadingContentText
=
view
.
findViewById
(
R
.
id
.
downloadingTitle
)
downloadingContentText
.
text
=
resources
?.
getString
(
R
.
string
.
download_plan_types_screen_title
)
// progress.visibility = View.VISIBLE
// progress.visibility = View.VISIBLE
...
@@ -94,10 +98,10 @@ class DownloadPlansDialogController : Controller {
...
@@ -94,10 +98,10 @@ class DownloadPlansDialogController : Controller {
downloadTourTitleText
.
text
=
""
downloadTourTitleText
.
text
=
""
Glide
.
with
(
view
)
Glide
.
with
(
view
)
.
load
(
R
.
drawable
.
ic_plan
)
.
load
(
R
.
drawable
.
flat_placeholder
)
.
fitCenter
(
)
.
transform
(
BlurTransformation
(
13
,
4
)
.
transform
(
BlurTransformation
(
25
,
12
)
,
ColorFilterTransformation
(
0
x99000000
.
toInt
()
)
,
ColorFilterTransformation
(
0
x99000000
.
toInt
()
))
,
FitCenter
(
))
.
into
(
downloaderBg
)
.
into
(
downloaderBg
)
disposables
.
add
(
disposables
.
add
(
...
...
app/src/main/res/drawable/flat_placeholder.png
0 → 100644
View file @
b338b557
64.3 KB
app/src/main/res/values/strings.xml
View file @
b338b557
...
@@ -124,5 +124,6 @@
...
@@ -124,5 +124,6 @@
<string
name=
"download_all_tours_settings_with_size"
>
Скачать виртуальные туры моих квартир из избранного и сделок (%s)
</string>
<string
name=
"download_all_tours_settings_with_size"
>
Скачать виртуальные туры моих квартир из избранного и сделок (%s)
</string>
<string
name=
"download_all_plan_types_settings_with_sizes"
>
Скачать карточки моих квартир из избранного и сделок (%s)
</string>
<string
name=
"download_all_plan_types_settings_with_sizes"
>
Скачать карточки моих квартир из избранного и сделок (%s)
</string>
<string
name=
"plan_types_download_completed"
>
Загрузка планов завершена.
</string>
<string
name=
"plan_types_download_completed"
>
Загрузка планов завершена.
</string>
<string
name=
"download_plan_types_screen_title"
>
Cкачиваются планировки
</string>
</resources>
</resources>
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