中心为椭圆形的 LinearLayout
LinearLayout with oval form in center
我如何绘制如下图所示的视图(暗视图)?
中心呈椭圆形。
TextView[传输] - ImageView[二维码扫描](椭圆形) - TextView[请求]
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:orientation="vertical"
android:background="@drawable/bottom">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FAFAFA"
android:layout_marginTop="45dp"
android:text="Text1"
android:textSize="20dp"
android:layout_marginLeft="30dp"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FAFAFA"
android:layout_marginTop="45dp"
android:text="Text1"
android:layout_alignParentRight="true"
android:layout_marginRight="30dp"
android:textSize="20dp"
android:layout_marginLeft="30dp"/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
我如何绘制如下图所示的视图(暗视图)? 中心呈椭圆形。
TextView[传输] - ImageView[二维码扫描](椭圆形) - TextView[请求]
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:orientation="vertical"
android:background="@drawable/bottom">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FAFAFA"
android:layout_marginTop="45dp"
android:text="Text1"
android:textSize="20dp"
android:layout_marginLeft="30dp"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FAFAFA"
android:layout_marginTop="45dp"
android:text="Text1"
android:layout_alignParentRight="true"
android:layout_marginRight="30dp"
android:textSize="20dp"
android:layout_marginLeft="30dp"/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>