Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Android studio, java - Triangular shapes dynamically changing size depending on resolution.

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I would like to ask for help regarding geometrical shapes using java on android studio.
You see, I am coding an app where I want to make a button having the shape of a triangle that would take on the whole screen.
I searched on the internet regarding shapes, but I am having concerns about the fact that not every smartphones uses the same screen sizes.
How could I make this shape to stay "true" to the size of the screen?
I am intending to divide the screen in three main buttons separated by a "V" which would create 3 triangular buttons.
Could anyone help me and guide me through this task?
Many thanks in advance!
 
Darius Boteand
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone!
I am sad to see that this task seems not to be solvable.
Does anyone have any kind of leads by any chance?
 
He's giving us the slip! Quick! Grab this tiny ad!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic