Commit 36153e6e authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

added activity views

added view utils
fix styles naming
parent d112f556
package com.biganto.visual.roompark.view_utils.app_bar
import android.content.Context
import android.util.AttributeSet
import com.google.android.material.appbar.AppBarLayout
/**
* Created by Vladislav Bogdashkin on 23.05.2019.
*/
class DragControlAppBarLayoutBehaviour(context: Context, attrs: AttributeSet)
: AppBarLayout.Behavior(context, attrs) {
var allowDrag = false
init {
setDragCallback(object : DragCallback() {
override fun canDrag(appBarLayout: AppBarLayout): Boolean = allowDrag
})
}
}
\ No newline at end of file
package com.biganto.visual.roompark.view_utils.grid
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.NO_POSITION
import androidx.recyclerview.widget.StaggeredGridLayoutManager
/**
* Created by Vladislav Bogdashkin on 04.06.2019.
*/
class CeilsDecoration(private val spanCount:Int, private val spacing:Int? = 0)
: RecyclerView.ItemDecoration
() {
override fun getItemOffsets(outRect: Rect, view: View,
parent: RecyclerView, state: RecyclerView.State) {
val layoutParams = view.layoutParams as? StaggeredGridLayoutManager.LayoutParams? ?: return
if (layoutParams.isFullSpan) {
val adapterPosition= layoutParams.viewAdapterPosition
var topMargin = 0
if (adapterPosition != NO_POSITION)
if (adapterPosition!=0)
topMargin=(spacing?:0)/2
outRect.set(0, topMargin, 0, 0)
return
}
val spanIndex = layoutParams.spanIndex
val layoutPosition = layoutParams.viewLayoutPosition
val itemCount = parent.adapter?.itemCount?:0
val leftEdge = spanIndex == 0
val rightEdge = spanIndex == spanCount - 1
val topEdge = spanIndex < spanCount
val bottomEdge = layoutPosition >= itemCount - spanCount
spacing?.let {
outRect.set(
if (leftEdge) it else it/2,
if (topEdge) it else it/2,
if (rightEdge) it else it/2,
if (bottomEdge) it else it/2
)
}?:outRect.set(0,0,0,0)
}
}
\ No newline at end of file
package com.biganto.visual.roompark.view_utils.image_view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Path
import android.graphics.Path.FillType
import android.graphics.RectF
import android.util.AttributeSet
import android.view.View
import android.widget.ImageView
import com.biganto.visual.roompark.R
/**
* Created by Vladislav Bogdashkin on 23.05.2019.
*/
class RoundedImageView @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : ImageView(context, attrs, defStyleAttr){
private lateinit var mMaskPath: Path
private val array =
getContext().obtainStyledAttributes(attrs, R.styleable.RoundedImageView)
private var mCornerRadius =
array.getDimensionPixelSize(R.styleable.RoundedImageView_image_corner_radius,0)
fun init() {
this.setLayerType(View.LAYER_TYPE_HARDWARE, null)
generateMaskPath(width, height)
invalidate()
}
/**
* Set the corner radius to use for the RoundedRectangle.
*
* @param Primitive int - The corner radius of the rounded rectangle.
*/
fun setCornerRadius(cornerRadius: Int) {
mCornerRadius = cornerRadius
generateMaskPath(width, height)
invalidate()
}
override fun onSizeChanged(w: Int, h: Int, oldW: Int, oldH: Int) {
super.onSizeChanged(w, h, oldW, oldH)
if (w != oldW || h != oldH) {
generateMaskPath(w, h)
}
}
private fun generateMaskPath(w: Int, h: Int) {
mMaskPath = Path()
mMaskPath.addRoundRect(RectF(
0f
, 0f
, w.toFloat()
, h.toFloat())
, mCornerRadius.toFloat()
, mCornerRadius.toFloat()
, Path.Direction.CCW)
mMaskPath.fillType = FillType.WINDING
}
val alphaRect = RectF(RectF(0f, 0f, width.toFloat(), height.toFloat()))
override fun onDraw(canvas: Canvas) {
if (canvas.isOpaque) { // If canvas is opaque, make it transparent
alphaRect.set(0f, 0f, width.toFloat(), height.toFloat())
canvas.saveLayerAlpha(alphaRect,255)
}
canvas.clipPath(mMaskPath)
super.onDraw(canvas)
}
}
\ No newline at end of file
package com.biganto.visual.roompark.view_utils.snackbar
import android.app.Activity
import android.view.View
import androidx.core.content.ContextCompat
import com.biganto.visual.roompark.R
import com.biganto.visual.roompark.view_utils.snackbar.SnackBarMessageType.*
import com.google.android.material.snackbar.Snackbar
/**
* Created by Vladislav Bogdashkin on 06.05.2019.
*/
class SnackBarProvider constructor(val activity: Activity) : ISnackBarProvider {
override val isRootBounded: Boolean
get() = rootView != null
override val snackBar: Snackbar?
get() = snack
private var snack: Snackbar? = null
private var rootView: View? = null
private val parentView: View
get() = rootView
?: activity.window.decorView.rootView
private fun color(type: SnackBarMessageType) =
ContextCompat.getColor(activity,
when (type) {
DEFAULT -> R.color.colorAccent
ERROR -> R.color.colorAccent
ATTENTION -> R.color.colorAccent
OK -> R.color.colorAccent
})
private fun actionText(type: SnackBarMessageType) =
activity.getString(
when (type) {
DEFAULT -> R.string.snackbar_dismiss_button_default
ERROR -> R.string.snackbar_dismiss_button_error
ATTENTION -> R.string.snackbar_dismiss_button_attention
OK -> R.string.snackbar_dismiss_button_ok
})
override fun bindRootView(rootView: View?) {
this.rootView = rootView
}
override fun showSnackBar(message: String) {
showSnackBar(message, Snackbar.LENGTH_SHORT)
}
override fun showSnackBar(message: String, length: Int) {
showSnackBar(message, SnackBarMessageType.DEFAULT, length)
}
override fun showSnackBar(message: String, type: SnackBarMessageType, length: Int) {
snack?.dismiss()
snack = Snackbar
.make(parentView, message, length)
.setAction(actionText(type)) {}
.setActionTextColor(color(type))
snack?.show()
}
}
interface ISnackBarProvider{
fun bindRootView(rootView : View?)
val isRootBounded : Boolean
val snackBar : Snackbar?
fun showSnackBar(message: String)
fun showSnackBar(message: String, length: Int)
fun showSnackBar(message: String, type: SnackBarMessageType, length: Int)
}
enum class SnackBarMessageType{
DEFAULT,
ERROR,
ATTENTION,
OK
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/colorAccent" android:state_checked="true" />
<item android:color="@color/colorGray" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4px"/>
<gradient
android:type="linear"
android:angle="270"
android:centerY="@dimen/bottom_gradient_height"
android:startColor="#00000000"
android:endColor="#14000000">
</gradient>
</shape>
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<group>
<clip-path android:pathData="m18.7127,8.2729c0.6038,-0 1.092,0.4887 1.0925,1.0907 0,0.602 -0.4882,1.0907 -1.0925,1.0907L10.5215,10.4543c-0.6033,-0 -1.0925,-0.4887 -1.0925,-1.0907 0,-0.602 0.4893,-1.0907 1.0925,-1.0907zM19.8047,13.4543c0,0.6025 -0.4882,1.0912 -1.092,1.0912L10.5215,14.5455c-0.6033,-0 -1.0925,-0.4887 -1.0925,-1.0912 0,-0.602 0.4893,-1.0907 1.0925,-1.0907l8.1907,-0c0.6043,-0 1.0925,0.4881 1.0925,1.0907zM14.6176,18.6361L10.5215,18.6361c-0.6033,-0 -1.0925,-0.4882 -1.0925,-1.0907 0,-0.6025 0.4893,-1.0912 1.0925,-1.0912l4.0961,-0c0.6033,-0 1.092,0.4887 1.092,1.0912 0,0.602 -0.4887,1.0907 -1.092,1.0907zM22.862,22.3468c0.2111,-0.1389 0.3901,-0.3283 0.5174,-0.5484L23.9013,20.8967L23.9013,26.9093C23.9013,27.5113 23.4121,28 22.8083,28L6.4254,28C5.8221,28 5.3333,27.5118 5.3333,26.9093L5.3333,5.0907C5.3333,4.4887 5.8221,4 6.4254,4L22.8083,4c0.6033,-0 1.0925,0.4882 1.0925,1.0907L23.9008,6.7135L21.7163,10.4926l0,-4.3107L7.5179,6.1819L7.5179,25.8176L21.7163,25.8176l0,-2.7155zM29.3206,9.0521c0.0291,0.1338 0.0081,0.2727 -0.0603,0.3911L22.4335,21.2541C22.3911,21.3271 22.3323,21.3899 22.2613,21.4359L18.6943,23.7878C18.5215,23.9007 18.3001,23.9078 18.1201,23.8047 17.9417,23.701 17.8364,23.506 17.8487,23.2997l0.2556,-4.2612c0.0051,-0.0848 0.0302,-0.167 0.0726,-0.241l6.8262,-11.8088c0.0685,-0.1185 0.1784,-0.2063 0.3088,-0.2477 0.0971,-0.0301 0.9765,-0.2711 2.3661,0.53 1.3896,0.8017 1.6201,1.683 1.6426,1.7811zM20.0706,21.9 L21.1401,21.1944c-0.1759,-0.2272 -0.4862,-0.5356 -1.022,-0.8446 -0.5363,-0.3084 -0.9586,-0.4238 -1.2434,-0.4611L18.7986,21.1663C19.0164,21.251 19.2393,21.3588 19.4617,21.4869 19.683,21.6151 19.8891,21.7535 20.0706,21.9ZM12.9479,23.6765C12.933,23.5836 12.9346,23.4917 12.9381,23.4232 12.8855,23.5228 12.8272,23.6178 12.7643,23.7066 12.5158,24.06 11.8323,23.8501 12.0153,23.3921 12.0281,23.361 12.044,23.3283 12.0598,23.2956 12.0588,23.2951 12.0578,23.2946 12.0568,23.2946 12.0772,23.2435 12.0976,23.194 12.1176,23.1434 12.0174,23.2113 11.9259,23.2905 11.8538,23.4003 11.5511,23.82 10.8553,23.437 11.1467,22.9872 11.3507,22.7043 11.5445,22.4107 11.727,22.1114 10.9693,22.8942 10.2653,23.7312 9.6007,24.5931 9.2837,25.0042 8.5716,24.5977 8.8937,24.1795 9.6437,23.2062 10.4187,22.2284 11.2986,21.3669 11.6503,21.0228 12.1196,20.4494 12.6667,20.4698 12.7986,20.4749 12.9627,20.5418 13.0205,20.6725 13.2091,21.1024 13.0235,21.634 12.7357,22.1365 12.8369,22.1584 12.9269,22.211 12.9913,22.3162 13.0143,22.3555 13.0302,22.3943 13.0465,22.4331 13.2924,22.3933 13.5378,22.4868 13.7306,22.8161c0.0644,0.1098 0.0864,0.1905 0.0864,0.2502 1.0317,-0.17 1.8977,0.0929 2.9387,0.0929 0.5281,-0 0.5281,0.818 0,0.818 -0.8926,-0 -2.0215,-0.4759 -2.8548,-0.071C13.7648,23.9722 13.5695,24.1029 13.4059,24.034 13.2367,23.9635 12.9836,23.8956 12.9479,23.6765Z M 0,0"/>
<group>
<clip-path android:pathData="M-234.6667,93.3333L265.3333,93.3333L265.3333,-989.3333L-234.6667,-989.3333Z M 0,0"/>
<path
android:pathData="M-1.3333,-2.6667L36,-2.6667L36,34.6667L-1.3333,34.6667Z"
android:fillColor="#a1a1a1"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="1"/>
</group>
</group>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<group>
<clip-path android:pathData="M25.4385,6.2567C24.3589,5.6705 23.1205,5.3333 21.7993,5.3333 19.4683,5.3333 17.3807,6.3803 16.0023,8.022 14.6173,6.3803 12.5317,5.3333 10.1975,5.3333 8.8795,5.3333 7.6434,5.6705 6.5613,6.2567 4.2397,7.5239 2.6667,9.9604 2.6667,12.7603 2.6667,13.5619 2.799,14.3307 3.0387,15.0499 4.3314,20.777 16.0023,28 16.0023,28c0,-0 11.6631,-7.2228 12.9577,-12.9501C29.1996,14.3307 29.3333,13.5609 29.3333,12.7603c0,-2.7989 -1.573,-5.2346 -3.8948,-6.5036z M 0,0"/>
<group>
<clip-path android:pathData="M-134.6667,93.3333L365.3333,93.3333L365.3333,-989.3333L-134.6667,-989.3333Z M 0,0"/>
<path
android:pathData="M-4,-1.3333L36,-1.3333L36,34.6667L-4,34.6667Z"
android:fillColor="#a1a1a1"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="1"/>
</group>
</group>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<group>
<clip-path android:pathData="M27,7.6923L30.6667,7.6923L30.6667,24.3077C30.6667,27.9428 27.9167,28 27.9167,28L5,28C1.3333,28 1.3333,24.3077 1.3333,24.3077L1.3333,4L27,4ZM5,26.1538L25.7863,26.1538C25.427,25.7468 25.1667,25.1578 25.1667,24.3077L25.1667,5.8462L3.1667,5.8462L3.1667,24.3077c0,-0 0,1.8462 1.8333,1.8462zM5,9.5385L23.3333,9.5385L23.3333,11.3846L5,11.3846ZM15.0833,20.6154L21.5,20.6154L21.5,22.4615l-6.4167,-0zM15.0833,16.9231L23.3333,16.9231L23.3333,18.7692l-8.25,-0zM15.0833,13.2308L23.3333,13.2308l0,1.8461l-8.25,-0zM5,13.2308L13.25,13.2308L13.25,22.4615L5,22.4615Z M 0,0"/>
<group>
<clip-path android:pathData="M-34.6667,93.3333L465.3333,93.3333L465.3333,-989.3333L-34.6667,-989.3333Z M 0,0"/>
<path
android:pathData="M-5.3333,-2.6667L37.3333,-2.6667L37.3333,34.6667L-5.3333,34.6667Z"
android:fillColor="#a1a1a1"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="1"/>
</group>
</group>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<group>
<clip-path android:pathData="m16,13.2813c-0.401,-0 -0.7273,-0.3154 -0.7273,-0.7031 0,-0.3877 0.3263,-0.7031 0.7273,-0.7031 0.401,-0 0.7273,0.3154 0.7273,0.7031 0,0.3877 -0.3263,0.7031 -0.7273,0.7031zM9.697,28L9.697,8.2187L22.303,8.2187L22.303,28ZM20.1212,17.9219c-0.4017,-0 -0.7273,0.3148 -0.7273,0.7031 0,0.3883 0.3256,0.7031 0.7273,0.7031 0.4017,-0 0.7273,-0.3148 0.7273,-0.7031 0,-0.3883 -0.3256,-0.7031 -0.7273,-0.7031zM16,10.4687c-1.2031,-0 -2.1818,0.9463 -2.1818,2.1094 0,1.1631 0.9788,2.1094 2.1818,2.1094 1.2031,-0 2.1818,-0.9463 2.1818,-2.1094 0,-1.1631 -0.9788,-2.1094 -2.1818,-2.1094zM5.3333,4L26.6667,4L26.6667,28L23.7576,28L23.7576,6.8125L8.2424,6.8125L8.2424,28L5.3333,28Z M 0,0"/>
<group>
<clip-path android:pathData="M-334.6667,93.3333L165.3333,93.3333L165.3333,-989.3333L-334.6667,-989.3333Z M 0,0"/>
<path
android:pathData="M-1.3333,-2.6667L33.3333,-2.6667L33.3333,34.6667L-1.3333,34.6667Z"
android:fillColor="#a1a1a1"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="1"/>
</group>
</group>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<group>
<clip-path android:pathData="m16.003,20.6667c-2.6496,-0 -4.7976,-2.0893 -4.7976,-4.6667 0,-2.5773 2.148,-4.6667 4.7976,-4.6667 2.6496,-0 4.7976,2.0893 4.7976,4.6667 0,2.5773 -2.148,4.6667 -4.7976,4.6667zM26.1876,17.2933c0.0548,-0.4267 0.0959,-0.8533 0.0959,-1.2933 0,-0.44 -0.0411,-0.88 -0.0959,-1.3333l2.8923,-2.1733c0.2604,-0.2 0.329,-0.56 0.1645,-0.8533l-2.7415,-4.6133c-0.1645,-0.2933 -0.5346,-0.4133 -0.8361,-0.2933l-3.4131,1.3333c-0.7128,-0.52 -1.453,-0.9733 -2.3165,-1.3067L19.4299,3.2267C19.375,2.9067 19.0872,2.6667 18.7445,2.6667L13.2616,2.6667C12.9189,2.6667 12.631,2.9067 12.5762,3.2267L12.069,6.76C11.2054,7.0933 10.4652,7.5467 9.7525,8.0667l-3.4131,-1.3333c-0.3016,-0.12 -0.6717,-0 -0.8361,0.2933L2.7617,11.64C2.5835,11.9333 2.6658,12.2933 2.9262,12.4933L5.8184,14.6667C5.7636,15.12 5.7225,15.56 5.7225,16c0,0.44 0.0411,0.8667 0.096,1.2933L2.9262,19.5067C2.6658,19.7067 2.5835,20.0667 2.7617,20.36L5.5032,24.9733C5.6677,25.2667 6.0378,25.3733 6.3393,25.2667L9.7525,23.92C10.4652,24.4533 11.2054,24.9067 12.069,25.24L12.5762,28.7733C12.631,29.0933 12.9189,29.3333 13.2616,29.3333l5.483,-0c0.3427,-0 0.6305,-0.24 0.6854,-0.56l0.5072,-3.5333c0.8636,-0.3467 1.6038,-0.7867 2.3165,-1.32l3.4131,1.3467c0.3016,0.1067 0.6717,-0 0.8361,-0.2933l2.7415,-4.6133c0.1645,-0.2933 0.096,-0.6533 -0.1645,-0.8533z M 0,0"/>
<group>
<clip-path android:pathData="M-434.6666,93.3333L65.3333,93.3333l0,-1082.6666l-500,-0z M 0,0"/>
<path
android:pathData="M-4,-4L36,-4L36,36L-4,36Z"
android:fillColor="#a1a1a1"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="1"/>
</group>
</group>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/bottom_drawer_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".base.RoomParkMainActivity">
<TextView
android:id="@+id/entryTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
layout="@layout/bell_switch_view"
android:layout_width="wrap_content"
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/topToolbarHolder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="56dp"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="144dp"
android:background="@color/colorCommonBackground"
android:clipToPadding="true"
android:theme="@style/ThemeOverlay.AppCompat.Light"
app:elevation="0dp"
app:expanded="false"
app:layout_behavior=".view_utils.app_bar.DragControlAppBarLayoutBehaviour"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsingToolbarLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never"
android:visibility="invisible"
app:expandedTitleGravity="bottom"
app:expandedTitleMargin="16dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<androidx.appcompat.widget.Toolbar
android:id="@+id/top_toolbar"
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
android:visibility="invisible"
app:layout_collapseMode="pin"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:showAsAction="always"
tools:visibility="invisible">
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<com.bluelinelabs.conductor.ChangeHandlerFrameLayout
android:id="@+id/conductor_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBackground"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />
<!--</android.support.constraint.ConstraintLayout>-->
<View
android:id="@+id/bottom_view_divider"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_gradient_height"
android:layout_gravity="bottom"
android:background="@drawable/botttom_bar_shadow" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:fitsSystemWindows="true"
android:visibility="visible"
app:elevation="0dp"
app:itemBackground="@color/colorCommonBackground"
app:itemHorizontalTranslationEnabled="false"
app:itemIconTint="@drawable/bottom_navigation_icon_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_navigation_menu"
tools:visibility="invisible">
</com.google.android.material.bottomnavigation.BottomNavigationView>
</FrameLayout>
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/entryTextView"
app:layout_constraintVertical_bias="0.16000003" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<group
android:checkableBehavior="single"
android:enabled="true"
android:visible="true">
<item
android:id="@+id/tab_feeds"
android:enabled="true"
android:icon="@drawable/ic_feeds"
android:title="@string/feeds"
app:showAsAction="ifRoom" />
<item
android:id="@+id/tab_favorites"
android:enabled="true"
android:icon="@drawable/ic_favorites"
android:title="@string/favorites"
app:showAsAction="ifRoom" />
<item
android:id="@+id/tab_deals"
android:enabled="true"
android:icon="@drawable/ic_deals"
android:title="@string/my_deals"
app:showAsAction="always" />
<item
android:id="@+id/tab_look_flat"
android:enabled="true"
android:icon="@drawable/ic_flat"
android:title="@string/flats"
app:showAsAction="always" />
<item
android:id="@+id/tab_settings"
android:enabled="true"
android:icon="@drawable/ic_settings"
android:title="@string/settings"
app:showAsAction="always" />
</group>
</menu>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="RoundedImageView">
<attr name="image_corner_radius" format="dimension"/>
</declare-styleable>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">Room Park</string>
<string name="feeds">Новости</string>
<string name="favorites">МОИ КВАРТИРЫ</string>
<string name="my_deals">МОИ СДЕЛКИ</string>
<string name="flats">СМОТРЕТЬ КВАРТИРУ</string>
<string name="settings">Настройки</string>
<string name="snackbar_dismiss_button_default">ПОНЯТНО</string>
<string name="snackbar_dismiss_button_error">ОШИБКА</string>
<string name="snackbar_dismiss_button_attention">ВНИМАНИЕ</string>
<string name="snackbar_dismiss_button_ok">ОК</string>
</resources>
......@@ -49,113 +49,113 @@
<item name="android:fontFamily">@font/acrom_regular</item>
</style>
<style name=".Header_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Header_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/main_header</item>
</style>
<style name=".Main_Header" parent=".Header_TextView">
<style name="Header_TextView.Main_Header">
<item name="android:textColor">@color/colorHeaderText</item>
</style>
<style name=".Accent_Header" parent=".Header_TextView">
<style name="Header_TextView.Accent_Header">
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name=".Inverted_Header" parent=".Header_TextView">
<style name="Header_TextView.Inverted_Header">
<item name="android:textColor">@color/colorCommonText</item>
</style>
<style name=".Flat_Input_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Flat_Input_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/super_size</item>
</style>
<style name=".Flat_Text" parent=".Flat_Input_TextView">
<style name="Flat_Input_TextView.Flat_Text">
<item name="android:textColor">@color/colorHeaderText</item>
</style>
<style name=".Flat_Error" parent=".Flat_Input_TextView">
<style name="Flat_Input_TextView.Flat_Error">
<item name="android:textColor">@color/colorError</item>
</style>
<style name=".Flat_Notice" parent=".Flat_Input_TextView">
<style name="Flat_Input_TextView.Flat_Notice">
<item name="android:textColor">@color/colorNoticeText</item>
</style>
<style name=".Currency_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Currency_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/currency</item>
</style>
<style name=".Currency" parent=".Currency_TextView">
<style name="Currency_TextView.Currency">
<item name="android:textColor">@color/colorHeaderText</item>
</style>
<style name=".Currency_Accent" parent=".Currency_TextView">
<style name="Currency_TextView.Currency_Accent">
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name=".Default_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Default_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/accent_header</item>
</style>
<style name=".Accent_Text" parent=".Default_TextView">
<style name="Default_TextView.Accent_Text">
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name=".Header_Text" parent=".Default_TextView">
<style name="Default_TextView.Header_Text">
<item name="android:textColor">@color/colorHeaderText</item>
</style>
<style name=".Inverted_Text" parent=".Default_TextView">
<style name="Default_TextView.Inverted_Text">
<item name="android:textColor">@color/colorInvertedText</item>
</style>
<style name=".Feed_Title" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Feed_Title" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/common_text</item>
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name=".Common_Text" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<style name="Common_Text" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<item name="android:textSize">@dimen/common_text</item>
</style>
<style name=".Default" parent=".Common_Text">
<style name="Common_Text.Default">
<item name="android:textColor">@color/colorCommonText</item>
</style>
<style name=".Notice" parent=".Common_Text">
<style name="Common_Text.Notice">
<item name="android:textColor">@color/colorNoticeText</item>
</style>
<style name=".Inverted" parent=".Common_Text">
<style name="Common_Text.Inverted">
<item name="android:textColor">@color/colorInvertedText</item>
</style>
<style name="Inverted_Notice" parent=".Common_Text">
<style name="Common_Text.Inverted_Notice">
<item name="android:textColor">@color/colorInvertedNoticeText</item>
</style>
<style name=".Accent_Minor_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<style name="Accent_Minor_TextView" parent="Base.Widget.AppCompat.TextView.AcromMediumTextView">
<item name="android:textSize">@dimen/minor_text</item>
</style>
<style name=".Default" parent=".Accent_Minor_TextView">
<style name="Accent_Minor_TextView.Default">
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name=".Inverted" parent=".Accent_Minor_TextView">
<style name="Accent_Minor_TextView.Inverted">
<item name="android:textColor">@color/colorNoticeText</item>
</style>
<style name=".Feed" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<style name="Feed" parent="Base.Widget.AppCompat.TextView.AcromRegularTextView">
<item name="android:textSize">@dimen/lite_notice</item>
</style>
<style name=".Notice" parent=".Accent_Minor_TextView">
<style name="Feed.Notice">
<item name="android:textColor">@color/colorNoticeText</item>
</style>
<style name=".Description" parent=".Accent_Minor_TextView">
<style name="Feed.Description">
<item name="android:textColor">@color/colorCommonText</item>
</style>
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="default_icon_width">24dp</dimen>
<dimen name="default_icon_height">24dp</dimen>
<dimen name="sub_icon_width">12dp</dimen>
<dimen name="sub_icon_height">12dp</dimen>
<dimen name="bottom_gradient_height">3dp</dimen>
<dimen name="ceil_grid_padding">8dp</dimen>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment