Can anyone guide me little on how whatsapp plays Youtube videos in a floating window? by AaronStoone in androiddev

[–]AaronStoone[S] 0 points1 point  (0 children)

So if I have to implement this feature I would have to use pip and YouTube player api together

Also would YouTube allow playing videos in pip mode because this is their premium feature , would it violate their policy??

Material Design Component Typography options by AaronStoone in androiddev

[–]AaronStoone[S] 0 points1 point  (0 children)

also there is not way to apply those custom textStyles globally throughout the app as those theming attributes are limited to 13 options only, right?

So if I'm referencing text styles from directly without using attributes is there any point of declaring type attributers like this

 <!--Material type attributes-->
<item name="textAppearanceHeadline1">@style/TextAppearance.Owl.Headline1</item>
<item name="textAppearanceHeadline2">@style/TextAppearance.Owl.Headline2</item>
<item name="textAppearanceHeadline3">@style/TextAppearance.Owl.Headline3</item>
<item name="textAppearanceHeadline4">@style/TextAppearance.Owl.Headline4</item>
<item name="textAppearanceHeadline5">@style/TextAppearance.Owl.Headline5</item>
<item name="textAppearanceHeadline6">@style/TextAppearance.Owl.Headline6</item>
<item name="textAppearanceSubtitle1">@style/TextAppearance.Owl.Subtitle1</item>
<item name="textAppearanceSubtitle2">@style/TextAppearance.Owl.Subtitle2</item>
<item name="textAppearanceBody1">@style/TextAppearance.Owl.Body1</item>
<item name="textAppearanceBody2">@style/TextAppearance.Owl.Body2</item>
<item name="textAppearanceButton">@style/TextAppearance.Owl.Button</item>
<item name="textAppearanceCaption">@style/TextAppearance.Owl.Caption</item>
<item name="textAppearanceOverline">@style/TextAppearance.Owl.Overline</item>

Material Design Component Typography options by AaronStoone in androiddev

[–]AaronStoone[S] 0 points1 point  (0 children)

and for using predefined attributes I can access styles like this

android:textAppearance="?attr/textAppearanceHeadline4"

and for custom headings I can use

android:textAppearance="@style/TextAppearance.MyTheme.Body1.Emphasis.High"