feat(instance-info): increase max description height

This commit is contained in:
FineFindus
2023-05-22 20:24:55 +02:00
parent 0b08072dfc
commit d4e1850d8c
2 changed files with 4 additions and 2 deletions

View File

@@ -136,8 +136,8 @@ public class InstanceInfoFragment extends LoaderFragment {
textScrollView=content.findViewById(R.id.text_scroll_view);
readMore=content.findViewById(R.id.read_more);
spaceBelowText=content.findViewById(R.id.space_below_text);
textMaxHeight=getActivity().getResources().getDimension(R.dimen.text_max_height);
textCollapsedHeight=getActivity().getResources().getDimension(R.dimen.text_collapsed_height);
textMaxHeight=getActivity().getResources().getDimension(R.dimen.description_max_height);
textCollapsedHeight=getActivity().getResources().getDimension(R.dimen.description_collapsed_height);
collapseParams=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) textCollapsedHeight);
wrapParams=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);

View File

@@ -3,4 +3,6 @@
<dimen name="text_max_height">220dp</dimen>
<dimen name="text_collapsed_height">145dp</dimen>
<dimen name="layout_max_width">450dp</dimen>
<dimen name="description_max_height">1000dp</dimen>
<dimen name="description_collapsed_height">445dp</dimen>
</resources>