Framelayoutを使って,テキストの上にボタンを重ねて配置していますが,ボタンの下にあるテキストの色が薄くなって表示されてしまいます.薄くならないようにするにはどうすれば良いでしょうか.
layoutのコードは以下の通りです.よろしくお願いいたします.
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:background="#000000" android:gravity="center" android:alpha="0.8" android:text="あああああああああ" android:textColor="#ffffff" android:textSize="40sp" xmlns:android="http://schemas.android.com/apk/res/android" /> <Button android:id="@+id/hannou2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:textColor="#ffffff" android:text="いいいい" android:textSize="40sp" android:background="@drawable/flame_style2" android:paddingBottom="8dp" android:paddingLeft="8dp" android:paddingRight="8dp" android:paddingTop="8dp" android:clickable="true" xmlns:android="http://schemas.android.com/apk/res/android" /> </FrameLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。