• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Ranch Hand
Posts: 56
  • 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: 56
  • 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?
 
We're all out of roofs. But we still have tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic