Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

xml-layout

Shape Drawable Size not working

April 21, 2023 by Tarik

For me, setting the gravity of the item to “center” solved the issue. For example: <item android:id=”@android:id/progress” android:gravity=”center”> <clip> <shape> <size android:height=”2dp”/> <solid android:color=”@color/my_color”/> </shape> </clip> </item>

Categories android Tags android, drawable, shapedrawable, xml-layout Leave a comment

Android: Creating a Circular TextView?

February 27, 2023 by Tarik

I was also looking for a solution to this problem and as easy and comfortable I found, was to convert the shape of a rectangular TextView to cirular. With this method will be perfect: Create a new XML file in the drawable folder called “circle.xml” (for example) and fill it with the following code: <shape … Read more

Categories java Tags android, java, textview, xml-layout Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa