Android EditText MultiLine притягиваемая сила тяжести

Обратите внимание, что новые версии MPL имеют ярлык для этой задачи. Пример показан в другом ответе на этот вопрос: https://stackoverflow.com/a/11386056/42346

Код ниже приведен в иллюстративных целях и может не обязательно оптимизироваться.

import matplotlib.pyplot as plt
import numpy as np

def xticklabels_example():
    fig = plt.figure() 

    x = np.arange(20)
    y1 = np.cos(x)
    y2 = (x**2)
    y3 = (x**3)
    yn = (y1,y2,y3)
    COLORS = ('b','g','k')

    for i,y in enumerate(yn):
        ax = fig.add_subplot(len(yn),1,i+1)

        ax.plot(x, y, ls='solid', color=COLORS[i]) 

        if i != len(yn) - 1:
            # all but last 
            ax.set_xticklabels( () )
        else:
            for tick in ax.xaxis.get_major_ticks():
                tick.label.set_fontsize(14) 
                # specify integer or one of preset strings, e.g.
                #tick.label.set_fontsize('x-small') 
                tick.label.set_rotation('vertical')

    fig.suptitle('Matplotlib xticklabels Example')
    plt.show()

if __name__ == '__main__':
    xticklabels_example()

enter image description here [/g1]

1
задан ThunderRoid 16 January 2019 в 08:36
поделиться

1 ответ

Спасибо @Avinashkumawat

<LinearLayout
    ....
    android:background="@drawable/bg_input_circular"
    android:orientation="horizontal"

    <ImageButton
        ....
        android:layout_gravity="bottom" />

    <EditText
     .... />
</LinearLayout>

отлично работает

enter image description here

0
ответ дан ThunderRoid 16 January 2019 в 08:36
поделиться
Другие вопросы по тегам:

Похожие вопросы: