center the top label vertically
This commit is contained in:
parent
18a985692a
commit
7ae80e70d3
|
@ -26,9 +26,6 @@ class DayFragment : Fragment(), DBHelper.DBOperationsListener, AdapterView.OnIte
|
||||||
private val EDIT_EVENT = 1
|
private val EDIT_EVENT = 1
|
||||||
|
|
||||||
private var mTextColor: Int = 0
|
private var mTextColor: Int = 0
|
||||||
private var mWeakTextColor: Int = 0
|
|
||||||
private var mTextColorWithEvent: Int = 0
|
|
||||||
private var mWeakTextColorWithEvent: Int = 0
|
|
||||||
private var mDayCode: String = ""
|
private var mDayCode: String = ""
|
||||||
private var mEvents: MutableList<Event>? = null
|
private var mEvents: MutableList<Event>? = null
|
||||||
private var mListener: NavigationListener? = null
|
private var mListener: NavigationListener? = null
|
||||||
|
@ -61,9 +58,6 @@ class DayFragment : Fragment(), DBHelper.DBOperationsListener, AdapterView.OnIte
|
||||||
private fun setupButtons() {
|
private fun setupButtons() {
|
||||||
val baseColor = if (mConfig.isDarkTheme) Color.WHITE else Color.BLACK
|
val baseColor = if (mConfig.isDarkTheme) Color.WHITE else Color.BLACK
|
||||||
mTextColor = Utils.adjustAlpha(baseColor, Constants.HIGH_ALPHA)
|
mTextColor = Utils.adjustAlpha(baseColor, Constants.HIGH_ALPHA)
|
||||||
mTextColorWithEvent = Utils.adjustAlpha(mRes.getColor(R.color.colorPrimary), Constants.HIGH_ALPHA)
|
|
||||||
mWeakTextColor = Utils.adjustAlpha(baseColor, Constants.LOW_ALPHA)
|
|
||||||
mWeakTextColorWithEvent = Utils.adjustAlpha(mRes.getColor(R.color.colorPrimary), Constants.LOW_ALPHA)
|
|
||||||
|
|
||||||
mHolder.apply {
|
mHolder.apply {
|
||||||
top_left_arrow.drawable.mutate().setColorFilter(mTextColor, PorterDuff.Mode.SRC_ATOP)
|
top_left_arrow.drawable.mutate().setColorFilter(mTextColor, PorterDuff.Mode.SRC_ATOP)
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toLeftOf="@+id/top_right_arrow"
|
android:layout_toLeftOf="@+id/top_right_arrow"
|
||||||
android:layout_toRightOf="@+id/top_left_arrow"
|
android:layout_toRightOf="@+id/top_left_arrow"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center"
|
||||||
android:paddingBottom="@dimen/activity_margin"
|
android:paddingBottom="@dimen/activity_margin"
|
||||||
android:paddingTop="@dimen/top_padding"
|
android:paddingTop="@dimen/activity_margin"
|
||||||
android:textSize="@dimen/month_text_size"/>
|
android:textSize="@dimen/month_text_size"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
Loading…
Reference in New Issue