feat: 房间 排行按钮, 音乐按钮
This commit is contained in:
@@ -15,7 +15,7 @@ import com.chwl.core.room.bean.RoomInfo;
|
||||
public class NotificationClickReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
//todo 跳转之前要处理的逻辑
|
||||
//TODO 跳转之前要处理的逻辑
|
||||
RoomInfo roomInfo = AvRoomDataManager.get().mCurrentRoomInfo;
|
||||
if (roomInfo != null) {
|
||||
AVRoomActivity.start(context, roomInfo.getUid());
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 6.6 KiB |
6
app/src/main/res/drawable/room_bg_hour_rank_new.xml
Normal file
6
app/src/main/res/drawable/room_bg_hour_rank_new.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#66000000"/>
|
||||
<corners android:radius="25dp" />
|
||||
</shape>
|
@@ -105,12 +105,12 @@
|
||||
android:id="@+id/rank_number_widget"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_5" />
|
||||
android:layout_marginEnd="@dimen/dp_9" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_music"
|
||||
android:layout_width="@dimen/dp_16"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:layout_width="@dimen/dp_27"
|
||||
android:layout_height="@dimen/dp_27"
|
||||
android:src="@drawable/room_ic_music"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -82,13 +82,13 @@
|
||||
android:layout_marginEnd="@dimen/dp_5" />
|
||||
|
||||
<ImageView
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:layout_marginStart="@dimen/dp_9"
|
||||
app:layout_constraintBottom_toBottomOf="@id/layout_hour_rank"
|
||||
app:layout_constraintStart_toEndOf="@id/rank_number_widget"
|
||||
app:layout_constraintTop_toTopOf="@id/layout_hour_rank"
|
||||
android:id="@+id/iv_music"
|
||||
android:layout_width="@dimen/dp_16"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:layout_width="@dimen/dp_27"
|
||||
android:layout_height="@dimen/dp_27"
|
||||
android:src="@drawable/room_ic_music"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
@@ -175,6 +175,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_130"
|
||||
android:clipChildren="false"
|
||||
tools:translationY="500dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/bottom_view">
|
||||
|
||||
<ImageView
|
||||
@@ -208,7 +209,10 @@
|
||||
<com.chwl.app.avroom.widget.BottomView
|
||||
android:id="@+id/bottom_view"
|
||||
android:layout_width="0dp"
|
||||
tools:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout_height="100dp"
|
||||
tools:background="@color/black"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
@@ -5,15 +5,16 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/layout_room_rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:background="@drawable/room_bg_hour_rank"
|
||||
android:layout_height="@dimen/dp_27"
|
||||
android:paddingHorizontal="@dimen/dp_8"
|
||||
android:paddingVertical="@dimen/dp_5"
|
||||
android:background="@drawable/room_bg_hour_rank_new"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_marginStart="@dimen/dp_3"
|
||||
android:layout_width="@dimen/dp_17"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/room_ic_rank" />
|
||||
|
||||
@@ -21,11 +22,11 @@
|
||||
android:id="@+id/tv_number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_2"
|
||||
android:layout_marginStart="@dimen/dp_3"
|
||||
android:gravity="center"
|
||||
android:paddingHorizontal="@dimen/dp_5"
|
||||
android:text="0"
|
||||
tools:text="1000000"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_10" />
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</layout>
|
Reference in New Issue
Block a user