Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かが私にこの属性を使用する方法を教えてもらえますかandroid:layoutDirection、
android:layoutDirection
この質問を参照しないでくださいAndroidの右から左への言語のステータスは何ですか?それは私の質問に答えないからです!
4.0ではlayoutDirectionが公開されていないのでattrは使えませんが、sdkを使っていない場合は全てandroidのコードでビルドしてください。通常は setContent の後で、View.java で定義する @hide api setLayoutDiredtion(View.LAYOUT_DIRECTION_LOCALE) を使用して、作成時に最初にコードで Linearlayout を取得します。もちろん、4.2 以降では、xml で直接 layoutDirection を使用できます。