リンク内容
AndroidでRSSリーダーを作成する
こちらのサイトを参考にRSSリーダーを作成していて、タイトルと説明文をリストビューにすることはできたのですが、リストビュー内でのタイトルと説明文の位置が少し離れてしまいます。
行のレイアウトはこちらです。
lang
1<LinearLayout 2 android:layout_height="wrap_content" 3 android:layout_width="match_parent" 4 android:orientation="vertical" 5 android:padding="10dp" 6 xmlns:android="http://schemas.android.com/apk/res/android"> 7 <TextView 8 android:id="@+id/title" 9 android:text="dummy" 10 android:textSize="15sp" 11 android:gravity="top|start" 12 android:layout_width="match_parent" 13 android:layout_height="0dp" 14 android:layout_weight="1"/> 15 <TextView 16 android:id="@+id/contains" 17 android:text="dummy" 18 android:layout_gravity="top|start" 19 android:textSize="12sp" 20 android:paddingLeft="3dp" 21 android:layout_width="match_parent" 22 android:layout_height="0dp" 23 android:layout_weight="1"/> 24 </LinearLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/02/23 04:30