java面板换一个斜的圆形_java – 如何从底部设计圆形视图?
我想設計一個從底部是圓形的視圖,請看圖像
I have try different way to design, Like XML, Programatically but I am not able to get any success. I use XML code it’s doing circle from bottom but when I use Any image or Banner slider as show in figure then it’s hold whole view.
現在我正在使用這個代碼XML
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/bottom_radius"
android:orientation="vertical">
android:id="@+id/bannerSlider"
android:layout_width="match_parent"
android:layout_height="match_parent" />
和bottom_radius.xml
android:bottom="4dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
輸出就像XML一樣
The XML output is looks good as I expected, but when I run the program and see the out put on the mobile or simulator then output is looks like
Please provide me solution so that I can design what I want to design. I will be very thank full to you.
解決方法:
將android:background =“@ drawable / bottom_radius”放到圖像而不是linearlayout
標簽:java,android,android-layout,xml,android-studio
來源: https://codeday.me/bug/20190705/1389029.html
總結
以上是生活随笔為你收集整理的java面板换一个斜的圆形_java – 如何从底部设计圆形视图?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 不足补0 java_Java Andro
- 下一篇: mysql改了排序规则不生效_Mysql