摘要: enum media_player_states { MEDIA_PLAYER_STATE_ERROR = 0, MEDIA_PLAYER_IDLE = 1 << 0, MEDIA_PLAYER_INITIALIZED = 1 << 1, MEDIA_PLAYER_PREPARING = 1 << 阅读全文
posted @ 2018-10-29 18:53 Alter 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Arabic, Egypt (ar-rEG) —————————–阿拉伯语,埃及 Arabic, Israel (ar-rIL) ——————————-阿拉伯语,以色列 Bulgarian, Bulgaria (bg-rBG) ———————保加利亚语,保加利亚 Catalan, Spain (ca 阅读全文
posted @ 2018-07-25 16:56 Alter 阅读(1543) 评论(0) 推荐(0) 编辑
摘要: WebView没有提供直接的API,需要用JavaScript变通处理一下。本文试图总结一个最简单、优雅的代码。有两步:1、先创建一个JavaScript接口类: class MyJavaScriptInterface { @JavascriptInterface @SuppressWarnings 阅读全文
posted @ 2018-07-25 15:59 Alter 阅读(411) 评论(0) 推荐(0) 编辑
摘要: RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); if (viewHolder != null && viewHolder instanceof ItemHolder) { 阅读全文
posted @ 2018-06-14 09:49 Alter 阅读(2614) 评论(0) 推荐(0) 编辑
摘要: final CollapsingToolbarLayout collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout); AppBarLayout appBarLayou 阅读全文
posted @ 2018-05-31 18:11 Alter 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: private void animatePagerTransition(final boolean forward) { ValueAnimator animator = ValueAnimator.ofInt(0, viewPager.getWidth()); animator.addListen 阅读全文
posted @ 2018-05-28 12:38 Alter 阅读(243) 评论(0) 推荐(0) 编辑
摘要: android:background="?android:actionBarItemBackground" 阅读全文
posted @ 2018-05-23 09:55 Alter 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Android custom notification for music player Example In this tutorial, you will learn how to create Custom Notifications in your Android music player 阅读全文
posted @ 2018-05-16 11:53 Alter 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: ╔════╦════════════════════════════╦═════════════════════════════╗ ║ ║ FONT FAMILY ║ TTF FILE ║ ╠════╬════════════════════════════╬════════════════════ 阅读全文
posted @ 2018-05-08 17:47 Alter 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Loading Large Bitmaps Efficiently Loading Large Bitmaps Efficiently This lesson teaches you to Read Bitmap Dimensions and Type Load a Scaled Down Vers 阅读全文
posted @ 2018-04-03 18:37 Alter 阅读(756) 评论(0) 推荐(0) 编辑