Skip to content

Commit

Permalink
🎉Alpha 1.3,新UI聊天界面仿微信气泡(BETA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hny0305Lin committed Jul 5, 2024
1 parent beb65ba commit 0546c67
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/bg_chat_bubble_received.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#E5E5EA" />
<corners android:radius="16dp" />
<solid android:color="@color/blue_biaozhun_logowai_transparent" />
<corners android:radius="8dp" />
<padding android:left="8dp" android:top="8dp" android:right="8dp" android:bottom="8dp" />
</shape>
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/bg_chat_bubble_sent.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#0084FF" />
<corners android:radius="16dp" />
<solid android:color="@color/nearlinkgreen" />
<corners android:radius="8dp" />
<padding android:left="8dp" android:top="8dp" android:right="8dp" android:bottom="8dp" />
</shape>
28 changes: 28 additions & 0 deletions app/src/main/res/drawable/bg_chat_bubble_wechat_received.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item android:left="8dp">
<shape>
<corners android:radius="4dp" />
<solid android:color="@color/blue_biaozhun_logowai" />
</shape>
</item>
</layer-list>
</item>
<item
android:gravity="left|top"
android:top="15dp">
<rotate
android:fromDegrees="45"
android:pivotX="50%"
android:pivotY="135%">
<shape android:shape="rectangle">
<size
android:width="8dp"
android:height="8dp" />
<solid android:color="@color/blue_biaozhun_logowai" />
</shape>
</rotate>
</item>
</layer-list>
28 changes: 28 additions & 0 deletions app/src/main/res/drawable/bg_chat_bubble_wechat_sent.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item android:right="8dp">
<shape>
<corners android:radius="4dp" />
<solid android:color="@color/nearlinkgreen" />
</shape>
</item>
</layer-list>
</item>
<item
android:gravity="end|top"
android:top="15dp">
<rotate
android:fromDegrees="315"
android:pivotX="50%"
android:pivotY="135%">
<shape android:shape="rectangle">
<size
android:width="8dp"
android:height="8dp" />
<solid android:color="@color/nearlinkgreen" />
</shape>
</rotate>
</item>
</layer-list>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_chat_received.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
android:id="@+id/text_message_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_chat_bubble_received"
android:background="@drawable/bg_chat_bubble_wechat_received"
android:padding="10dp"
android:textColor="@android:color/black"
android:text="Hello, this is a received message!Test!" />
android:text="Hello, this is a received message! Test! " />
</LinearLayout>
6 changes: 3 additions & 3 deletions app/src/main/res/layout/item_chat_sent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
android:id="@+id/text_message_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_chat_bubble_sent"
android:background="@drawable/bg_chat_bubble_wechat_sent"
android:padding="10dp"
android:textColor="@android:color/white"
android:text="Hello, this is a sent message!Test!" />
android:textColor="@android:color/black"
android:text="Hello, this is a sent message! Test! " />
</LinearLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>
<string name="app_name">NLChat</string>
<string name="app_package">com.haohanyh.linmengjia.nearlink.nlchat.fun</string>
<string name="app_version">1.3.48.2024.0705</string>
<string name="app_version">1.3.52.2024.0705</string>

<string name="appwarn">NLChat,浩瀚银河宗旨为用爱和魔法创造Android APP。</string>
<string name="thanks3q">友情感谢</string>
Expand Down

0 comments on commit 0546c67

Please sign in to comment.