I
I
ibr_982017-04-07 18:53:11
Android
ibr_98, 2017-04-07 18:53:11

Why in html, even if I don’t write br, the line is still wrapped?

hello, here is the code, why are the deadlines being postponed? I didn’t write the br tag, how can I turn off the transfer?
<div>Текст1</div> <div class="div">Текст2</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
acbelter, 2018-07-20
@PainMain

Font support for older versions of Android appeared in the Support Library v26, so you need to add it to dependencies:
And it will be possible to use only xmlns:app :

<?xml version="1.0" encoding="utf-8"?>
<font-family
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <font
        app:fontStyle="normal"
        app:fontWeight="400"
        app:font="@font/atma_regular"/>

    <font
        app:fontStyle="normal"
        app:fontWeight="100"
        app:font="@font/atma_light"/>
</font-family>

K
Kirill Kublyakov, 2017-04-07
@ibr_98

Because div is a block element.
Disable wrapping - replace div with span

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question