mirror of https://github.com/NekoX-Dev/NekoX.git
22 lines
571 B
Java
22 lines
571 B
Java
package org.telegram.ui.Cells;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
|
|
import org.telegram.messenger.AndroidUtilities;
|
|
|
|
public class FixedHeightEmptyCell extends View {
|
|
|
|
int heightInDp;
|
|
|
|
public FixedHeightEmptyCell(Context context, int heightInDp) {
|
|
super(context);
|
|
this.heightInDp = heightInDp;
|
|
}
|
|
|
|
@Override
|
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
|
super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(heightInDp), MeasureSpec.EXACTLY));
|
|
}
|
|
}
|