Tiny layout improvements
This commit is contained in:
parent
559cdf577c
commit
4336c10fb1
|
@ -22,6 +22,7 @@ import android.widget.ImageView;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
|
@ -208,6 +209,12 @@ public class ItemFragment extends Fragment {
|
||||||
return layout;
|
return layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||||
|
super.onViewCreated(view, savedInstanceState);
|
||||||
|
load();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
|
@ -217,7 +224,6 @@ public class ItemFragment extends Fragment {
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
load();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class Timeline {
|
||||||
+ "a.timecode {"
|
+ "a.timecode {"
|
||||||
+ "color: #669900;"
|
+ "color: #669900;"
|
||||||
+ "}"
|
+ "}"
|
||||||
+ "img {"
|
+ "img, iframe {"
|
||||||
+ "display: block;"
|
+ "display: block;"
|
||||||
+ "margin: 10 auto;"
|
+ "margin: 10 auto;"
|
||||||
+ "max-width: %s;"
|
+ "max-width: %s;"
|
||||||
|
|
Loading…
Reference in New Issue