描述:

android一个倾斜的TextView,适用于标签效果

应用截图:

android一个倾斜的TextView,适用于标签效果


使用说明:

<com.haozhang.lib.SlantedTextView
    android:layout_width="80dp"
    android:layout_height="80dp"
    android:gravity="center"
    app:slantedBackgroundColor="@color/secondary_text"
    app:slantedLength="40dp"
    app:slantedMode="left"
    app:slantedText="IOS"
    app:slantedTextColor="@color/primary"
    app:slantedTextSize="16sp"
    />
    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,适用于标签效果


相关文章:

  • 2023-02-02
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-08-14
  • 2022-01-12
猜你喜欢
  • 2021-11-30
  • 2021-12-29
  • 2021-06-19
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案