question - align label2 to the left
#1
I want to align <label2> to the left and <label> to the right.
When I add the <align>right</align> to the control they both stick to the right on each other.
I know I can just replace them but I wonder if it is possible to align only one of the labels.

thanks.
Reply
#2
could you show us the code you're using?
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Actually I'm trying to change your skin(Transparency) to fit Hebrew. I'm trying to change the settings part so I edit this part:
Code:
        <control type="togglebutton" id="10">
            <description>Default Category Button</description>
            <include>ButtonCommonValues</include>
            <texturefocus border="10">Button_Side_Focus.png</texturefocus>
            <texturenofocus border="10">Button_Side_NoFocus.png</texturenofocus>
            <alttexturefocus border="10">Button_Side_Focus.png</alttexturefocus>
            <alttexturenofocus border="10">Button_Side_NoFocus.png</alttexturenofocus>
            <onback>SetFocus(5)</onback>
        </control>
        <control type="button" id="7">
            <description>Default Button</description>
            <posx>0</posx>
            <posy>0</posy>
            <height>35</height>
            <font>font-20</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <texturefocus border="7">list-focus.png</texturefocus>
            <texturenofocus border="7">list-nofocus.png</texturenofocus>
        </control>
        <control type="radiobutton" id="8">
            <align>right</align>
            <radioposx>10</radioposx>
            <description>Default RadioButton</description>
            <posx>0</posx>
            <posy>0</posy>
            <height>35</height>
            <font>font-20</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <texturefocus border="7">list-focus.png</texturefocus>
            <texturenofocus border="7">list-nofocus.png</texturenofocus>
        </control>
        <control type="spincontrolex" id="9">
            <description>Default SpinControlex</description>
            <posx>0</posx>
            <posy>0</posy>
            <height>35</height>
            <font>font-20</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <texturefocus border="7">list-focus.png</texturefocus>
            <texturenofocus border="7">list-nofocus.png</texturenofocus>
            <aligny>center</aligny>
            <reverse>yes</reverse>
        </control>
        <control type="sliderex" id="13">
            <description>Default Sliderex</description>
            <posx>0</posx>
            <posy>0</posy>
            <height>35</height>
            <font>font-20</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <texturefocus border="7">list-focus.png</texturefocus>
            <texturenofocus border="7">list-nofocus.png</texturenofocus>
        </control>
in the file SettingsCategory.xml
Reply
#4
there's not much you can do. the contents of those buttons in filled in by Kodi.

if it's done incorrectly for the Hebrew language, i would call that a bug in Kodi.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
I'm just saying that if we use <align>right</align> and <label> is aligned to the right its logical that <label2> will be aligned to the left, right?
Reply
#6
it would make sense to me yeah
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
@ronie

I don't think this is a bug, it would be a really bad solution to allow such feature.
What is needed is to automatically mirror the interface as done for example in Android 4.4+.
Of course a developer who actually can read RTL script should implement this mirroring feature.

p.s. I started reading about Unicode algorithms but I wouldn't call myself a developer.
Reply
#8
(2015-01-24, 02:22)dhead Wrote: @ronie

I don't think this is a bug, it would be a really bad solution to allow such feature.
What is needed is to automatically mirror the interface as done for example in Android 4.4+.

agreed. and the fact Kodi doesn't do this, is what i was calling a bug. ;-)


apart from that, and totally unrelated to the hebrew language or anything,
i think it would make sense to make label and label2 swap places if you
right align the text on a button.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
question - align label2 to the left0