Textview customization in Sketchware

The properties of textview in Sketchware app can be modified in order to create desirable text output. Here is a description of the properties which can be modified.

  • ID: This is name of the textview, and can be modified for ease of identification if we have many textviews.
  • layout_width/layout height: They determine the width and height of the textview widget and can be set to match parent (where they occupy the space available), wrap content (where they change size to accommodate the contents), or to custom dp.
  • padding: Determines the size of the area around  the contents inside the border of textview.
  • margin: Determines the size of the white space outside the border.
  • gravity: Determines the orientation of texts inside Textview widget.
  • layout_gravity: Determines the orientation of textview widget inside the container layout widget.
  • weight: Weight is set to 0 by default. It can be increased to push other widgets to border and occupy remaining height.
  • text: Here the text to be displayed in Textview can be written.
  • text_size: Determines the size of the text.
  • text_style: Display bold/italic/normal text.
  • text_color: Changes color of text.
  • single_line: This doesn't allow Textview widget to occupy more than one line to incorporate all it's contents.
  • lines: Determines the number of lines in which text is to be displayed.
  • background_resource: This allows an image to be set as background of textview.
  • background_color: Changes background color of textview widget.
  • rotate: It sets rotation of textview widget between 0 - 360 degrees.
  • alpha: It's value is set as 1 by default and it can be reduced to change the opacity of the texts.

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Backup kaha save hota he mobile me agar dusre mobile me lena ho to project??

    ReplyDelete
    Replies
    1. Backup is stored at //sdcard/.sketchware/data/601 or 602 folder.
      Also you can export source code to your mobile and then send it.
      You can also send APK file to your mobile.

      Delete
  4. ok thanks or exit botton kese bana sakte he jese exit kare to application bandh ho jaye

    ReplyDelete
  5. or muje ek problem ye aa rahi he agar me jese ke
    youtube.com
    gmail.com
    facebook.com
    etc
    ki link banayi he wo direct mobile ke default browser me open hoti he to vahi apps ke browser me open karna ho to ...
    web views se kiya no niche open hoti che

    par muje agar click karu to dusre page open hoke aa jaya or back karke phir se link open karu to fir se dusra link open ho par usme page jayada creat na karna pade bas 2 page 1 page me link ka sortcut rakhu or dusre page me link open ho

    ReplyDelete
    Replies
    1. This may help you:
      http://sketchwarehelper.blogspot.in/2017/06/easiest-way-to-create-app-for-your.html?m=1

      Delete
  6. what is the max limit of lines in text view?

    ReplyDelete
  7. How can one check or count no. of times a word has appeared or highlight the same like Search feature in MS Word etc. in Textview paragraphs.

    ReplyDelete
    Replies
    1. We can use spannable to highlight a particular text in Textview, but it cannot be done without code Injection.
      To count a particular word we can use repeat and if else controls and substring operator.

      Delete
    2. This video shows how to count a particular text in a paragraph.
      https://youtu.be/q-KhQnW-xrc

      Delete
  8. Can I use underlined textview in a app??

    ReplyDelete
  9. Can I use underlined textview in a app??

    ReplyDelete
    Replies
    1. Yes. To underline a text, create a new String variable udl.

      In onCreate event,
      Set udl to
      <u>The text to be underlined....</u>

      Next line, use add source directly block and put following code:
      textview1.setText(Html.fromHtml(udl));

      Delete
  10. Replies
    1. Download fonts, and then use this method: https://youtu.be/Hy0rZ4LGlM8

      Delete
  11. What is the reason for this message that appears when I want to save the app



    Error in /storage/emulated/0/.sketchware/mysc/634/app/src/main/com/my/
    Newprojet29/MainActivity. Java (line 83)
    Int = text.indexOf(_charSeq, x);

    The method indexOf(int, int) in the tybe String is not applicable for the argument (CharSequence, int)
    -----------
    1 problem (1 error)

    ReplyDelete
  12. Please kishor explain to you that video message

    ReplyDelete
  13. How can i make a specific word as bold in a paragraph on single textview

    ReplyDelete
  14. Hello, dears! This is an issue I was looking for!
    Could you explain this more detailed please? I am a 'starter' in programming and I am going to create a Dictionary App with a text for meaning of the word in a way similar to ABBY Lingvo (text attributes: bold, italic, even different text color). Is it possible to do this in Sketchware? If so, could you please help me to see how to do so?

    Thank you in advance! (bow)

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete


  16. jimyJanuary 16, 2019 at 9:04 PM

    Hello, dears! I was looking for the way to change attributes of some words in whole text that appears in TextView.

    I have read the replay of "sanjeev" and I liked it!
    But could someone explain this more detailed please? I am a 'starter' in programming and I am going to create a Dictionary App with a text for meaning of the word in a way similar to ABBY Lingvo (text attributes: bold, italic, even different colors). Is it possible to do this in Sketchware? If so, could you please help me to see how to do so?

    Thank you!

    ReplyDelete

Post a Comment

Popular posts from this blog

A Flash Light App in Sketchware

Create Music Player app in Sketchware

Simple car racing android game in Sketchware

In Sketchware: How to create a calculator for any simple formula?

Firebase auth in Sketchware for Login Activity