Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] user interface – Visual Studio 2017 vs Visual Studio 2019 difference with android app development

Posted on November 11, 2022 By

Solution 1 :

You can have a look at Xamarin.Android Layouts , there is a LinearLayout you can have a try . If you set android:orientation="vertical" and drag Button below TextView , then it will show as your wants .

The Xml code will look like follow :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns_android="http://schemas.android.com/apk/res/android"
    xmlns_app="http://schemas.android.com/apk/res-auto"
    xmlns_tools="http://schemas.android.com/tools"
    android_layout_width="match_parent"
    android_layout_height="match_parent"
    android_orientation="vertical">
    <TextView
        android_text="Text"
        android_layout_width="match_parent"
        android_layout_height="wrap_content"
        android_textAlignment="center"
        android_fontFamily="monospace"
        android_minWidth="25px"
        android_minHeight="25px"
        android_id="@+id/textView1" />
    <Button
        android_text="Button"
        android_layout_width="match_parent"
        android_layout_height="wrap_content"
        android_id="@+id/button1" />

</LinearLayout> 

The effect of user-interface :

enter image description here

Aout using the Xamarin.Android Designer , you can have a look at this doc .

Problem :

I am trying to make a simple android app by following this tutorial right here: https://youtu.be/5CgQUbnf1Qk

In this video, the guy just seems to drag a button onto his app, and doesnt need to do any realignment for it to be where he wants it to be. He is using VS 2017, and i am using VS 2019, now the problem is when i tried to follow his example, my button goes over the text bar, and i have not found a way to get the button to go under the text bar like in the video. Does anyone know how i can fix this, please? Thanks

Comments

Comment posted by Junior Jiang

Hi, welcome to SO ! You can show the code of

Comment posted by VenomSnake03

@JuniorJiang-MSFT Thanks for your answer, i will comment back later with the code, im focussing more on C# than xml for the moment, so i dont really know how all of that works yet. Is it correct that in VS 2019 you can not drag buttons freely anymore? If that is still an option, could you please tell me where i could find it? Thanks again and i will definitely respond back with the code.

READ  [FIXED] android - Flutter local notification with action buttons
Powered by Inline Related Posts

Comment posted by Junior Jiang

Hi , it depends on which layout used in xml . You can have a look at my shared answer .

Comment posted by using android Designer

You can refer

Comment posted by VenomSnake03

Thank you very much, this definitely solved my problem. Thanks for also including more educational material for me to learn from. This will definitely come in handy.

Comment posted by Junior Jiang

@VenomSnake03 Glad be helpful , remember to mark the answer when you have time .Then other people will know how to solve it 🙂

Android Tags:android, user-interface, visual-studio-2017-build-tools, visual-studio-2019, xamarin.android

Post navigation

Previous Post: [FIXED] java – How to solve debug issue
Next Post: [FIXED] android – How to solve setting up this payment problem – paypal

Related Posts

[FIXED] android – When to use JobIntentService vs WorkManager? Android
[FIXED] android – Text selection depending on the phone Android
[FIXED] android – Deeplink with specific language Android
[FIXED] Android WorkManager with coroutines context did not work in sync mode Android
[FIXED] landscape – React Native Video Android Orientation Android
[FIXED] android – I am not getting recyclerView in an activity without no Error Android

Archives

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

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What color are dead flea eggs?
  • What is Indiana vine?
  • What’s the downside of a Chromebook?
  • Is phosphide the same as phosphorus?
  • Why do you need an S bend?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme