rey5137 / material

A library to bring fully animated Material Design components to pre-Lolipop Android.
http://rey5137.com/material/
Apache License 2.0
6.01k stars 1.32k forks source link

rd_cornerRadius doesn't work #205

Open EpsilonOrionis opened 9 years ago

EpsilonOrionis commented 9 years ago

I can't make my button's corners rounded

rey5137 commented 9 years ago

Can you post the xml you used?

hadifar commented 9 years ago

same issue

here is my Xml :

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">

<android.support.v4.view.ViewPager
    android:id="@+id/vp_intro"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<com.viewpagerindicator.CirclePageIndicator
    android:id="@+id/cpi_intro"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/ll_intro_footer"
    android:padding="10dip" />

<LinearLayout
    android:id="@+id/ll_intro_footer"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:layout_alignParentBottom="true"
    android:layout_margin="20dp"
    android:orientation="horizontal">

    <com.rey.material.widget.Button
        android:id="@+id/btn_intro_register"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_marginEnd="5dp"
        android:layout_marginRight="5dp"
        android:layout_weight="1"
        android:background="@color/btn_blue"
        android:text="@string/register"
        android:textColor="@color/white"
        android:textSize="@dimen/t1"
        app:rd_backgroundColor="@color/btn_blue_dark"
        app:rd_cornerRadius="4dp"
        app:rd_enable="true" />

    <com.rey.material.widget.Button
        android:id="@+id/btn_intro_login"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_marginLeft="5dp"
        android:layout_marginStart="5dp"
        android:layout_weight="1"
        android:background="@color/btn_gray"
        android:text="@string/login"
        android:textColor="@color/gray_dark"
        android:textSize="@dimen/t1"
        app:rd_backgroundColor="@color/btn_gray_dark"
        app:rd_cornerRadius="4dp"
        app:rd_enable="true" />

</LinearLayout>

davroux commented 8 years ago

The same, also rd_leftPadding and rd_rightPadding don't work either....

agramian commented 8 years ago

Has anybody had any lucky resolving this? I'm running into the same problem.

paulocoutinhox commented 8 years ago

Hi, i think that "rd_" prefix is only for the "ripple" drawable, and not the button.