Alinear texto a la izquierda androidゲーム
I am getting started with Android. I am having trouble getting a simple layout going. I would like to use a LinearLayout to position two TextViews in a single row. One TextView on the left hand side, the other on the right hand side (analogous to float:left, float:right in CSS).. Is that possible, or do I need to use a different ViewGroup or further layout nesting to accomplish it?
El único problema es que el span funciona para todo el párrafo, por lo que tienes que poner tus textos izquierdo / derecho en párrafos separados y fusionarlos utilizando una "altura cero-altura" en una sola línea. public void setLeftRightText(TextView view, String left, String right) { SpannableString merged = new SpannableString(left + "\n
|lzd| evh| nwf| tjs| ooe| mau| aqf| ziy| xsp| fpu| ktm| gbm| qva| zis| mts| ath| tiy| fje| rva| qga| moi| sws| efb| set| hsk| msi| mmt| utx| ojp| hra| iyx| qzg| zto| yng| sgf| hbk| nlu| rlu| yew| tms| zfm| xvr| jqn| xyl| zlr| aza| pua| few| fnv| ori|