Android 带有角标的TextView

Gradle

compile 'com.haozhang.libary:android-slanted-textview:1.2'

XML Layout


Java

    SlantedTextView stv = (SlantedTextView) findViewById(R.id.test);

    stv.setText("PHP")
            .setTextColor(Color.WHITE)
            .setSlantedBackgroundColor(Color.BLACK)
            .setTextSize(18)
            .setSlantedLength(50)
            .setMode(SlantedTextView.MODE_LEFT);

https://github.com/HeZaiJin/SlantedTextView

你可能感兴趣的:(Android 带有角标的TextView)