摘要: 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 阅读(377) 评论(0) 推荐(0) 编辑
摘要: Arabic, Egypt (ar-rEG) —————————–阿拉伯语,埃及 Arabic, Israel (ar-rIL) ——————————-阿拉伯语,以色列 Bulgarian, Bulgaria (bg-rBG) ———————保加利亚语,保加利亚 Catalan, Spain (ca 阅读全文
posted @ 2018-07-25 16:56 Alter 阅读(1678) 评论(0) 推荐(0) 编辑
摘要: WebView没有提供直接的API,需要用JavaScript变通处理一下。本文试图总结一个最简单、优雅的代码。有两步:1、先创建一个JavaScript接口类: class MyJavaScriptInterface { @JavascriptInterface @SuppressWarnings 阅读全文
posted @ 2018-07-25 15:59 Alter 阅读(417) 评论(0) 推荐(0) 编辑
摘要: RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); if (viewHolder != null && viewHolder instanceof ItemHolder) { 阅读全文
posted @ 2018-06-14 09:49 Alter 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: final CollapsingToolbarLayout collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout); AppBarLayout appBarLayou 阅读全文
posted @ 2018-05-31 18:11 Alter 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: private void animatePagerTransition(final boolean forward) { ValueAnimator animator = ValueAnimator.ofInt(0, viewPager.getWidth()); animator.addListen 阅读全文
posted @ 2018-05-28 12:38 Alter 阅读(244) 评论(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 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: ╔════╦════════════════════════════╦═════════════════════════════╗ ║ ║ FONT FAMILY ║ TTF FILE ║ ╠════╬════════════════════════════╬════════════════════ 阅读全文
posted @ 2018-05-08 17:47 Alter 阅读(260) 评论(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 阅读(803) 评论(0) 推荐(0) 编辑