2
AndroidスタジオのXMLプレビューでレイアウト用のRTLビューをプレビューすることはできますか?あなたは、 "RTL" たとえばAndroidスタジオでのRTLプレビュー
としてあなたのxml親ビューのlayoutDirectionを設定することができ、プレビューのために
AndroidスタジオのXMLプレビューでレイアウト用のRTLビューをプレビューすることはできますか?あなたは、 "RTL" たとえばAndroidスタジオでのRTLプレビュー
としてあなたのxml親ビューのlayoutDirectionを設定することができ、プレビューのために
、
item.xml
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
card_view:cardCornerRadius="2dp"
card_view:cardElevation="2dp"
card_view:cardUseCompatPadding="true"
android:layoutDirection="rtl"
>
//design
</android.support.v7.widget.CardView>
アンドロイド:layoutDirection = "rtlの"
出力: