こんにちは私はAndroidの新しい開発者です
そして、グローバル変数を作成して、次のようにレイアウトに配置します。
Javaの場合:final dimen myglobalValue = screenSize.width;
final dimen myglobalValue2 = screenSize.height;
レイアウト:
<TextView
android:layout_width="@dimen/myglobalValue"
android:layout_height="@dimen/myglobalValue2"
android:text="@string/app_name"
android:textSize="18dp"
android:textColor="#ffffffff"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />
しかし、どうすればいいのかわからない。