Design Support Library から使用していますがPercentRelativeLayout
、7 インチと 10 インチのタブレットで異なるパーセンテージを設定したいと考えています。
たとえば、ImageView
以下のような場合。
<ImageView
android:id="@+id/contactDoc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_widthPercent="70%"
app:layout_heightPercent="70%"
android:layout_centerHorizontal="true"
android:clickable="true"
android:src="@drawable/dashboard_contactdoctor" />
sw720dp のような別のレイアウトフォルダーを作成せずに、7インチタブレットに70%、10インチタブレットに60%を設定したい場合。私はそれを行うことができますか?助けていただければ幸いです。