Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] c# – How can I “zoom in” my asp.net webpage on android?

Posted on November 14, 2022

Solution 1 :

<meta name="viewport" content="width=device-width, initial-scale=1">

Add the above code in the <head> tag.

I copied this code from GitHub website

Why does it work?

Most mobile screens have around full HD resolution.
This is the same as that of most computer monitors and laptop screens.

16px as the default font size of a paragraph. On a mobile screen, it will be too small.

Therefore, mobile browsers convert the rendered screen size.
For example, iPhone X converts screen size to 375px by 812px while the actual resolution is 1125×2436 pixels.

width=device-width sets the width of the HTML to the width offered by the browser (375px for iPhone X).

Generally, you will give the scaling factor as 1.
You can put the scaling factor yourself by giving initial-scale=0.8 and see if you like.

Problem :

I’ve been developing an application for mobile hand scanning devices using asp.net and C#. Up until last week this application has been on windows CE. Now the platform has been switched to Android. I’m having issues with the application looking very “zoomed out”(see picture). What could be causing this? I believe my CSS is correct, but I’m also not too familiar with how it behaves on an android platform.

Zoomed Out

I figure I’m doing something wrong with the CSS so I’m posting my CSS below as well.

@media only screen and (max-width : 320px) {

.contentDiv {
    height:100%;
    width:100%;
}

}

The page structure utilizes a site master file where the menu buttons are placed. I’m very new to developing on the android platform and I could really use some insight or help.

READ  [ANSWERED] android - Activity is crashing whenever launched due to incorrect variable type declaration
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress