Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 58056 articles
Browse latest View live

Toasts.forms.plugin - How to hide the toast logo, app name and NOW

$
0
0

@AdemPed I'm using Toasts.Forms.Plugin 3.3.0, is there any property to hide the header section of the toast message i.e (Logo,App Name, NOW).


How to achieve app.current.mainpage= new navigationpage(new somepage) in prism

$
0
0

I have n number of page in my application after some functionality i have to make one page as main page (app.currrent.mainpage =new navigationpage(new somepage);). how to achieve this in prism.

Nuget Library : Plug.forms 7.0.0.336-Pre

I'm using prims. this problem is facing only in android device
I have tried below in my code :
1. await _navigationService.NavigateAsync("myapp:///NavigationPage/MainPage") - Relaunching the application.
2. await _navigationService.NavigateAsync("Main/Navigation"); - Navigating back to old page that is on the stack.

Let me know am I missing something.

Xamarin forms application with themes and images for android

$
0
0

@PierceBoggan I have seen you material in xamarin blog.

I have developed the Xamarin forms application using themes. All the things works fine, except the images for android.
I am using the embedded image in PCL, stored in the folder (theme1, theme2, etc ) to load the screens.
For eg: I have stored the logo image like logo.png, logo@2x.png, logo@3x.png. this work fine for iOS. When I see in android, image not proper.

My question, how to store image for xxhdpi, xhdpi, hdpi, etc. in PCL project.

Any suggestion?

Using Google Calendar Data for Xamarin.Forms Application

$
0
0

Hello Community!

At the moment I'm trying to retrieve data from Google Calendar and use it for a Xamarin.Forms application. Google provides examples for several development environments. There is even an example for the .NET environment. But unfortunately it can not be adapted for the Xamarin environment as the Google.Apis.Calendar.v3 Plugin seems not to work on my cross-platform application (the plugin requires .NETPortable,Version=v4.5,Profile=Profile111).

So I have to find another way. Maybe it's possible to get the calendar data using the System.Net.Http library, but I could not find any information on this. Can you give me a hint? Or is there another way you would suggest?

The final application does not need to provide the possibility to change the calendar data; it should simply show the calendar events in a customized fashion.

Progress bar with rounded edge

$
0
0

How to create progress bar with rounded edge in xamarin form PCL application.

how to stop page refreshing

$
0
0

Hi, though back button i am coming to my home page but after some second my page is refreshing and again going to the Last page.

please someone help me to stop that loading privies page data.

issue with InitializeComponent

$
0
0

When i installed a plugin(Plugin.Badge) i have many problems. Then i donwloaded the specific version in the TFS. When i downloaded this version, i'm not getting to compile my project. The error is?

InitializeComponent doesn't exist in the current context

I have no reference in conflict. No one.

What am i doing wrong? How can i solve this?

OnResume for ContentPage

$
0
0

Hi,
I close a ContentPage with Navigation.PopAsync() and want to recognize on the resulting ContentPage that its on the top now. I am looking for something like "OnResume". Is it possible?

Thanks


Why i cant find prism template pack for Vs2015.

$
0
0

I'm not able to get Prism Template Pack in extension and updates when searched online. I'm getting all other prism templates like Prism Extensibility Pack. But I'm not able to find prism template pack in searched list. Please help me.

Custom entry control expanding off screen on iOS

$
0
0

Hello,

We have a custom entry in our app for filling in a username and a password, centered on the screen using a grid. This has worked out so far but today we received a remark that on the iPhone 5S the entry expands to the right, out of the screen. When you type in the entry i noticed that the text stops where it needs to, but for some reason the line keeps going, see attached pictures.

So i'm a bit confused how the input part of the entry detects the border of the column, but the blue line doesn't.

Here is my XAML:

    <StackLayout VerticalOptions="Fill" HorizontalOptions="Fill">
          <Grid HorizontalOptions="Fill">
            <Grid.RowDefinitions>
              <RowDefinition Height="61" />
              <RowDefinition Height="42" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="25"></ColumnDefinition>
              <ColumnDefinition Width="*"></ColumnDefinition>
              <ColumnDefinition Width="25"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <controls:TextFocusedEntry  Grid.Row="0" Grid.Column="1"   VerticalOptions="Fill"  HorizontalOptions="FillAndExpand"  x:Name="UsernameEntry" Margin="0,10" Placeholder="{extensions:Translate Username}" Text="{Binding UserName}" Style="{DynamicResource LoginEntryStyle}"/>
            <controls:TextFocusedEntry Grid.Row="1"  Grid.Column="1"  VerticalOptions="Fill" HorizontalOptions="FillAndExpand"  x:Name="PasswordEntry" IsPassword="true" Placeholder="{extensions:Translate Password}" Text="{Binding UserPassword}"  Style="{DynamicResource LoginEntryStyle}"/>
          </Grid>
        </StackLayout>

The custom entry itself does nothing special apart from giving the entry a blue BorderColor.

Thanks in advance.

ToolBar Icon image size for Android and iOS devices

$
0
0

Hi Xamarin teams,

Could you please suggest me a solution for ToolBar Icon image size for devices (Android and iOS). I have worried about the different size of ToolBar icon Image in different device. I also attached a screenshot of iPhone 4s ToolBar with this discussion.

App Crashes On Startup when downloaded from TestFlight

$
0
0

Hello,

I have seen many other posts about this issue. I have tried all of the solutions I believe that I have seen in other posts. I am running Xamarin.Forms 2.3.4.270 and am using HockeyApp 5.1.1 for crash reporting. I am not getting any crash reports sent to HockeyApp and I am not getting device logs when I hook up the device to Xcode. But the application launches just fine when I'm in debug mode and deploy it to a device or simulator. If anyone has some suggestions I would greatly appreciate it. I can list my 3rd party NuGet packages too if that helps.

