可能修正 No configs match configSpec
This commit is contained in:
1 parent
74afaa1d4c
commit
1d1cfeec54
4 files changed
+7
-4
No files matched your search
@@ -31,11 +31,9 @@
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<com.hippo.ehviewer.widget.GalleryListView
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/gallery_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:glvContent="staggeredgridview" />
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
@@ -21,5 +21,6 @@
|
||||
<item type="id" name="edittextpreference_edittext"></item>
|
||||
<item type="id" name="custom"></item>
|
||||
<item type="id" name="translucent_view"></item>
|
||||
<item type="id" name="easy_recycler_view"></item>
|
||||
|
||||
</resources>
|
||||
@@ -115,7 +115,10 @@ public class GLRootView extends GLSurfaceView
|
||||
setBackgroundDrawable(null);
|
||||
setEGLContextClientVersion(ApiHelper.HAS_GLES20_REQUIRED ? 2 : 1);
|
||||
if (ApiHelper.USE_888_PIXEL_FORMAT) {
|
||||
setEGLConfigChooser(8, 8, 8, 0, 0, 0);
|
||||
// From setEGLConfigChooser(8, 8, 8, 0, 0, 0) to setEGLConfigChooser(8, 8, 8, 8, 0, 0)
|
||||
// Fix "No configs match configSpec" for some deivces,
|
||||
// may introduced same error for the other devices ?
|
||||
setEGLConfigChooser(8, 8, 8, 8, 0, 0);
|
||||
} else {
|
||||
setEGLConfigChooser(5, 6, 5, 0, 0, 0);
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ public class RefreshLayout extends SwipeRefreshLayout {
|
||||
mEasyRecyclerView = new EasyRecyclerView(context);
|
||||
else
|
||||
mEasyRecyclerView = new EasyRecyclerView(context, attrs);
|
||||
mEasyRecyclerView.setId(R.id.easy_recycler_view);
|
||||
addView(mEasyRecyclerView);
|
||||
|
||||
// Footer view
|
||||
|
||||
Reference in new issue
Block a user