我在 android studio 中有一個大項目,但由于很多錯誤而無法構建它!我只想查看一些 XML 的預覽,因此有任何方法可以在構建成功完成的情況下查看它們!除了電影文件到另一個項目并查看它們..!我的 XML 有一些自定義視圖。和自定義視圖類沒有任何錯誤!<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="40dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="8dp" android:contentDescription="@string/recorder_help" android:paddingStart="14dp" android:paddingTop="8dp" android:paddingEnd="14dp" android:paddingBottom="8dp" android:src="@drawable/btn_menu_more" android:visibility="gone" /> <ImageView android:id="@+id/imgAbout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="@dimen/about_margin_right" android:contentDescription="@string/about_title" android:paddingStart="@dimen/normal_widget_padding" android:paddingTop="@dimen/about_padding_top" android:paddingEnd="@dimen/normal_widget_padding" android:paddingBottom="@dimen/about_padding_top" android:src="@drawable/btn_about" /> </RelativeLayout>
添加回答
舉報
0/150
提交
取消