SORU
9 AĞUSTOS 2011, Salı


nasıl doğru yatay Doğrusal Düzen android widget hizalamak için?

Bu kullanıyorum ve çalışmıyor kod

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:orientation="horizontal">

    <TextView android:text="TextView" android:id="@ id/textView1"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:gravity="right">
    </TextView>

</LinearLayout>

CEVAP
9 AĞUSTOS 2011, Salı


Bu LinearLayout yerçekimi "Tamam sen bana ben sana" eğer her şey doğru olmak istiyorum . değiştirmeyin

Deneyin:

  1. TextView değiştiringenişlikfill_parent
  2. TextView değiştirinyerçekimiright

    <TextView 
              android:text="TextView" 
              android:id="@ id/textView1"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"   
              android:gravity="right">
    </TextView>
    

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • BenjiManTV

    BenjiManTV

    20 Mart 2011
  • Dogbert files

    Dogbert file

    12 Ocak 2012
  • sinumatic

    sinumatic

    19 Aralık 2006