Use view inflator to inject fixed views

This commit is contained in:
M66B
2022-06-10 09:29:07 +02:00
parent 04ddbc4500
commit 7cae4e67c4
172 changed files with 2062 additions and 2015 deletions

View File

@@ -0,0 +1,31 @@
package eu.faircode.email;
import android.content.Context;
import android.util.AttributeSet;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.widget.NestedScrollView;
public class FixedNestedScrollView extends NestedScrollView {
public FixedNestedScrollView(@NonNull Context context) {
super(context);
}
public FixedNestedScrollView(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
public FixedNestedScrollView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
try {
super.onLayout(changed, l, t, r, b);
} catch (Throwable ex) {
Log.w(ex);
}
}
}