Open kibagami-jubei opened 11 years ago
Hi, I'm trying to have the sliding layer display (shown) over the main layout right after I set the content view. Here's my code.
setContentView(R.layout.randomLayout); slidingLayer = (SlidingLayer) findViewById(R.id.slidingLayer1); slidingLayer.setShadowWidthRes(R.dimen.shadow_width); slidingLayer.setShadowDrawable(R.drawable.sidebar_shadow); slidingLayer.setStickTo(SlidingLayer.STICK_TO_MIDDLE); slidingLayer.setCloseOnTapEnabled(false); slidingLayer.openLayer(true);
Okay, here's what most of my layout looks like. Now for some reason, the relative layout ain't showing at all when I post this so just imagine that this content is inside a relative layout.
<com.slidinglayer.SlidingLayer xmlns:slidingLayer="http://schemas.android.com/apk/res/com.slidinglayersample" android:id="@+id/slidingLayer1" android:layout_width="@dimen/layer_width" android:layout_height="match_parent" /> <include layout="@layout/user_preferences" />
The code "works" as no errors are thrown. However, the layer isn't showing up either. Is there a way to open the sliding layer after changing layouts?
did you try calling bringToFront() on your slidinglayer? maybe its hidden behind some view..
Hi, I'm trying to have the sliding layer display (shown) over the main layout right after I set the content view. Here's my code.
Okay, here's what most of my layout looks like. Now for some reason, the relative layout ain't showing at all when I post this so just imagine that this content is inside a relative layout.
The code "works" as no errors are thrown. However, the layer isn't showing up either. Is there a way to open the sliding layer after changing layouts?