Support lift Appbar when scroll, use CollapsingAppbar on gallery detail for long title

This commit is contained in:
tarsin committed 2022-11-16 21:50:31 +08:00
1 parent 2da436189a
commit 545eed98a7
14 files changed
+206 -29

No files matched your search

@@ -88,8 +88,12 @@ public class ContentLayout extends FrameLayout {
init(context);
}
protected int getLayout() {
return R.layout.widget_content_layout;
}
private void init(Context context) {
((Activity) context).getLayoutInflater().inflate(R.layout.widget_content_layout, this);
((Activity) context).getLayoutInflater().inflate(getLayout(), this);
setClipChildren(false);
setClipToPadding(false);
@@ -0,0 +1,13 @@
package com.hippo.widget
import android.content.Context
import android.util.AttributeSet
import com.hippo.ehviewer.R
class ContentLayout2 @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null
) : ContentLayout(context, attrs) {
override fun getLayout(): Int {
return R.layout.widget_content_layout_2
}
}