Created
January 30, 2014 09:28
-
-
Save Yosuke-Kawakami/8705264 to your computer and use it in GitHub Desktop.
カード UI 的なものを作りたかったのだが、これでいいのだろうか?(ListView のデザインを調整したもの)(ListView 部分は割愛した)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
<item> | |
<shape> | |
<solid android:color="#CCCCCC" /> | |
</shape> | |
</item> | |
<item | |
android:state_selected="false" | |
android:top="10dp" | |
android:bottom="5dp" | |
android:left="10dp" | |
android:right="10dp" | |
> | |
<shape> | |
<corners android:radius="7dp"/> | |
<gradient | |
android:angle="270" | |
android:startColor="#FFFFFF" | |
android:endColor="#EDEDED" | |
/> | |
</shape> | |
</item> | |
</layer-list> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:background="@drawable/design" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<TextView | |
android:id="@+id/list_title" | |
android:textSize="20sp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentTop="true" | |
android:layout_alignParentLeft="true" | |
android:paddingTop="5sp" | |
android:paddingLeft="10sp" | |
/> | |
<TextView | |
android:id="@+id/list_arrival" | |
android:textSize="15sp" | |
android:paddingTop="10sp" | |
android:paddingLeft="20sp" | |
android:layout_marginRight="60sp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/list_title" | |
android:layout_alignParentLeft="true" /> | |
<TextView | |
android:id="@+id/list_departure" | |
android:textSize="15sp" | |
android:paddingLeft="20sp" | |
android:paddingBottom="10sp" | |
android:layout_marginRight="60sp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/list_arrival" | |
android:layout_alignParentLeft="true" /> | |
<ImageView | |
android:id="@+id/list_image" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:gravity="center" | |
android:src="@drawable/ic_launcher" | |
android:paddingTop="10sp" | |
android:layout_alignParentTop="true" | |
android:layout_alignParentRight="true" | |
android:contentDescription="@string/hello_world" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment