Merge "Fixed that the bigtext nofitication had slightly different padding" into nyc-dev
This commit is contained in:
@@ -65,6 +65,8 @@ public class ImageFloatingTextView extends TextView {
|
||||
.setTextDirection(getTextDirectionHeuristic())
|
||||
.setLineSpacing(getLineSpacingExtra(), getLineSpacingMultiplier())
|
||||
.setIncludePad(getIncludeFontPadding())
|
||||
.setEllipsize(shouldEllipsize ? effectiveEllipsize : null)
|
||||
.setEllipsizedWidth(ellipsisWidth)
|
||||
.setBreakStrategy(Layout.BREAK_STRATEGY_HIGH_QUALITY)
|
||||
.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL);
|
||||
// we set the endmargin on the first 2 lines. this works just in our case but that's
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<com.android.internal.widget.ImageFloatingTextView android:id="@+id/big_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="1.5dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:paddingBottom="@dimen/notification_content_margin_bottom"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
android:singleLine="false"
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License
|
||||
-->
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.android.internal.widget.ImageFloatingTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top"
|
||||
android:layout_marginTop="1.5dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal"
|
||||
android:gravity="top"
|
||||
|
||||
Reference in New Issue
Block a user