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