GithubHelp home page GithubHelp logo

naseemakhtar994 / android-round-textview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apg-mobile/android-round-textview

0.0 1.0 0.0 229 KB

Sometime, to do round textview is hard.

Java 100.00%

android-round-textview's Introduction

android-round-textview

Sometime, to do round textview is hard.

allprojects {
	repositories {
	...
	maven { url 'https://jitpack.io' }
	}
}
  
dependencies {
	compile 'com.github.apg-mobile:android-round-textview:v0.0.3'
}

Available components

  1. RoundTextView
  2. RoundLayout
  3. BadgeView

Example Preview

alt text

Example Usage

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="16dp"
    tools:context="com.apg.mobile.roundtextviewsample.MainActivity">

    <com.apg.mobile.roundtextview.RoundTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingBottom="8dp"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"
        android:paddingTop="8dp"
        android:text="Round me up !"
        android:textColor="#fff"
        app:allCorner="16dp"
        app:bgColor="#456432" />

    <com.apg.mobile.roundtextview.RoundLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:paddingBottom="8dp"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"
        android:paddingTop="8dp"
        app:allCorner="16dp"
        app:bgColor="#EA3238">

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Round Any View Group"
                android:textColor="#fff" />

        </RelativeLayout>

    </com.apg.mobile.roundtextview.RoundLayout>

    <com.apg.mobile.roundtextview.BadgeView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:mainAllCorner="30dp"
        app:mainText="Wait for transfer"
        app:subAllCorner="30dp" />

    <com.apg.mobile.roundtextview.BadgeView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:mainAllCorner="30dp"
        app:mainBgColor="#598dd0"
        app:mainText="Ask for address"
        app:subAllCorner="30dp"
        app:subText="+ 2" />

    <com.apg.mobile.roundtextview.BadgeView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:mainAllCorner="30dp"
        app:mainBgColor="#6407c1"
        app:mainText="A very very long long tag g g g g"
        app:subAllCorner="30dp" />


    <com.apg.mobile.roundtextview.BadgeView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:mainAllCorner="30dp"
        app:mainBgColor="#bab8bc"
        app:mainText="A very very long long tag g g g g"
        app:subAllCorner="30dp"
        app:subText="+ 2" />

</LinearLayout>

android-round-textview's People

Contributors

sattha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.