Xperia Z と Xperia タブレット Z で動作する Android アプリを開発しています。私の問題は、AndroidManifest で anyDensity=true のときに Gravity.RIGHT プロパティが有効になることですが、anyDensity=false のときに機能しません。以下に示すように、一部の右端の文字が部分的に隠されています。TextView や Layout の設定をいろいろ変えてみましたが、全部表示できませんでした。anyDensity=false の場合に Gravity.RIGHT を完全に機能させるには、何を設定すればよいか教えてもらえますか?
ありがとうございました。
`
----------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000"
>
<TextView
android:id="@+id/textDP"
android:textStyle="bold"
android:typeface="normal"
android:textSize="15.125dp"
android:textColor="#0000ff"
android:background="#cccccc"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:gravity="center_vertical|right"
android:layout_marginLeft="50px"
android:layout_marginTop="50px"
android:text="@string/Sample001"
/>
<TextView
android:id="@+id/textDP"
android:textStyle="bold"
android:typeface="normal"
android:textSize="15.125dp"
android:textColor="#0000ff"
android:background="#cccccc"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:gravity="center_vertical|right"
android:layout_marginLeft="50px"
android:layout_marginTop="75px"
android:text="@string/Sample002"
/>
: #Omission
----------------------------------------
`