2015-11-03から1日間の記事一覧
単位説明 px(ピクセル) ディスプレイの点 dip(dp)(device independent pixels) 1インチ160点のディスプレイの場合、1dip = 1px sp(scaled pixels, 比例ピクセル) 主にフォントサイズを処理 in インチ mm ミリ pt 1/72インチ
activity_main.xml <AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> </absolutelayout>
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> </relativelayout>
activity_main.xml <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:columnCount="4" android:rowCount="6" android:id="@+id/root" > </gridlayout>
MainActivity.java package com.example.liguofeng.framelayout;import android.os.Handler;import android.os.Message;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.TextView;import java.util.Timer;…