如何在Firebase管理面板上解决此问题? [英] How to solve this issue on Firebase admin panel?

查看:82
本文介绍了如何在Firebase管理面板上解决此问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Firebase集成到Android项目中. 一切正常,但是当我访问Firebase Admin时,可以看到自定义的类成员是按字母顺序而不是按定义的顺序排序的.

I'm trying to integrate firebase on Android project. Everything works well, but I could see the customized class members was sorted in alphabetically rather than defined order when I visit Firebase Admin.

这是Android代码上的自定义类:

Here is customized class on Android code:

@IgnoreExtraProperties
public class trackingData 
{
    public String Time;

    public double S1 = 0.0;
    public double S2 = 0.0;
    public double S3 = 0.0;
    public double S4 = 0.0;

    public double copX;
    public double copY;
    public double copD;

    public double VelocityX;
    public double VelocityY;
    public double VelocityD;

    public int copScore;
    public int stabilityScore;

    public fbTrackingData() {
        Time = "20000";
        S1 = 2.35;
        S2 = 3.55;
        S3 = 0;
        S4 = 0;
        copX = 0;
        copY = 0;
        VelocityX = 10.3;
        VelocityY = 10.5;
        VelocityD = 20.3;
        copScore = 10;
        stabilityScore = 5;
    }
}

这是Firebase控制台上的屏幕截图.

And Here is screenshot on Firebase console.

我想按定义的顺序查看所有类成员,例如时间","S1","S2","S3","S4","CopX","CopY","CopD",... ,"copScore","stabilityScore".

I want to see all the class members as defined order like "Time", "S1", "S2", "S3", "S4", "CopX", "CopY", "CopD", ... , "copScore", "stabilityScore".

如何在Android或Firebase控制台上解决该问题?

How can I solve it on either of Android or Firebase console?

推荐答案

实际上,您并没有以您希望的方式订购Firebase管理面板,否则Firebase团队将其永久性地按字母顺序订购.

actully you don't order firebase admin panel in your desired way its permanently order in alphabtic by firebase team.

这篇关于如何在Firebase管理面板上解决此问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