形状的Android布局

| 我需要用一堆文本字段和一个带有2个椭圆形且上面有文本的堆栈图表条做一个视图 我当时正在考虑使用xml布局,并包括一个包含图像视图和文本的视图,
<RelativeLayout android:id=\"@+id/relativeLayout1\" android:layout_width=\"fill_parent\" android:layout_height=\"fill_parent\">
    <ImageView android:id=\"@+id/totalDays\" android:layout_width=\"fill_parent\"
        android:layout_height=\"50dip\" android:src=\"@drawable/shape_total\" />
    <ImageView android:id=\"@+id/usedDays\" android:layout_width=\"50dip\"
        android:layout_height=\"50dip\" android:src=\"@drawable/shape_days\" /> 
    <TextView android:id=\"@+id/textView1\" android:text=\"TextView\" android:layout_height=\"wrap_content\"
        android:layout_width=\"wrap_content\" android:layout_alignBaseline=\"@id/usedDays\"></TextView>
</RelativeLayout>
到目前为止,我有两个问题,如何将形状旋转90%,并在每个形状的中间对齐文本。是否有更好的方法,例如使用直线绘制方法? 谢谢
已邀请:

要回复问题请先登录注册