Fix now playing panel height
This commit is contained in:
parent
ed23f49dc0
commit
7eb6c882dc
|
@ -519,7 +519,7 @@ public abstract class BaseMediaActivity extends BaseActivity
|
|||
|
||||
Resources resources = getResources();
|
||||
int posterWidth = resources.getDimensionPixelOffset(R.dimen.now_playing_panel_art_width);
|
||||
int posterHeight = resources.getDimensionPixelOffset(R.dimen.now_playing_panel_art_height);
|
||||
int posterHeight = resources.getDimensionPixelOffset(R.dimen.now_playing_panel_height);
|
||||
|
||||
// If not video, change aspect ration of poster to a square
|
||||
boolean isVideo = (getItemResult.type.equals(ListType.ItemsAll.TYPE_MOVIE)) ||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom"
|
||||
sothree:umanoPanelHeight="@dimen/now_playing_panel_height"
|
||||
sothree:umanoShadowHeight="4dp"
|
||||
sothree:umanoFadeColor="#00000000"
|
||||
sothree:umanoInitialState="hidden"/>
|
||||
|
|
|
@ -14,9 +14,7 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:sothree="http://schemas.android.com/apk/res-auto"
|
||||
sothree:umanoPanelHeight="@dimen/now_playing_panel_height">
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragment_container"
|
||||
|
@ -36,7 +34,7 @@
|
|||
|
||||
<ImageView android:id="@+id/npp_poster"
|
||||
android:layout_width="@dimen/now_playing_panel_art_width"
|
||||
android:layout_height="@dimen/now_playing_panel_art_height"
|
||||
android:layout_height="@dimen/now_playing_panel_height"
|
||||
android:layout_weight="0"
|
||||
android:scaleType="centerInside"
|
||||
android:contentDescription="@string/poster"/>
|
||||
|
|
|
@ -135,7 +135,5 @@
|
|||
|
||||
<dimen name="now_playing_panel_height">64dp</dimen>
|
||||
<dimen name="now_playing_panel_art_width">48dp</dimen>
|
||||
<dimen name="now_playing_panel_art_height">64dp</dimen>
|
||||
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue