About 5,760,000 results
Open links in new tab
  1. Android draw a Horizontal line between views - Stack Overflow

    My Requirement is to draw a Horizontal line between TextView and ListView. Could anyone help? You can add line to background of existing view's and not add extra one. Or you can put all …

  2. How to draw Horizontal and Vertical lines in an Android

    Feb 18, 2021 · This article demonstrates how to draw a horizontal and a vertical line in an Android app. Although we have countless XML tags to meet almost all of our needs, unfortunately, we …

  3. How to Draw a Separator Line in Android Layout - Repeato

    May 22, 2024 · Adding a separator line in Android layouts can significantly improve the visual organization of your app’s user interface. This guide will walk you through several methods to …

  4. Styles and themes | Views | Android Developers

    May 12, 2025 · Create and apply a style. To create a new style, open your project's res/values/styles.xml file. For each style you want to create, follow these steps: Add a <style> …

  5. Working with Lines and Paths — Custom Views on Android — …

    Feb 7, 2022 · We start by creating the LinesView class by extending the View class, passing in the necessary initialisation parameters and using the @JvmOverloads annotation to provide …

  6. How to draw a line in android - Stack Overflow

    Sep 1, 2010 · Drawing a Line with View. If you only need a straight horizontal or vertical line, then the easiest way may be to just use a View in your xml layout file. You would do something like …

  7. Set Style Attributes Programmatically in Android View

    May 9, 2023 · Learn how to set style attributes programmatically in a view on Android for better UI customization and design.

  8. How to Draw a Line in Android with Kotlin? - GeeksforGeeks

    Feb 14, 2022 · In this article, we will show you how you could draw lines using canvas, store them on Bitmap and display it in an ImageView in Android. Follow the below steps once the IDE is …

  9. Android: set view style programmatically - Stack Overflow

    May 28, 2017 · How to set style attribute programmatically? Technically you can apply styles programmatically, with custom views anyway: public MyRelativeLayout(Context context) { …

  10. Style resource | App architecture | Android Developers

    Feb 10, 2025 · A style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or to an entire Activity or application (from within the …

Refresh