Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字体和背景大小 #124

Open
ilatent opened this issue Jan 24, 2019 · 4 comments
Open

字体和背景大小 #124

ilatent opened this issue Jan 24, 2019 · 4 comments

Comments

@ilatent
Copy link

ilatent commented Jan 24, 2019

当我字体设置为10sp时,背景大小设置为10dp没问题,但是当我继续缩小背景大小时,却没有效果了,太小反而会导致背景变大,他们有冲突么?字体完全无法充满背景框,字体差不多只能占背景面积的1/4。我想让字体和背景色的面积差不多大小。

@iwgang
Copy link
Owner

iwgang commented Jan 24, 2019

能否给出你实际想达到的效果,以前当前是什么效果

@ilatent
Copy link
Author

ilatent commented Mar 14, 2019

能否给出你实际想达到的效果,以前当前是什么效果

我的字体和背景框的比例过小,感觉没有你的那种填充效果,但是我增大字体大小没有效果,必须增大背景框的大小才可以增大字体,所以我的倒计时永远是字体相对背景框过于小的感觉
image

image

@ilatent
Copy link
Author

ilatent commented Mar 14, 2019

能否给出你实际想达到的效果,以前当前是什么效果

为此我还一步一步调小你的apk的倒计时,并对背景框和字体带下做记录,设置到我的程序里,就是不行,实在是不知道是哪里的原因,一下是我的代码:
`
<cn.iwgang.countdownview.CountdownView

        android:id="@+id/countdownViewStart"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:visibility="gone"

        app:isHideTimeBackground="false"

        app:isShowDay="true"

        app:isShowHour="true"

        app:isShowMinute="true"

        app:isShowSecond="true"

        app:suffix=":"

        app:suffixDay="天"

        app:suffixGravity="center"

        app:suffixLRMargin="1dp"

        app:suffixTextColor="@color/lightprice"

        app:timeBgColor="@color/lightprice"

        app:timeBgRadius="4dp"

        app:timeBgSize="8dp"

        app:timeTextColor="@color/white"

        app:timeTextSize="8sp" />

`

@xiaoduv587
Copy link

能否给出你实际想达到的效果,以前当前是什么效果

为此我还一步一步调小你的apk的倒计时,并对背景框和字体带下做记录,设置到我的程序里,就是不行,实在是不知道是哪里的原因,一下是我的代码:
`
<cn.iwgang.countdownview.CountdownView

        android:id="@+id/countdownViewStart"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:visibility="gone"

        app:isHideTimeBackground="false"

        app:isShowDay="true"

        app:isShowHour="true"

        app:isShowMinute="true"

        app:isShowSecond="true"

        app:suffix=":"

        app:suffixDay="天"

        app:suffixGravity="center"

        app:suffixLRMargin="1dp"

        app:suffixTextColor="@color/lightprice"

        app:timeBgColor="@color/lightprice"

        app:timeBgRadius="4dp"

        app:timeBgSize="8dp"

        app:timeTextColor="@color/white"

        app:timeTextSize="8sp" />

`

请问你解决了嘛,我也遇到了相同的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants