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
da427cab
Commit
da427cab
authored
Mar 16, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper close floating button
parent
d32c134f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
20 deletions
+54
-20
ChooseResolutionDialogController.kt
...ark/conductor/dialogs/ChooseResolutionDialogController.kt
+5
-2
PhotoDialogController.kt
...isual/roompark/conductor/dialogs/PhotoDialogController.kt
+3
-1
ScreenController.kt
...roompark/presentation/screen/settings/ScreenController.kt
+0
-1
ScreenController.kt
.../roompark/presentation/screen/web_cam/ScreenController.kt
+6
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+1
-1
feed_read_header.xml
app/src/main/res/layout/feed_read_header.xml
+9
-5
photo_view_screen.xml
app/src/main/res/layout/photo_view_screen.xml
+9
-6
photo_viewer.xml
app/src/main/res/layout/photo_viewer.xml
+19
-2
strings.xml
app/src/main/res/values/strings.xml
+1
-0
styles.xml
app/src/main/res/values/styles.xml
+1
-2
No files found.
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/ChooseResolutionDialogController.kt
View file @
da427cab
...
...
@@ -11,7 +11,6 @@ import androidx.recyclerview.widget.RecyclerView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.conductor.dialogs.change_handler.DialogChangeHandler
import
com.biganto.visual.roompark.conductor.dialogs.change_handler.PhotoDialogController
import
com.biganto.visual.roompark.domain.model.PhotoResolutionModel
import
com.biganto.visual.roompark.presentation.screen.settings.util.CommonRecyclerAdapter
import
com.biganto.visual.roompark.presentation.screen.settings.util.CommonViewHolder
...
...
@@ -68,7 +67,11 @@ class ChooseResolutionDialogController : Controller {
detachDisposable
.
add
(
(
recyclerView
.
adapter
as
PhotoSizeAdapter
).
onItemClicked
.
subscribe
{
Timber
.
d
(
"gonna shit : $it"
)
router
.
replaceTopController
(
RouterTransaction
.
with
(
PhotoDialogController
(
it
.
url
))
router
.
replaceTopController
(
RouterTransaction
.
with
(
PhotoDialogController
(
it
.
url
)
)
.
popChangeHandler
(
DialogChangeHandler
())
.
pushChangeHandler
(
DialogChangeHandler
())
)
...
...
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/
change_handler/
PhotoDialogController.kt
→
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/PhotoDialogController.kt
View file @
da427cab
package
com.biganto.visual.roompark.conductor.dialogs
.change_handler
package
com.biganto.visual.roompark.conductor.dialogs
import
android.content.pm.ActivityInfo
import
android.graphics.Bitmap
...
...
@@ -43,6 +43,8 @@ class PhotoDialogController : Controller {
val
progress
=
view
.
findViewById
<
ProgressBar
>(
R
.
id
.
photo_load_progress_bar
)
progress
.
visibility
=
View
.
VISIBLE
view
.
findViewById
<
View
>(
R
.
id
.
close_current_button
).
setOnClickListener
{
handleBack
()
}
activity
?.
requestedOrientation
=
ActivityInfo
.
SCREEN_ORIENTATION_USER_LANDSCAPE
args
.
getString
(
PHOTO_URL_KEY
)
?.
let
{
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/settings/ScreenController.kt
View file @
da427cab
...
...
@@ -72,7 +72,6 @@ class SettingsScreenController :
@BindView
(
R
.
id
.
signOutButton
)
lateinit
var
signOutButton
:
MaterialTextView
private
fun
setToolbar
(){
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
nestedScrollContainer
pushRecycler
.
isNestedScrollingEnabled
=
false
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/web_cam/ScreenController.kt
View file @
da427cab
...
...
@@ -7,6 +7,7 @@ import android.view.View
import
android.view.WindowManager
import
androidx.core.os.bundleOf
import
butterknife.BindView
import
butterknife.OnClick
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
...
...
@@ -44,6 +45,11 @@ class WebCamScreenController :
constructor
(
id
:
Int
)
:
super
(
bundleOf
(
SELECTED_CAM_INDEX_KEY
to
id
))
@OnClick
(
R
.
id
.
close_current_button
)
private
fun
onClickExit
(){
handleBack
()
}
@BindView
(
R
.
id
.
webCamPlayerView
)
lateinit
var
playerView
:
PlayerView
...
...
app/src/main/res/layout/activity_main.xml
View file @
da427cab
...
...
@@ -129,7 +129,7 @@
app:itemBackground=
"@color/colorCommonBackground"
app:itemHorizontalTranslationEnabled=
"false"
app:itemIconTint=
"@drawable/bottom_navigation_icon_selector"
app:labelVisibilityMode=
"labeled"
app:labelVisibilityMode=
"
un
labeled"
app:menu=
"@menu/bottom_navigation_menu"
tools:visibility=
"visible"
>
...
...
app/src/main/res/layout/feed_read_header.xml
View file @
da427cab
...
...
@@ -43,15 +43,19 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/articlePreview"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
<ImageView
android:id=
"@+id/articleCloseButton"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
32dp
"
android:layout_height=
"
32dp
"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"8dp"
android:clickable=
"true"
android:contentDescription=
"@string/content_description_close"
android:focusable=
"true"
android:scaleType=
"fitXY"
android:src=
"@drawable/ic_close_circled"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@android:drawable/presence_offline"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/photo_view_screen.xml
View file @
da427cab
...
...
@@ -8,8 +8,8 @@
android:background=
"#000000"
>
<com.google.android.material.textview.MaterialTextView
android:id=
"@+id/photoTitle"
style=
"@style/Common_Text.Inverted"
android:id=
"@+id/photoTitle"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"56dp"
...
...
@@ -19,13 +19,16 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<
com.google.android.material.floatingactionbutton.FloatingActionButton
android:id=
"@+id/
floatingActionButton2
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_content
"
<
ImageView
android:id=
"@+id/
close_current_button
"
android:layout_width=
"
32dp
"
android:layout_height=
"
32dp
"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"8dp"
android:clickable=
"true"
android:contentDescription=
"@string/content_description_close"
android:focusable=
"true"
android:scaleType=
"fitXY"
android:src=
"@drawable/ic_close_circled"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
@@ -70,7 +73,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/guideline2"
app:layout_constraintVertical_bias=
"0.0"
app:srcCompat=
"@drawable/iic_full_view"
/>
app:srcCompat=
"@drawable/iic_full_view"
/>
<com.biganto.visual.roompark.presentation.screen.photo.util.PhotoPreviewSlider
android:id=
"@+id/photosPreviewSlider"
...
...
app/src/main/res/layout/photo_viewer.xml
View file @
da427cab
...
...
@@ -2,8 +2,10 @@
<RelativeLayout
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"
android:background=
"#000000"
>
<com.github.chrisbanes.photoview.PhotoView
android:id=
"@+id/photo_frame"
android:layout_width=
"match_parent"
...
...
@@ -15,7 +17,22 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:indeterminate=
"true"
android:layout_gravity=
"center"
/>
android:layout_gravity=
"center"
android:indeterminate=
"true"
/>
<ImageView
android:id=
"@+id/close_current_button"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_alignParentTop=
"true"
android:layout_alignParentEnd=
"true"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"8dp"
android:clickable=
"true"
android:contentDescription=
"@string/content_description_close"
android:focusable=
"true"
android:focusableInTouchMode=
"true"
android:scaleType=
"fitXY"
android:src=
"@drawable/ic_close_circled"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
da427cab
...
...
@@ -90,6 +90,7 @@
<string
name=
"estate_type_store_short"
>
КЛ.%s
</string>
<string
name=
"estate_type_other_short"
>
ОБ.%s
</string>
<string
name=
"tour_not_allowed"
>
Запуск туров пока недоступен!
</string>
<string
name=
"content_description_close"
>
Close
</string>
<!--endregion-->
</resources>
app/src/main/res/values/styles.xml
View file @
da427cab
<resources
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<resources>
<!-- Base application theme. -->
<style
name=
"AppTheme"
parent=
"Theme.MaterialComponents.Light.NoActionBar"
>
...
...
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