Rotation fixes
This commit is contained in:
parent
02b4c9542c
commit
d2d7dbfea3
|
@ -69,6 +69,7 @@ public class FeedInfoFragment extends Fragment {
|
|||
private TextView txtvUrl;
|
||||
private TextView txtvAuthorHeader;
|
||||
private ImageView imgvBackground;
|
||||
private View infoContainer;
|
||||
private View header;
|
||||
private Menu optionsMenu;
|
||||
private ToolbarIconTintManager iconTintManager;
|
||||
|
@ -124,6 +125,7 @@ public class FeedInfoFragment extends Fragment {
|
|||
txtvAuthorHeader = root.findViewById(R.id.txtvAuthor);
|
||||
imgvBackground = root.findViewById(R.id.imgvBackground);
|
||||
header = root.findViewById(R.id.headerContainer);
|
||||
infoContainer = root.findViewById(R.id.infoContainer);
|
||||
root.findViewById(R.id.butShowInfo).setVisibility(View.INVISIBLE);
|
||||
root.findViewById(R.id.butShowSettings).setVisibility(View.INVISIBLE);
|
||||
// https://github.com/bumptech/glide/issues/529
|
||||
|
@ -164,6 +166,8 @@ public class FeedInfoFragment extends Fragment {
|
|||
super.onConfigurationChanged(newConfig);
|
||||
int horizontalSpacing = (int) getResources().getDimension(R.dimen.additional_horizontal_spacing);
|
||||
header.setPadding(horizontalSpacing, header.getPaddingTop(), horizontalSpacing, header.getPaddingBottom());
|
||||
infoContainer.setPadding(horizontalSpacing, infoContainer.getPaddingTop(),
|
||||
horizontalSpacing, infoContainer.getPaddingBottom());
|
||||
}
|
||||
|
||||
private void showFeed() {
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/infoContainer"
|
||||
android:paddingHorizontal="@dimen/additional_horizontal_spacing"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/headerContainer"
|
||||
android:paddingHorizontal="@dimen/additional_horizontal_spacing"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
|
|
Loading…
Reference in New Issue