修改消息中心红点
This commit is contained in:
parent
8f0538724f
commit
2bc5c8aeb6
@ -30,11 +30,19 @@
|
|||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<HorizontalScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
|
||||||
|
android:scrollbars="none">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="10dp">
|
android:layout_marginTop="10dp"
|
||||||
|
android:paddingEnd="16dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/popular"
|
android:id="@+id/popular"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -59,9 +67,9 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/fan_club"
|
android:id="@+id/fan_club"
|
||||||
android:layout_marginStart="28dp"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@ -147,18 +155,11 @@
|
|||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/activity_center"
|
android:id="@+id/activity_center"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -174,8 +175,9 @@
|
|||||||
android:textColor="#FF9A9A9A"
|
android:textColor="#FF9A9A9A"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</HorizontalScrollView>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -186,12 +188,19 @@
|
|||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<HorizontalScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
|
||||||
|
android:scrollbars="none">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginBottom="20dp">
|
android:layout_marginBottom="20dp"
|
||||||
|
android:paddingEnd="16dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/live_link_mic"
|
android:id="@+id/live_link_mic"
|
||||||
@ -302,6 +311,7 @@
|
|||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</HorizontalScrollView>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -177,7 +177,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
private boolean isWebClose = false;
|
private boolean isWebClose = false;
|
||||||
public static boolean isTabClose = false;
|
public static boolean isTabClose = false;
|
||||||
private boolean isFirstOpen = true;
|
private boolean isFirstOpen = true;
|
||||||
private int messageNumber = 0, numberMe = 1;
|
private int messageNumber = 0, numberMe = 0;
|
||||||
private ImageView waitingTip;
|
private ImageView waitingTip;
|
||||||
private FloatBannerView floatBanner;
|
private FloatBannerView floatBanner;
|
||||||
private boolean isfloatBannernet = true, isFirst = true;
|
private boolean isfloatBannernet = true, isFirst = true;
|
||||||
|
@ -243,7 +243,7 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
|
|||||||
Bundle bundle = getIntent().getExtras();
|
Bundle bundle = getIntent().getExtras();
|
||||||
if (bundle != null) {
|
if (bundle != null) {
|
||||||
int messageNumber = bundle.getInt(MESSAGENUMBER, 0);
|
int messageNumber = bundle.getInt(MESSAGENUMBER, 0);
|
||||||
int numberMe = bundle.getInt(NUMBERME, 1);
|
int numberMe = bundle.getInt(NUMBERME, 0);
|
||||||
onMessageIMEvent(new MessageIMEvent().setNumber(messageNumber));
|
onMessageIMEvent(new MessageIMEvent().setNumber(messageNumber));
|
||||||
onUpdateFieldEvent(new UpdateTablePointMe(numberMe));
|
onUpdateFieldEvent(new UpdateTablePointMe(numberMe));
|
||||||
}
|
}
|
||||||
@ -526,7 +526,6 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
|
|||||||
}
|
}
|
||||||
|
|
||||||
//红点(我的)
|
//红点(我的)
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
|
||||||
public void onUpdateFieldEvent(UpdateTablePointMe updateTablePointMe) {
|
public void onUpdateFieldEvent(UpdateTablePointMe updateTablePointMe) {
|
||||||
if (redpointMe == null) return;
|
if (redpointMe == null) return;
|
||||||
if (updateTablePointMe.getPoint() == 0) {
|
if (updateTablePointMe.getPoint() == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user