Thanks

Help Me Decide Which Backend and Database to Use?

$
0
0

I've have some app development experience, but am new to Xamarin and to adding server-side components. I would like to create a simple app for users to track some data. The data would be hierarchical (multiple levels of categorization) and consist of titles (strings) and stats (numbers).

Requirements:

  • Use Xamarin.Forms (PCL)
  • Support offline sync
  • User authentication
  • Eventually, I'd like to create a web front-end, too.

Database?
Initially, I wanted to use Cosmos DB, since I'm already familiar with SQL and would like to learn NoSQL patterns. However, it looks like official libraries do not support offline sync out of the box, so now I'm leaning toward the SQLite implementation in the MobileServices library. What do you think? Cosmos or SQLite?

Backend?
Azure Mobile Apps seems like a natural choice, but how would I extend this to support a website in the future? I'm not really sure how to split "website" versus "API" in my project structure. Should I have one general ASP.NET project that serves the website and the API? Should I have separate projects?

(Bonus)
What do you think of Prism? I want to make sure I am following maintainable and testable patterns. Would this help or just complicate things at this stage?

Section Indexing bubble text problem on Android

$
0
0

Hi.
I set IsFastScrollEnabled to True for Android in my project and I set GroupShortNameBinding to Key.

public class Grouping<K, T> : ObservableCollection<Definition>
{
    public K Key { get; private set; }

    public Grouping(K key, IEnumerable<Definition> items)
    {
        Key = key;
        foreach (var item in items)
        {
            Items.Add(item);
        }
    }
}

Just like in Enhancing Xamarin.Forms ListView with Grouping Headers by James Montemagno
montemagno.com/enhancing-xamarin-forms-listview-with-grouping/

Now, on android it looks like this:
us.v-cdn.net/5019960/uploads/editor/s4/67g2dnjvbqyt.png
us.v-cdn.net/5019960/uploads/editor/3p/vppt9glq17g7.png
us.v-cdn.net/5019960/uploads/editor/iy/u14ez6gjfjrt.png
us.v-cdn.net/5019960/uploads/editor/qo/mscnp6sylvtn.png

As you can see, bubble text does not correspond to current view, it's shifted by 1 for A, 2 for B, 3 for C etc.
Further you go, the worse it is:

us.v-cdn.net/5019960/uploads/editor/ng/d0s5aq5ws4by.png

Any ideas why this happens? Maybe the headers are the cause?
Again there is 1 header total above A group {A}, 2 headers total above B group {A, B} etc.
Setting header ViewCell height to 0 doesn't change anything.

Any help greatly appreciated :smile:

Framework for migration local sqlite-net-pcl db?

$
0
0

Hello everybody!
Maybe someone knows framework for migration db, which work with sqlite-net-pcl in xamarin.forms?
I don't want to use EntityFramework, because it slow.


Access to the path 'Xamarin.Android.Support.Tasks.VectorDrawable.dll' is denied xamarin forms.

$
0
0

Severity Code Description Project File Line Suppression State
Error Access to the path 'Xamarin.Android.Support.Tasks.VectorDrawable.dll' is denied.

this error found when i update android package.

Section Indexing shifted bubble text problem

$
0
0

Hi.
I set IsFastScrollEnabled to True for Android in my project and I set GroupShortNameBinding to Key.

public class Grouping<K, T> : ObservableCollection<Definition>
{
    public K Key { get; private set; }

    public Grouping(K key, IEnumerable<Definition> items)
    {
        Key = key;
        foreach (var item in items)
        {
            Items.Add(item);
        }
    }
}

(Just like in "Enhancing Xamarin.Forms ListView with Grouping Headers" by James Montemagno)
montemagno.com/enhancing-xamarin-forms-listview-with-grouping/

Now, on android it looks like this:
us.v-cdn.net/5019960/uploads/editor/s4/67g2dnjvbqyt.png
us.v-cdn.net/5019960/uploads/editor/3p/vppt9glq17g7.png
us.v-cdn.net/5019960/uploads/editor/iy/u14ez6gjfjrt.png
us.v-cdn.net/5019960/uploads/editor/qo/mscnp6sylvtn.png

As you can see, bubble text does not correspond to current view, it's shifted by 1 for A, 2 for B, 3 for C etc.
Further you go, the worse it is:
us.v-cdn.net/5019960/uploads/editor/ng/d0s5aq5ws4by.png

Any ideas why this happens? Maybe the headers are the cause?
Again there is 1 header total above A group {A}, 2 headers total above B group {A, B} etc.
Setting header ViewCell height to 0 doesn't change anything.

Any help greatly appreciated :smile:

Why net standard2.0 doesnt support old uwp versions?

Weird issue with custom Entry on some Devices (Android)

$
0
0

Hi people

I'm having a weird issue regarding a custom Entry which accepts a numeric value with decimals (a Price), it is called "DecimalEntry" and it inherits a BindableEntry of type decimal? ... Well that is not the problem

It works OK in iOS and in the majority of Android devices, but in one device (running Android 7.0) it is not showing the desired Numeric keyboard, also, when this Entry takes focus and you type on the Keyboard, the input appears on ANOTHER entry, not in the "Price" one, very weird.

If i deploy the app Ad hoc in this device, it works fine, but the app is now published in the Google Play Store and when this device installs it, it wont work as expected.

What can be the issue?

ServicePlan in Azure - Really needful ?

$
0
0

Hello, Xamarin Community !

I created mobile app in Azure and I have App Service plan and it is called "ServicePlan" + some digits and chars. Do I really need it ? Because I saw some tutorials and they did not have this feature.

Thanks for your answers !!!

Viewing all 58056 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>