嘿我正在做一个android应用程序,有人可以告诉我为什么不在我的andriod屏幕上显示按钮mi_perfil?这是我的布局代码:没有出现android按钮布局
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
>
<ImageView
android:id="@+id/foto"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginRight="6dip"
android:layout_marginLeft="20dip" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout2"
android:gravity="center_horizontal"
android:layout_toRightOf="@id/linearLayout"
android:orientation="vertical" >
<TextView
android:id="@+id/txt3"
android:layout_width="match_parent"
android:layout_height="34dp"
/>
<TextView
android:id="@+id/txt4"
android:layout_width="match_parent"
android:layout_height="34dp"
/>
<TextView
android:id="@+id/txt2"
android:layout_width="match_parent"
android:layout_height="34dp"
android:text="@string/Importar_Contactos" />
</LinearLayout>
<Button android:id="@+id/miPerfil"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:text="@string/boton_mi_perfil"
android:onClick="MiPerfil"
android:layout_marginRight="20dip"
android:layout_marginLeft="6dip" />
</LinearLayout>
我想把按钮放在我的屏幕的右侧,但它不出现。
谢谢。
不清楚哪一个是你在xml设计中的想法,是否可以将你的想法上传到drawable? – jlopez