1
我有一個圖像視圖,並將文本視圖放置在看起來像通知氣泡的右角上。我正在從解析中獲取數據以獲取我的數據庫中的表(消息)上的推送通知集。我希望文本在獲取通知時動態增加。有沒有辦法實現它。請幫忙!!來自parse.com的增量通知計數器
<ImageView
android:id="@+id/news_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/rounded_corners_white"
android:layout_centerHorizontal="true"
android:src="@drawable/event_icon" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignRight="@+id/news_icon"
android:background="@drawable/count_bubble"
android:gravity="center"
android:padding="4dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="25"
android:textColor="@color/white"
android:textSize="06pt"
android:textStyle="bold" />
</LinearLayout>