Skip to content

Instantly share code, notes, and snippets.

@nein37
Created August 21, 2014 12:36
Show Gist options
  • Save nein37/5e98366d9c5ddd98c474 to your computer and use it in GitHub Desktop.
Save nein37/5e98366d9c5ddd98c474 to your computer and use it in GitHub Desktop.
レイアウトの余白を埋める ref: http://qiita.com/nein37/items/83f6db980a036298a7be
/**
* Draw nothing.
*
* @param canvas an unused parameter.
*/
@Override
public void draw(Canvas canvas) {
}
compile 'com.android.support:gridlayout-v7:20.0.+'
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/kani" />
<android.support.v7.widget.Space
android:layout_width="match_parent"
android:layout_height="50dp" />
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/kani" />
</LinearLayout>
<android.support.v7.widget.Space
android:layout_width="match_parent"
android:background="@android:color/white"
android:layout_height="50dp" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment