Skip to content

Commit

Permalink
divider
Browse files Browse the repository at this point in the history
  • Loading branch information
balrampandey19 committed Jan 7, 2017
1 parent 539767a commit f44e1d9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
37 changes: 33 additions & 4 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,65 @@
android:text="@string/message"
android:textSize="20dp"
app:font="cacophony_loud.ttf"/>

<View android:background="#50000000"
android:layout_width = "match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_height="0.5dp"/>
<com.balram.library.FotEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:backgroundTint="@color/colorPrimary"
android:hint="@string/message"
app:font="cacophony_loud.ttf"/>

<View android:background="#50000000"
android:layout_width = "match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_height="0.5dp"/>


<com.balram.library.FotCheckBox
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:backgroundTint="@color/colorPrimary"
android:hint="@string/message"
app:font="cacophony_loud.ttf"/>
<View android:background="#50000000"
android:layout_width = "match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_height="0.5dp"/>

<com.balram.library.FotRadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:backgroundTint="@color/colorPrimary"
android:hint="@string/message"
app:font="cacophony_loud.ttf"/>

<View android:background="#50000000"
android:layout_width = "match_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_height="0.5dp"/>

<com.balram.library.FotButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:hint="@string/message"
app:font="cacophony_loud.ttf"/>




Expand Down
3 changes: 2 additions & 1 deletion library/src/main/java/com/balram/library/FotButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.Button;
import android.widget.TextView;

/**
* Created by Balram Pandey on 1/6/17.
*/

public class FotButton extends TextView {
public class FotButton extends Button {
private static final String TAG = "FotButton";

public FotButton(Context context) {
Expand Down

0 comments on commit f44e1d9

Please sign in to comment.