B4X FEED CustomListView - Textsize and xui.CreateDefaultBoldFont

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: CustomListView - Textsize and xui.CreateDefaultBoldFont است. این موضوع تا کنون 47 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع CustomListView - Textsize and xui.CreateDefaultBoldFont
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
47
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,517
4,383
Hello everybody!

I'd like to manage the text in the clv panel.

No problem to change the Textcolor.
B4X:

clv1.GetPanel(0).GetView(0).TextColor = xui.Color_Red

2 problems:

Problem no. 1
I cannot manage Textsize and xui.CreateDefaultBoldFont.

This code doesn't work:
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
This is quite strange just because Textcolor does it...

The only solution seems
B4X:

clv1.GetPanel(0).GetView(0).As(Node).Style = ""
. With this command Textsize and xui.CreateDefaultBoldFont works.

Problem no. 2
If the only solution is the above, how I can reset the height of the single row to fit automatically with the text lenght?

In particular, sometimes when normal text will set bold may happens that a new line is needed.

How to solve it?

Thank you!

 

عقب
بالا