更新后com.google.android.gms:play-services-ads到19.7.0
它说InterstitialAd:RewardedVideoAd&UnifiedNativeAdView弃用。
有人可以帮忙吗?
我有滚动问题.我的意思是滚动速度很快,但在滚动完成之前看起来像是滞后.在这里我定义__CODE__:
RecyclerView recyclerView=fragment.getRecyclerView();
LinearLayoutManager layoutManager = new LinearLayoutManager(fragment.getActivity(), LinearLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(layoutManager);
recyclerView.addItemDecoration(new DividerItemDecoration(fragment.getActivity(), LinearLayoutManager.VERTICAL));
ArrayList<InstaPostModel> rowListItems=getInstaPostListSample();
InstaPostAdapter rcAdapter = new InstaPostAdapter(rowListItems);
recyclerView.setAdapter(rcAdapter);
Run Code Online (Sandbox Code Playgroud)
这是__CODE__.
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
final InstaPostModel p = items.get(position);
context = holder.itemView.getContext();
Glide.with(context).load(R.mipmap.mee_small).into(holder.userPhoto);
Glide.with(context).load(R.drawable.post_image).into(holder.photo_content);
Glide.with(context).load(R.mipmap.love_gray_icon).into(holder.bt_like);
Glide.with(context).load(R.mipmap.comment_icon).into(holder.bt_comment);
Glide.with(context).load(R.mipmap.share_icon).into(holder.bt_share);
holder.userNameTextView.setText(p.getPosterUserName());
holder.postContent.setText(p.getText());
holder.post_date.setReferenceTime(p.getDate().getTime());
}
Run Code Online (Sandbox Code Playgroud)
这是 __CODE__
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/qatar_now_posts_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
tools:context=".uis.fragments.home.QatarNowFragment"
/>
Run Code Online (Sandbox Code Playgroud)
编辑
我有一个底部导航栏__CODE__,它在滚动时显示.
编辑2
这是显示滞后的视频链接.
编辑3
也许我在测试应用程序时发现了问题.我看到图表和应用程序从Ram内存大约120 MB,但仍然不知道如何解决这个问题.
编辑4
__CODE__ 类 …
android smooth-scrolling recycler-adapter android-recyclerview recyclerview-layout
我写了一个简单的声明,如下所示:
val installer = context.packageManager.getInstallerPackageName(context.packageName)
Run Code Online (Sandbox Code Playgroud)
但现在它已被弃用,如图所示:
是否有任何替代方法可以获取已安装您的应用程序的应用程序的包名称?
您好,我在使用电话号码在 Android 上启用 Firebase 身份验证时遇到错误,有人知道如何解决此问题吗?这是完整的错误文本:
There was an error while loading /apis/library/androidcheck.googleapis.com?authuser=1&project=enduring-sign-274118. Please try again.
Request ID: 10375038218392837291
Run Code Online (Sandbox Code Playgroud)
提前致谢。