diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt new file mode 100644 index 0000000000..6967d0b523 --- /dev/null +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt @@ -0,0 +1,28 @@ +package org.thoughtcrime.securesms.conversation.v2.input_bar + +import android.content.Context +import android.util.AttributeSet +import android.view.LayoutInflater +import android.widget.LinearLayout +import network.loki.messenger.R + +class InputBar : LinearLayout { + + // region Lifecycle + constructor(context: Context) : super(context) { + setUpViewHierarchy() + } + + constructor(context: Context, attrs: AttributeSet) : super(context, attrs) { + setUpViewHierarchy() + } + + constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + setUpViewHierarchy() + } + + private fun setUpViewHierarchy() { + LayoutInflater.from(context).inflate(R.layout.view_input_bar, this) + } + // endregion +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_conversation_v2.xml b/app/src/main/res/layout/activity_conversation_v2.xml index 9d5dcff51d..f59cacf377 100644 --- a/app/src/main/res/layout/activity_conversation_v2.xml +++ b/app/src/main/res/layout/activity_conversation_v2.xml @@ -10,12 +10,11 @@ android:id="@+id/conversationRecyclerView" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginBottom="40dp" /> + android:layout_marginBottom="@dimen/input_bar_height" /> - \ No newline at end of file diff --git a/app/src/main/res/layout/view_input_bar.xml b/app/src/main/res/layout/view_input_bar.xml new file mode 100644 index 0000000000..ce79624b4d --- /dev/null +++ b/app/src/main/res/layout/view_input_bar.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-notnight-v21/colors.xml b/app/src/main/res/values-notnight-v21/colors.xml index edfb18a33b..302c241c8d 100644 --- a/app/src/main/res/values-notnight-v21/colors.xml +++ b/app/src/main/res/values-notnight-v21/colors.xml @@ -20,10 +20,11 @@ #FCFCFC #0D000000 #FFFFFF + #FCFCFC #ffffff - #fcfcfd - #fcfcfd + #fcfcfc + #fcfcfc #333132 #0A000000 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 2eea313b33..51b2067573 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -27,6 +27,7 @@ #FFCE3A #0DFFFFFF #000000 + #171717 #5ff8b0 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 3d44675888..146fe79268 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,8 +1,6 @@ - - 12sp 15sp @@ -38,6 +36,7 @@ 56dp 8dp 16dp + 64dp 8dp @@ -48,8 +47,6 @@ 56dp 40dp - - 32sp 50dp 220dp