mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
improve layout for messages and avatars
This commit is contained in:
@@ -28,6 +28,8 @@ class AvatarView(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : Fr
|
||||
override fun onFinishInflate() {
|
||||
super.onFinishInflate()
|
||||
updateView()
|
||||
|
||||
setBackgroundResource(R.color.textSecondary)
|
||||
}
|
||||
|
||||
private fun updateView() {
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/textSecondary"
|
||||
android:orientation="vertical"
|
||||
tools:background="@color/textSecondary"
|
||||
tools:parentTag="com.moez.QKSMS.ui.view.AvatarView">
|
||||
|
||||
<ImageView
|
||||
@@ -19,6 +18,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textColor="@android:color/white"
|
||||
tools:text="M" />
|
||||
|
||||
</merge>
|
||||
@@ -5,10 +5,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start|bottom"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingEnd="56dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="16dp">
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<com.moez.QKSMS.ui.view.AvatarView
|
||||
android:id="@+id/avatar"
|
||||
@@ -17,8 +17,9 @@
|
||||
android:layout_marginEnd="16dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -5,14 +5,15 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end|bottom"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingStart="56dp"
|
||||
android:paddingTop="16dp">
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user