mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
simplify bubble-radius (0 is just not allowed ...)
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
<corners
|
||||
android:topLeftRadius="@dimen/message_corner_radius"
|
||||
android:topRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomLeftRadius="@dimen/message_corner_collapse_radius" />
|
||||
android:bottomRightRadius="@dimen/message_corner_radius" />
|
||||
<solid android:color="?attr/conversation_item_incoming_bubble_border_color" />
|
||||
</shape>
|
||||
</item> -->
|
||||
@@ -18,8 +17,7 @@
|
||||
<corners
|
||||
android:topLeftRadius="@dimen/message_corner_radius"
|
||||
android:topRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomLeftRadius="@dimen/message_corner_collapse_radius" />
|
||||
android:bottomRightRadius="@dimen/message_corner_radius" />
|
||||
<solid android:color="@color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<corners
|
||||
android:topLeftRadius="@dimen/message_corner_radius"
|
||||
android:topRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomRightRadius="@dimen/message_corner_collapse_radius"
|
||||
android:bottomLeftRadius="@dimen/message_corner_radius" />
|
||||
<solid android:color="?attr/conversation_item_outgoing_bubble_border_color" />
|
||||
</shape>
|
||||
@@ -18,7 +17,6 @@
|
||||
<corners
|
||||
android:topLeftRadius="@dimen/message_corner_radius"
|
||||
android:topRightRadius="@dimen/message_corner_radius"
|
||||
android:bottomRightRadius="@dimen/message_corner_collapse_radius"
|
||||
android:bottomLeftRadius="@dimen/message_corner_radius" />
|
||||
<solid android:color="@color/white" />
|
||||
</shape>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
<dimen name="contact_photo_target_size">64dp</dimen>
|
||||
|
||||
<dimen name="message_corner_radius">12dp</dimen>
|
||||
<dimen name="message_corner_collapse_radius">0dp</dimen>
|
||||
<dimen name="message_bubble_corner_radius">2dp</dimen>
|
||||
<dimen name="message_bubble_shadow_distance">1.5dp</dimen>
|
||||
<dimen name="message_bubble_horizontal_padding">8dp</dimen>
|
||||
|
||||
@@ -461,18 +461,12 @@ public class ConversationItem extends LinearLayout
|
||||
boolean isGroupThread)
|
||||
{
|
||||
int defaultRadius = readDimen(R.dimen.message_corner_radius);
|
||||
int collapseRadius = readDimen(R.dimen.message_corner_collapse_radius);
|
||||
|
||||
int topLeft = defaultRadius;
|
||||
int topRight = defaultRadius;
|
||||
int bottomLeft = defaultRadius;
|
||||
int bottomRight = defaultRadius;
|
||||
|
||||
topLeft = defaultRadius;
|
||||
topRight = defaultRadius;
|
||||
bottomLeft = defaultRadius;
|
||||
bottomRight = defaultRadius;
|
||||
|
||||
if (!TextUtils.isEmpty(current.getText())) {
|
||||
bottomLeft = 0;
|
||||
bottomRight = 0;
|
||||
|
||||
@@ -83,10 +83,10 @@ public class ThumbnailView extends FrameLayout {
|
||||
bounds[MAX_WIDTH] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxWidth, 0);
|
||||
bounds[MIN_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_minHeight, 0);
|
||||
bounds[MAX_HEIGHT] = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_maxHeight, 0);
|
||||
radius = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_thumbnail_radius, getResources().getDimensionPixelSize(R.dimen.message_corner_collapse_radius));
|
||||
radius = typedArray.getDimensionPixelSize(R.styleable.ThumbnailView_thumbnail_radius, getResources().getDimensionPixelSize(R.dimen.message_corner_radius));
|
||||
typedArray.recycle();
|
||||
} else {
|
||||
radius = getResources().getDimensionPixelSize(R.dimen.message_corner_collapse_radius);
|
||||
radius = getResources().getDimensionPixelSize(R.dimen.message_corner_radius);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user