LoginSignup
18
18

More than 5 years have passed since last update.

デザイナーのためのandroidレイアウトあるあるまとめ

Posted at

android:gravityについて

子要素ではなく、親要素に対して指定する。
CSSのfloatとは違うので注意。

テキストの縦位置を中央揃えにする

android:gravity="center_vertical"

FrameLayoutについて

下においた要素(レイヤー)が上に来る

RGBAの色指定を16進数で行う場合

#aa000000の場合、アルファ値はaaの部分。

テキストのドロップシャドウ

android:shadowColor="#aaaaaa"
android:shadowDx="0"
android:shadowDy="2"
android:shadowRadius="2"

radiusを忘れがち。

18
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
18