android-shape

    2热度

    2回答

    如何编码这种类型的密码屏幕设计,而输入密码后,圈子应该改变或imageview应该改变。 Login.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.an

    0热度

    1回答

    在Lollipop我们设置了view的Shadow通过setElevation()方法。 但在pre-Lollipop,它不起作用。 当pre-lollipop设备和lollipop设备上显示View时,最好的方法是什么?

    1热度

    2回答

    我创建了包含png图标的圆形图形。根据Android材料准则,圆的直径为40dp,图标为24dp。最初,我没有为左,右,顶部和底部设置任何值,因为我认为内部图标项将保持24dp。但是,它调整大小。然后我尝试使用宽度和高度属性将其强制为24dp,这似乎在AS中的预览中工作,但对平板电脑没有影响。最后我如图所示设置顶部,底部,左侧和右侧的值。我使用8dp作为:(40-24)/ 2 = 8. 问题是圆圈

    9热度

    6回答

    自定义形状的LinearLayout与弯曲身边,我想使字形的LinearLayout像下面 我试图让只有一侧弯曲的自定义。尝试角落半径,但它没有提供与上面相同的外观。 已经尝试过这样的背景形状如下: - <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/a

    0热度

    1回答

    我想要两个白色的线 - 一个在视图的顶部,另一个在 底部的视图! 没有左右边框!!!!! <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#00000000"/> <st

    2热度

    3回答

    我有一个线性布局视图,其背景我已设置为椭圆形纯色。到目前为止,我的背景是圆圈。现在我想要达到同样的效果,即使用可绘制的形状来获得2色的圆。请参照附件。

    4热度

    2回答

    我正在向android地图视图添加自定义标记。这里是我使用它的图像。它看起来像更多的标记放置说约100整个应用程序变得缓慢。这是我正在使用的图像。 而不是使用这个形象,我打算画这个图像作为XML的形状。怎么做? 此外,我正在关注this tutorial以显示自定义标记。这是自定义绘图延迟应用程序? 最好的办法是做什么?

    0热度

    2回答

    垂直线形状我有一个层列表背景为我的视图 <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <solid android:color="@color/white"/>

    0热度

    1回答

    我的Android家伙正在使用以下XML的图像: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="7dp" /> <solid android:color="#5

    1热度

    1回答

    <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:top="4dp" android:right="4dp" android:bottom="4dp"