Fix now playing panel height

This commit is contained in:
Synced Synapse 2017-09-15 16:56:52 +01:00
parent ed23f49dc0
commit 7eb6c882dc
4 changed files with 4 additions and 7 deletions

View File

@ -519,7 +519,7 @@ public abstract class BaseMediaActivity extends BaseActivity
Resources resources = getResources(); Resources resources = getResources();
int posterWidth = resources.getDimensionPixelOffset(R.dimen.now_playing_panel_art_width); 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 // If not video, change aspect ration of poster to a square
boolean isVideo = (getItemResult.type.equals(ListType.ItemsAll.TYPE_MOVIE)) || boolean isVideo = (getItemResult.type.equals(ListType.ItemsAll.TYPE_MOVIE)) ||

View File

@ -35,6 +35,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="bottom" android:gravity="bottom"
sothree:umanoPanelHeight="@dimen/now_playing_panel_height"
sothree:umanoShadowHeight="4dp" sothree:umanoShadowHeight="4dp"
sothree:umanoFadeColor="#00000000" sothree:umanoFadeColor="#00000000"
sothree:umanoInitialState="hidden"/> sothree:umanoInitialState="hidden"/>

View File

@ -14,9 +14,7 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" <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">
<FrameLayout <FrameLayout
android:id="@+id/fragment_container" android:id="@+id/fragment_container"
@ -36,7 +34,7 @@
<ImageView android:id="@+id/npp_poster" <ImageView android:id="@+id/npp_poster"
android:layout_width="@dimen/now_playing_panel_art_width" 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:layout_weight="0"
android:scaleType="centerInside" android:scaleType="centerInside"
android:contentDescription="@string/poster"/> android:contentDescription="@string/poster"/>

View File

@ -135,7 +135,5 @@
<dimen name="now_playing_panel_height">64dp</dimen> <dimen name="now_playing_panel_height">64dp</dimen>
<dimen name="now_playing_panel_art_width">48dp</dimen> <dimen name="now_playing_panel_art_width">48dp</dimen>
<dimen name="now_playing_panel_art_height">64dp</dimen>
</resources> </resources>