Created
August 21, 2014 12:36
-
-
Save nein37/5e98366d9c5ddd98c474 to your computer and use it in GitHub Desktop.
レイアウトの余白を埋める ref: http://qiita.com/nein37/items/83f6db980a036298a7be
This file contains 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
/** | |
* Draw nothing. | |
* | |
* @param canvas an unused parameter. | |
*/ | |
@Override | |
public void draw(Canvas canvas) { | |
} |
This file contains 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
compile 'com.android.support:gridlayout-v7:20.0.+' |
This file contains 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
<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> |
This file contains 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
<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