• 大小: 354KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: Java
  • 标签: BadgeView  未读消息  

资源简介

Android仿微信未读消息数提示显示数字BadgeView大于99条显示99+

资源截图

代码片段和文件信息

package q.rorbin.badgeviewdemo;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumentation test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“q.rorbin.badgeview“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        123  2017-06-22 02:08  BadgeView\.gitignore

     文件     294969  2017-08-28 11:27  BadgeView\.gradle\3.3\taskArtifacts\fileHashes.bin

     文件    2291504  2017-08-28 11:27  BadgeView\.gradle\3.3\taskArtifacts\fileSnapshots.bin

     文件     150164  2017-08-28 11:27  BadgeView\.gradle\3.3\taskArtifacts\taskArtifacts.bin

     文件         17  2017-08-28 11:27  BadgeView\.gradle\3.3\taskArtifacts\taskArtifacts.lock

     文件      32496  2017-08-28 10:26  BadgeView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin

     文件         17  2017-08-28 10:26  BadgeView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock

     文件      22165  2017-08-28 10:26  BadgeView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin

     文件         17  2017-08-28 10:26  BadgeView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock

     文件      22542  2017-08-28 10:05  BadgeView\.gradle\3.3\tasks\_badgeviewlib_compileReleaseJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin

     文件         17  2017-08-28 10:05  BadgeView\.gradle\3.3\tasks\_badgeviewlib_compileReleaseJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock

     文件      18522  2017-08-28 10:05  BadgeView\.gradle\3.3\tasks\_badgeviewlib_compileReleaseJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin

     文件         17  2017-08-28 10:05  BadgeView\.gradle\3.3\tasks\_badgeviewlib_compileReleaseJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock

     文件        686  2017-08-28 09:59  BadgeView\.idea\compiler.xml

     文件         76  2017-08-28 09:59  BadgeView\.idea\copyright\profiles_settings.xml

     文件        626  2017-08-28 10:25  BadgeView\.idea\gradle.xml

     文件        601  2017-08-28 10:24  BadgeView\.idea\libraries\animated_vector_drawable_25_2_0.xml

     文件        565  2017-08-28 10:24  BadgeView\.idea\libraries\appcompat_v7_25_2_0.xml

     文件        587  2017-08-28 10:24  BadgeView\.idea\libraries\badgeview_1_1_2.xml

     文件        410  2017-08-28 10:24  BadgeView\.idea\libraries\constraint_layout_1_0_2.xml

     文件        337  2017-08-28 10:24  BadgeView\.idea\libraries\constraint_layout_solver_1_0_2.xml

     文件        579  2017-08-28 10:24  BadgeView\.idea\libraries\espresso_core_2_2_2.xml

     文件        612  2017-08-28 10:24  BadgeView\.idea\libraries\espresso_idling_resource_2_2_2.xml

     文件        630  2017-08-28 10:24  BadgeView\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml

     文件        526  2017-08-28 10:24  BadgeView\.idea\libraries\hamcrest_core_1_3.xml

     文件        354  2017-08-28 10:24  BadgeView\.idea\libraries\hamcrest_integration_1_3.xml

     文件        342  2017-08-28 10:24  BadgeView\.idea\libraries\hamcrest_library_1_3.xml

     文件        330  2017-08-28 10:24  BadgeView\.idea\libraries\javawriter_2_1_1.xml

     文件        358  2017-08-28 10:24  BadgeView\.idea\libraries\javax_annotation_api_1_2.xml

     文件        324  2017-08-28 10:24  BadgeView\.idea\libraries\javax_inject_1.xml

............此处省略95个文件信息

评论

共有 条评论