style: 修改命名规则

修改部分资源文件命名规则
This commit is contained in:
糕小菜 2024-10-18 15:04:25 +08:00
parent 5aa3f5e526
commit 0a2a7ec3cd
26 changed files with 42 additions and 176 deletions

View File

@ -70,6 +70,16 @@ public class MainActivity extends AppCompatActivity implements OnChatListItemCli
startService();
setOnClick();
}
private void setOnClick() {
binding.ivMessage.setOnClickListener(v -> {
Intent intent = new Intent(this, MessageActivity.class);
startActivity(intent);
});
binding.ivSearch.setOnClickListener(v -> {
Intent intent = new Intent(mContext, SearchActivity.class);
startActivity(intent);

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="6dp" />
<stroke
android:width="1dp"
android:color="#CCCCCC" />
</shape>

View File

Before

Width:  |  Height:  |  Size: 479 KiB

After

Width:  |  Height:  |  Size: 479 KiB

View File

@ -87,7 +87,7 @@
android:layout_height="48dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="40dp"
android:background="@drawable/apply_add_friend_bac_send"
android:background="@drawable/add_contact_request_send_btn_bac"
android:gravity="center"
android:text="发送"
android:textColor="@color/white"

View File

@ -1,77 +0,0 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<androidx.constraintlayout.utils.widget.ImageFilterView
android:id="@+id/civ_avatar"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginVertical="10dp"
android:layout_marginStart="5dp"
android:src="@drawable/avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundPercent="1" />
<TextView
android:id="@+id/tv_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="旧年."
android:textColor="@color/black"
app:layout_constraintBottom_toTopOf="@id/tv_tags"
app:layout_constraintStart_toEndOf="@id/civ_avatar"
app:layout_constraintTop_toTopOf="@id/civ_avatar" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="(1874165975)"
android:textColor="@color/blue"
app:layout_constraintBottom_toBottomOf="@id/tv_nickname"
app:layout_constraintStart_toEndOf="@id/tv_nickname"
app:layout_constraintTop_toTopOf="@id/tv_nickname" />
<TextView
android:id="@+id/tv_tags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/common_bac_tag"
android:paddingHorizontal="5dp"
android:paddingVertical="1dp"
android:text="狮子座"
android:textSize="8dp"
app:layout_constraintBottom_toBottomOf="@id/civ_avatar"
app:layout_constraintStart_toStartOf="@id/tv_nickname"
app:layout_constraintTop_toBottomOf="@id/tv_nickname" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:background="@drawable/btn_bac_main"
android:paddingHorizontal="14dp"
android:paddingVertical="4dp"
android:text="添加"
android:textColor="@color/black"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@id/civ_avatar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/civ_avatar" />
<Button
android:id="@+id/btn_send_apply"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="发送"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/civ_avatar" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -21,7 +21,7 @@
android:layout_height="55dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ctl"
app:round="8dp" />

View File

@ -80,7 +80,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="10dp"
android:background="@drawable/chat_bac_other"
android:background="@drawable/chat_message_et_bac"
android:gravity="center_vertical"
android:maxHeight="100dp"
android:minHeight="36dp"
@ -126,7 +126,7 @@
android:layout_gravity="center_vertical"
android:layout_marginVertical="4dp"
android:layout_marginEnd="8dp"
android:background="@drawable/chat_bac_mine"
android:background="@drawable/chat_send_btn_bac_mine"
android:gravity="center"
android:paddingHorizontal="10dp"
android:paddingVertical="6dp"

View File

@ -47,7 +47,7 @@
android:layout_height="55dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_back"
app:round="8dp" />

View File

@ -45,7 +45,7 @@
android:layout_height="55dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_back"
app:round="8dp" />

View File

@ -17,7 +17,7 @@
android:layout_height="45dp"
android:layout_marginVertical="10dp"
android:layout_marginStart="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
@ -48,8 +48,19 @@
android:id="@+id/iv_search"
android:layout_width="36dp"
android:layout_height="36dp"
android:src="@drawable/ic_search"
android:layout_marginEnd="5dp"
android:scaleType="centerCrop"
android:src="@drawable/ic_search"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/iv_message"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/iv_message"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="5dp"
android:src="@drawable/home_ic_message"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/iv_more"
app:layout_constraintTop_toTopOf="parent" />

View File

@ -26,7 +26,7 @@
android:layout_height="50dp"
android:layout_marginStart="20dp"
android:layout_marginTop="55dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundPercent="0.3" />

View File

@ -30,7 +30,7 @@
android:layout_height="wrap_content"
app:iconRound="5dp"
app:iconSize="30dp"
app:itemIcon="@drawable/avatar"
app:itemIcon="@drawable/ic_avatar"
app:itemName="头像" />
<com.kaixed.kchat.view.widget.CustomItem

View File

@ -15,7 +15,7 @@
android:layout_height="50dp"
android:layout_marginStart="20dp"
android:layout_marginTop="35dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundPercent="0.3" />

View File

@ -146,7 +146,7 @@
android:layout_height="40dp"
android:layout_marginVertical="10dp"
android:layout_marginStart="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"

View File

@ -22,7 +22,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="15dp"
android:background="@drawable/bac_round_green"
android:background="@drawable/set_remark_save_btn_bac"
android:paddingHorizontal="10dp"
android:paddingVertical="5dp"
android:text="保存"

View File

@ -80,7 +80,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="10dp"
android:background="@drawable/chat_bac_other"
android:background="@drawable/chat_message_et_bac"
android:gravity="center_vertical"
android:maxHeight="100dp"
android:minHeight="36dp"
@ -126,7 +126,7 @@
android:layout_gravity="center_vertical"
android:layout_marginVertical="4dp"
android:layout_marginEnd="8dp"
android:background="@drawable/chat_bac_mine"
android:background="@drawable/chat_send_btn_bac_mine"
android:gravity="center"
android:paddingHorizontal="10dp"
android:paddingVertical="6dp"

View File

@ -11,7 +11,7 @@
android:layout_height="45dp"
android:layout_marginVertical="10dp"
android:layout_marginStart="15dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:roundPercent="0.3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"

View File

@ -10,7 +10,7 @@
android:layout_height="40dp"
android:layout_marginVertical="20dp"
android:layout_marginEnd="10dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
@ -21,7 +21,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:background="@drawable/chat_bac_mine"
android:background="@drawable/chat_send_btn_bac_mine"
android:gravity="center_vertical"
android:maxWidth="250dp"
android:minHeight="40dp"

View File

@ -21,7 +21,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:background="@drawable/chat_bac_other"
android:background="@drawable/chat_message_et_bac"
android:gravity="center_vertical"
android:maxWidth="250dp"
android:minHeight="40dp"

View File

@ -11,7 +11,7 @@
android:id="@+id/ifv_avatar"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"

View File

@ -12,7 +12,7 @@
android:layout_height="45dp"
android:layout_marginStart="15dp"
android:layout_marginBottom="10dp"
android:src="@drawable/avatar"
android:src="@drawable/ic_avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundPercent="0.15" />

View File

@ -1,67 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<androidx.constraintlayout.utils.widget.ImageFilterView
android:id="@+id/civ_avatar"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginVertical="10dp"
android:layout_marginStart="5dp"
android:src="@drawable/avatar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundPercent="1" />
<TextView
android:id="@+id/tv_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="旧年."
android:textColor="@color/black"
app:layout_constraintBottom_toTopOf="@id/tv_tags"
app:layout_constraintStart_toEndOf="@id/civ_avatar"
app:layout_constraintTop_toTopOf="@id/civ_avatar" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="(1874165975)"
android:textColor="@color/blue"
app:layout_constraintBottom_toBottomOf="@id/tv_nickname"
app:layout_constraintStart_toEndOf="@id/tv_nickname"
app:layout_constraintTop_toTopOf="@id/tv_nickname" />
<TextView
android:id="@+id/tv_tags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/common_bac_tag"
android:paddingHorizontal="5dp"
android:paddingVertical="1dp"
android:text="狮子座"
android:textSize="8dp"
app:layout_constraintBottom_toBottomOf="@id/civ_avatar"
app:layout_constraintStart_toStartOf="@id/tv_nickname"
app:layout_constraintTop_toBottomOf="@id/tv_nickname" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:background="@drawable/btn_bac_main"
android:paddingHorizontal="14dp"
android:paddingVertical="4dp"
android:text="添加"
android:textColor="@color/black"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@id/civ_avatar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/civ_avatar" />
</androidx.constraintlayout.widget.ConstraintLayout>