这段时间公司项目功能涉及到下载apk,在通知栏中显示下载进度,其中通知栏中进度条需要自定义。
1.效果
底图push_download_progress_bg.9.png和进度图push_download_progress.9.png
效果
2.通知栏布局
布局文件push_notification.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<ImageView
android:id="@+id/push_icon"
android:layout_width="@android:dimen/notification_large_icon_width"
andr