CardView
This commit is contained in:
parent
5cd0c0bed7
commit
2b215059cc
3 changed files with 18 additions and 16 deletions
|
@ -79,7 +79,7 @@
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
style="@style/MessageBarBackground"
|
style="@style/MessageBarBackground"
|
||||||
android:layout_height="66dp"
|
android:layout_height="64dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:id="@+id/detail_message_bar"
|
android:id="@+id/detail_message_bar"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -90,36 +90,37 @@
|
||||||
app:layout_constraintVertical_bias="1.0"
|
app:layout_constraintVertical_bias="1.0"
|
||||||
android:elevation="10dp"
|
android:elevation="10dp"
|
||||||
>
|
>
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<androidx.cardview.widget.CardView
|
||||||
style="@style/MessageInputLayout"
|
style="@style/CardView"
|
||||||
android:id="@+id/detail_message_box_layout"
|
android:id="@+id/detail_message_box_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="52dp"
|
||||||
app:boxStrokeWidthFocused="0dp"
|
android:layout_marginStart="7dp"
|
||||||
app:boxStrokeWidth="0dp"
|
android:layout_marginEnd="5dp"
|
||||||
app:boxBackgroundMode="none"
|
android:padding="7dp"
|
||||||
app:hintEnabled="false"
|
|
||||||
android:elevation="8dp"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@id/detail_message_send_button"
|
app:layout_constraintEnd_toStartOf="@id/detail_message_send_button"
|
||||||
android:layout_marginStart="7dp"
|
android:outlineAmbientShadowColor="@color/gray_600"
|
||||||
android:layout_marginBottom="3dp"
|
android:outlineSpotShadowColor="@color/gray_600"
|
||||||
android:layout_marginEnd="5dp"
|
app:cardCornerRadius="5dp"
|
||||||
android:layout_marginTop="3dp">
|
app:cardElevation="1dp"
|
||||||
|
app:cardMaxElevation="1dp"
|
||||||
|
app:cardPreventCornerOverlap="true"
|
||||||
|
app:cardUseCompatPadding="true">
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/detail_message_box"
|
android:id="@+id/detail_message_box"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:inputType="text"
|
android:inputType="text"
|
||||||
style="@style/MessageInputText"
|
style="@style/MessageInputText"
|
||||||
android:padding="5dp"
|
android:padding="8dp"
|
||||||
android:background="@drawable/ic_edittext_background"
|
android:background="@drawable/ic_edittext_background"
|
||||||
android:hint="@string/detail_message_bar_hint"
|
android:hint="@string/detail_message_bar_hint"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</androidx.cardview.widget.CardView>
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
style="@style/Widget.MaterialComponents.Button.Icon"
|
style="@style/Widget.MaterialComponents.Button.Icon"
|
||||||
android:id="@+id/detail_message_send_button"
|
android:id="@+id/detail_message_send_button"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<color name="black_900">#121212</color> <!-- Main dark mode surface color, as per style guide -->
|
<color name="black_900">#121212</color> <!-- Main dark mode surface color, as per style guide -->
|
||||||
<color name="black_800b">#1b2023</color> <!-- Action bar & item selection (dark mode); this has a touch of blue! -->
|
<color name="black_800b">#1b2023</color> <!-- Action bar & item selection (dark mode); this has a touch of blue! -->
|
||||||
<color name="black_700b">#282F33</color> <!-- Card selection (dark mode); this has a touch of blue! -->
|
<color name="black_700b">#282F33</color> <!-- Card selection (dark mode); this has a touch of blue! -->
|
||||||
|
<color name="gray_600">#aaaaaa</color> <!-- Message box drop shadow (light mode) -->
|
||||||
<color name="gray_500">#dddddd</color> <!-- Card selection (light mode) -->
|
<color name="gray_500">#dddddd</color> <!-- Card selection (light mode) -->
|
||||||
<color name="gray_400">#eeeeee</color> <!-- Item selection (light mode) -->
|
<color name="gray_400">#eeeeee</color> <!-- Item selection (light mode) -->
|
||||||
<color name="white">#ffffffff</color>
|
<color name="white">#ffffffff</color>
|
||||||
|
|
|
@ -40,6 +40,6 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="MessageInputText" parent="Widget.AppCompat.EditText">
|
<style name="MessageInputText" parent="Widget.AppCompat.EditText">
|
||||||
<item name="android:textSize">18sp</item>
|
<item name="android:textSize">16sp</item>
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue