Search Bar

Meratakan Text pada layout xml agar tertata dengan rapi di Android Studio



Meratakan Text pada layout xml agar tertata dengan rapi di Android Studio





Cara merapikan text agar tertata dengan rapi yaitu dengan menggunakan tabel pada android.
1. buka android studio 
2. buat layout untuk isi textnya
3. buat text view untuk membuat textnya
4. berikut source pada xml nya.

<TableLayoutandroid:layout_marginBottom="40dp"android:layout_marginLeft="10dp"android:layout_marginRight="10dp" android:layout_marginTop="30dp" android:layout_below="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" >
<TableRow>
<TextView android:textColor="@color/colorAccent" android:layout_column="1" android:text="• "></TextView>
<TextView android:textColor="@color/colorAccent" android:layout_column="2" android:layout_width="wrap_content" android:text="Silahkan scan data QR code pada kertas absensi ujian (bukan pada kartu mahasiswa)"></TextView>
</TableRow>
<TableRow>
<TextView android:textColor="@color/colorAccent" android:layout_column="1" android:text="•"></TextView>
<TextView android:textColor="@color/colorAccent" android:layout_column="2" android:layout_width="wrap_content" android:text="Kemudian cocokan data/jadwal mata kuliah yang diujian,kemudian simpan."></TextView>
</TableRow>
<TableRow>
<TextView android:textColor="@color/colorAccent" android:layout_column="1" android:text="•"></TextView>
<TextView android:textColor="@color/colorAccent" android:layout_column="2" android:layout_width="wrap_content" android:text="Scan kartu ujian mahasiswa."></TextView>
</TableRow>
</TableLayout>


Sekian...
Mungkin bisa bermanfaat.. :-)

Post a Comment

1 Comments

  1. NORTON.COM/SETUP| MANAGE NORTON ACCOUNT
    Norton, advanced computer security solutions launched by Symantec offers best antivirus products over the world. As we all are well aware of the common menace that people face in this digital arena. Those common menaces are the viruses and spyware which disrupt the functioning of the computer and lead to data loss in worst case scenarios. It works best with a various operating system which includes Windows, Mac, IOS, etc.
    https://notron-setup.com/

    ReplyDelete

Silahkan Dikomentar ya?