Add recycler view adapter for marker list

This commit is contained in:
Leon Marz
2023-08-20 12:47:30 +02:00
parent 7afa4b86d4
commit 5978886a18
4 changed files with 398 additions and 0 deletions
@@ -52,4 +52,15 @@ public class ThemeUtils {
typedArray.recycle();
return fontSize;
}
/**
* Gets the photo height.
*/
public static int getPhotoHeight(Context context) {
int[] attrs = new int[]{android.R.attr.listPreferredItemHeight};
TypedArray typeArray = context.obtainStyledAttributes(attrs);
int height = typeArray.getDimensionPixelSize(0, 128);
typeArray.recycle();
return 2 * height;
}
}