0

私はアンドロイドでアプリケーションを持っており、次のFrameLayoutようなものを使用してボタンのテキストを設定しています:

    <FrameLayout    android:layout_width="fill_parent"
                    android:layout_toRightOf="@id/surface_camera"
                    android:layout_height="fill_parent">


  <Button           android:layout_width="match_parent"
                     android:id="@+id/btnPhoto"
                    android:layout_height="match_parent"/>
        <TextView   
                    android:layout_width="match_parent"
                    android:id="@+id/textview"
                    android:textColor="#000000"
                    android:textSize="20dip"
                    android:layout_gravity="center_horizontal|bottom"
                    android:layout_height="match_parent" 
                    android:text="Take Photo"
                    />

  </FrameLayout>

結果は次のようになります: http://i53.tinypic.com/2ypgn0l.png

私が聞きたいのは、これをさらに使用してFrameLayoutこのテキストを回転させることができる可能性はありますか???...90度としましょう...そしてYES、どうやって?ありがとう!

4

1 に答える 1

0

TextView で RotateAnimation を使用できますが、横向きと縦向きで別のレイアウトを使用しようとしているだけの場合は、別のフォルダーに別の xml を指定してください。http://developer.android.com/guide/topics/resources/providing-resources.htmlに従ってフォルダーに名前を付け ます

上記のリンクは、さまざまな条件に対してさまざまなリソースを指定する方法を示しています。

于 2011-08-24T06:13:08.350 に答える