Skip to content
Snippets Groups Projects
Commit 1de1770c authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Cleanup, minor corrections, metrics finetuning

parent 00f62172
Branches
Tags
No related merge requests found
...@@ -113,7 +113,7 @@ class QuasselMessageRenderer @Inject constructor( ...@@ -113,7 +113,7 @@ class QuasselMessageRenderer @Inject constructor(
viewHolder.timeRight?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize) viewHolder.timeRight?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize)
viewHolder.content?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize) viewHolder.content?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize)
viewHolder.combined?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize) viewHolder.combined?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize)
viewHolder.name?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize) viewHolder.name?.setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize * 0.8f)
} }
override fun bind(holder: MessageAdapter.QuasselMessageViewHolder, message: FormattedMessage, override fun bind(holder: MessageAdapter.QuasselMessageViewHolder, message: FormattedMessage,
......
app/src/main/res/drawable-nodpi/profile.png

175 KiB

...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginRight="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace" android:typeface="monospace"
tools:text="@sample/messages.json/data/time" /> tools:text="@sample/messages.json/data/time"
tools:visibility="gone" />
<FrameLayout <FrameLayout
android:id="@+id/avatar_container" android:id="@+id/avatar_container"
...@@ -37,34 +38,38 @@ ...@@ -37,34 +38,38 @@
android:layout_marginEnd="@dimen/message_horizontal" android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginRight="@dimen/message_horizontal"
android:layout_marginTop="@dimen/message_vertical" android:layout_marginTop="@dimen/message_vertical"
android:visibility="gone"> android:visibility="gone"
tools:visibility="visible">
<ImageView <ImageView
android:id="@+id/avatar" android:id="@+id/avatar"
android:layout_width="@dimen/avatar_size" android:layout_width="@dimen/avatar_size"
android:layout_height="@dimen/avatar_size" android:layout_height="@dimen/avatar_size"
android:visibility="gone" /> android:contentDescription="@string/label_avatar"
android:visibility="gone"
tools:visibility="visible" />
</FrameLayout> </FrameLayout>
<LinearLayout <LinearLayout
android:layout_width="0dip" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="fill_vertical"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="center_vertical"
android:layout_marginTop="@dimen/message_vertical"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:visibility="gone" android:visibility="gone"
tools:text="@sample/messages.json/data/sender" /> tools:text="@sample/messages.json/data/sender"
tools:visibility="visible" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical|fill_horizontal"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
...@@ -77,17 +82,18 @@ ...@@ -77,17 +82,18 @@
android:id="@+id/content" android:id="@+id/content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/message_vertical"
android:textColor="?attr/colorForeground" android:textColor="?attr/colorForeground"
android:visibility="gone" android:visibility="gone"
tools:text="@sample/messages.json/data/message" /> tools:text="@sample/messages.json/data/content"
tools:visibility="visible" />
<de.kuschku.quasseldroid.ui.chat.messages.RipplePassthroughTextView <de.kuschku.quasseldroid.ui.chat.messages.RipplePassthroughTextView
android:id="@+id/combined" android:id="@+id/combined"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?attr/colorForeground" android:textColor="?attr/colorForeground"
tools:text="@sample/messages.json/data/message" /> tools:text="@sample/messages.json/data/message"
tools:visibility="gone" />
</LinearLayout> </LinearLayout>
...@@ -99,9 +105,10 @@ ...@@ -99,9 +105,10 @@
android:layout_marginLeft="@dimen/message_horizontal" android:layout_marginLeft="@dimen/message_horizontal"
android:layout_marginStart="@dimen/message_horizontal" android:layout_marginStart="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace" android:textSize="11.9sp"
android:visibility="gone" android:visibility="gone"
tools:text="@sample/messages.json/data/time" /> tools:text="@sample/messages.json/data/time"
tools:visibility="visible" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
......
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginEnd="@dimen/message_horizontal" android:layout_marginLeft="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginStart="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace" android:typeface="monospace"
android:visibility="gone" android:visibility="gone"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<string name="connection_service_description">Hält eine Verbindung zum Core, um Benachrichtigungen und die Übertragung von Nachrichten zu ermöglichen</string> <string name="connection_service_description">Hält eine Verbindung zum Core, um Benachrichtigungen und die Übertragung von Nachrichten zu ermöglichen</string>
<string name="label_about">Über</string> <string name="label_about">Über</string>
<string name="label_avatar">Avatar</string>
<string name="label_back">Zurück</string> <string name="label_back">Zurück</string>
<string name="label_buffer_name">Chatname</string> <string name="label_buffer_name">Chatname</string>
<string name="label_cancel">Abbrechen</string> <string name="label_cancel">Abbrechen</string>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<string name="preference_nicks_on_new_line_title">Separate Spitznamen</string> <string name="preference_nicks_on_new_line_title">Separate Spitznamen</string>
<string name="preference_nicks_on_new_line_summary">Zeigt Spitznamen in einer eigenen Zeile an</string> <string name="preference_nicks_on_new_line_summary">Zeigt Spitznamen in einer eigenen Zeile an</string>
<string name="preference_show_avatars_title">Benutzerbilder anzeigen</string> <string name="preference_show_avatars_title">Avatare anzeigen</string>
<string name="preference_time_at_end_title">Rechts-Ausgerichtete Zeit</string> <string name="preference_time_at_end_title">Rechts-Ausgerichtete Zeit</string>
<string name="preference_time_at_end_summary">Zeigt die Zeit rechts in Nachrichten an</string> <string name="preference_time_at_end_summary">Zeigt die Zeit rechts in Nachrichten an</string>
......
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
<dimen name="button_corner_radius">2dp</dimen> <dimen name="button_corner_radius">2dp</dimen>
<dimen name="colorchooser_circlesize">56dp</dimen> <dimen name="colorchooser_circlesize">56dp</dimen>
<dimen name="avatar_size">40dp</dimen> <dimen name="avatar_size">36sp</dimen>
</resources> </resources>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<string name="connection_service_description">Keeps a connection to your core to allow for notifications, and to transmit messages.</string> <string name="connection_service_description">Keeps a connection to your core to allow for notifications, and to transmit messages.</string>
<string name="label_about">About</string> <string name="label_about">About</string>
<string name="label_avatar">Avatar</string>
<string name="label_back">Back</string> <string name="label_back">Back</string>
<string name="label_buffer_name">Buffer Name</string> <string name="label_buffer_name">Buffer Name</string>
<string name="label_cancel">Cancel</string> <string name="label_cancel">Cancel</string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment