###前提・実現したいこと
サンプルで配布されているlive壁紙のプロジェクトを改造してボタンを使ったプログラムを組み込みたい
###発生している問題・エラーメッセージ
このサンプルプログラムのactivity_main.xmlに当たるであろうres/layout/activity_sample.xmlにボタンを表示するよう記載してもエラーこそ出ないものの
ボタンが表示されない
###該当のソースコード
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</RelativeLayout> ##試してみたこと <TextView android:layout_width="120dp" android:layout_height="40dp" android:text="Hello World!" android:textSize="40sp"/> と記載してもエラーは出ないが表示されない<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" tools:context=".SampleActivity" /> <Button android:background="#FF0000" android:text="AAA" android:layout_width="50dp" android:layout_height="match_parent"/>
##お願いします
androidアプリの開発自体初心者なので意味分からないこと言ってるのかもしれませんが、どうかエスパーの方よろしくお願いします
回答1件
あなたの回答
tips
プレビュー