|
|
@ -146,8 +146,9 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onOffsetChanged(AppBarLayout appBarLayout, int offset) {
|
|
|
|
public void onOffsetChanged(AppBarLayout appBarLayout, int offset) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
view.setTranslationY(abh + offset);
|
|
|
|
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
|
|
|
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
|
|
|
mlp.topMargin = abh + offset;
|
|
|
|
mlp.bottomMargin = abh + offset;
|
|
|
|
view.setLayoutParams(mlp);
|
|
|
|
view.setLayoutParams(mlp);
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|