用户等级和粉丝团的更改

This commit is contained in:
18401019693 2022-11-14 11:44:10 +08:00
parent cceb697739
commit 2df205218c
3 changed files with 11 additions and 4 deletions

View File

@ -10,9 +10,9 @@ ext {
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : "https://ceshi.yaoulive.com", serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -525,8 +525,14 @@ public class LiveTextRender {
mPaint.setColor(Color.WHITE); mPaint.setColor(Color.WHITE);
mPaint.setTextSize(50); mPaint.setTextSize(50);
mPaint.setTypeface(font); mPaint.setTypeface(font);
int indexX = 80;
//水印的位置坐标 //水印的位置坐标
mCanvas.drawText(level, 80, 53, mPaint); if (level.length() > 2) {
indexX = 75;
} else {
indexX = 84;
}
mCanvas.drawText(level, indexX, 53, mPaint);
mCanvas.save(); mCanvas.save();
mCanvas.restore(); mCanvas.restore();
return mNewBitmap; return mNewBitmap;

View File

@ -15,10 +15,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:paddingLeft="15dp" android:paddingLeft="15dp"
android:layout_marginTop="1dp"
android:text="主播" android:text="主播"
android:layout_marginBottom="1dp" android:layout_marginBottom="1dp"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="10sp" /> android:textSize="8sp" />
</FrameLayout> </FrameLayout>