xml - shape rectangle corner(android) -


sorry english. want create linerlayout top left corner radius. example:

enter image description here

its xml:

 <linearlayout                     android:id="@+id/getbonusclick"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:background="@drawable/shape_corner_left_top"                     android:orientation="vertical" /> 

its shape_corner_left_top

<?xml version="1.0" encoding="utf-8"?> <selector   xmlns:android="http://schemas.android.com/apk/res/android"  android:shape="rectangle">      <item>         <shape>             <solid android:color="#ec6118"/>             <corners android:bottomrightradius="0dp"                  android:bottomleftradius="0dip"                  android:topleftradius="10dip"                  android:toprightradius="0.1dp"/>         </shape>     </item>  </selector> 

its result:

enter image description here

i need radius left top corner. how make made this?

i checked it, use code, problem solved

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" >     <corners android:radius="10dp"   android:bottomrightradius="0dp" android:bottomleftradius="0dp"    android:topleftradius="10dp" android:toprightradius="0dp"/>     <solid android:color="@android:color/black"/>     <stroke android:width="1dp"         android:color="@android:color/holo_blue_dark"/> </shape> 

preview on eclipse not correct, run on device. find solution.

thanks


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -