CheckBox only way to right-justify

But I hope LinearLayout ListView, but
Line item in
Left TextView, if you want to display to the right or CheckBox,
CheckBox did not know how do I align the.

I do not know what you might say it is only text
I hope you know who you are as addicted (laughs)


I want this ↑

android: layout_width and adjust
android: gravity and I did try to tweak,
CheckBox They put out of sight, but
I wonder both stopped at the left
Well not much.

The key
android: layout_weight
There to.

Appears to be well below that.

    <LinearLayout
    	android:orientation="horizontal"
    	android:gravity="center_vertical"
    	android:layout_height="wrap_content"
    	android:layout_width="fill_parent">
    	<TextView
    		android:id="@+id/TextView01"
	    	android:textAppearance="?android:attr/textAppearanceLarge"
    		android:layout_width="wrap_content"
    		android:layout_height="wrap_content"
    		android:layout_weight="1"
	    	android:text="TEXT">
    	</TextView>
    	<CheckBox
    		android:id="@+id/CheckBox02"
    		android:layout_width="wrap_content"
    		android:layout_height="wrap_content"
    		android:gravity="right">
    	</CheckBox>    		 
	</LinearLayout>

TextView toward
android: layout_weight = “1″
Have been added.

This component weighting Sururashiku
It seems like I’m taking the margin seems to prioritize.
(The default 0)

This example has,
The TextView 1, CheckBox at 0
All the spaces between them seem to carry the TextView.

Incidentally,
android: layout_weight = “1″
This will not be.

Androidアプリ講座オープン
副業大学にAndroidアプリ作成講座がオープン。
アフィリエイトやドロップシッピングも学べるお得な大学。

innc.japan-power.biz
カテゴリー: Android アプリ 関連 情報   パーマリンク