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's Show-Cause Pentalty And What It Means For His Coaching Future"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
そして、これはあなたがそれをエッジにスナップさせるようなことをやってみたかった場合、それを超えて
ようになりますカスタムビューのようなもの、またはそのようなものがある場合は、hereとhereとすることをお勧めします。