LinearLayout (水平) を含むアクティビティがあります。LinearLyout 内のすべての要素をマージンやパディングなしでアタッチしたいと考えています。私は多くの方法を試しましたが、役に立ちませんでした。
これは私の最後の試みです:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="0.50" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:includeFontPadding="false" >
<TextView
android:id="@+id/descriptionCounter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp"
android:background="@null"
android:gravity="center_horizontal"
android:text="@string/text_description"
android:textColor="#33b5e5"
android:textSize="60sp"
android:includeFontPadding="false" />
<TextView
android:id="@+id/textActionCounter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp"
android:background="@null"
android:contentDescription="@string/text_counter"
android:gravity="center_horizontal"
android:textColor="#33b5e5"
android:textSize="140sp"
android:includeFontPadding="false" />
<TextView
android:id="@+id/previousCounter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp"
android:background="@null"
android:contentDescription="@string/text_counter"
android:gravity="center_horizontal"
android:textColor="#33b5e5"
android:textSize="60sp"
android:includeFontPadding="false" />
</LinearLayout>
</RelativeLayout>
どうすれば問題を解決できますか?
ありがとう!