Update
This commit is contained in:
1 parent
b9f0a6c70c
commit
69330a2fec
20 files changed
+411
-342
No files matched your search
@@ -24,7 +24,6 @@ import android.support.v4.widget.DrawerLayout;
|
||||
import com.hippo.content.VectorContext;
|
||||
import com.hippo.ehviewer.R;
|
||||
import com.hippo.ehviewer.ui.scene.GalleryListScene;
|
||||
import com.hippo.ehviewer.widget.ContentLayout;
|
||||
import com.hippo.scene.StageActivity;
|
||||
import com.hippo.scene.StageLayout;
|
||||
|
||||
@@ -33,7 +32,7 @@ public class ContentActivity extends StageActivity {
|
||||
private Resources mResources;
|
||||
|
||||
private DrawerLayout mDrawerLayout;
|
||||
private ContentLayout mContentLayout;
|
||||
private StageLayout mContentLayout;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -43,21 +42,15 @@ public class ContentActivity extends StageActivity {
|
||||
mResources = getResources();
|
||||
|
||||
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);
|
||||
mContentLayout = (ContentLayout) mDrawerLayout.findViewById(R.id.stage);
|
||||
mContentLayout = (StageLayout) mDrawerLayout.findViewById(R.id.stage);
|
||||
|
||||
mDrawerLayout.setStatusBarBackground(R.color.theme_primary_dark);
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
startScene(GalleryListScene.class, null);
|
||||
}
|
||||
}
|
||||
|
||||
public int getFitPaddingBottom() {
|
||||
return mContentLayout.getFitPaddingBottom();
|
||||
}
|
||||
|
||||
public void setOnGetFitPaddingListener(ContentLayout.OnGetFitPaddingListener listener) {
|
||||
mContentLayout.setOnGetFitPaddingListener(listener);
|
||||
onCreateStageLayout(mContentLayout);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user