我在android中有一个应用程序,我使用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
,怎么样?谢谢!
答案 0 :(得分:0)
您可以在TextView上使用RotateAnimation,但如果您只是尝试在横向和纵向中使用不同的布局,请在不同的文件夹中指定不同的xmls。根据命名文件夹 http://developer.android.com/guide/topics/resources/providing-resources.html
以上链接告诉您如何为不同条件指定不同的资源。