2011-10-26 8 views

答えて

1

これは、どれだけ遠くに行きたいかによって決まります。シンプルなScrollViewを使用すると、リンクした画像内のすべてのコンポーネントを保持するカスタムビューを追加することができます。

はここにあなたのカスタムレイアウトは次のようになります:

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

    <LinearLayout 
     android:layout_width="wrap_content" 
     android:layout_height="fill_parent" 
     android:layout_marginRight="24dp" 
     android:orientation="vertical" > 

     <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="29" 
      android:textColor="#ffff0000" 
      android:textSize="24dp" 
      android:textStyle="bold" /> 

     <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="of 30" 
      android:textSize="14dp" 
      android:textStyle="italic" /> 
    </LinearLayout> 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 

     <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="August 24 8:01 AM" 
      android:textStyle="italic" /> 

     <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="Bruce Pearl&apos;s Show-Cause Pentalty And What It Means For His Coaching Future" 
      android:textStyle="bold" /> 
    </LinearLayout> 
</LinearLayout> 

そして、これはあなたがそれをエッジにスナップさせるようなことをやってみたかった場合、それを超えて

enter image description here

ようになりますカスタムビューのようなもの、またはそのようなものがある場合は、herehereとすることをお勧めします。

関連する問題