标签: indicator

选项卡指示器在滑动时不移动,但在选择时移动

我有一个包含 3 个选项卡的主要活动,当我滑动选项卡式指示器时,它不会移动,但布局会在选择选项卡时发生变化,指示器会移动并且布局也会发生变化。

android indicator

3
推荐指数
1
解决办法
1465
查看次数

如何在表格视图编辑时设置附件类型?

我正在使用UITableView属性来编辑它.theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES;

它工作正常,行被选中,我进入下一个控制器,但我需要在行中显示accessoryType.我正在使用下面的线,但即使它不起作用.是否有任何财产或任何遗失的东西显示印度人.

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

我使用下面的代码表格视图.

theTableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStyleGrouped]; 
theTableView.editing = YES;
theTableView.allowsSelectionDuringEditing = YES;
theTableView.delegate = self;
theTableView.dataSource = self;
theTableView.scrollEnabled=YES;
theTableView.separatorColor = [UIColor lightGrayColor];
theTableView.autoresizingMask=YES;
theTableView.allowsSelection=YES;
theTableView.sectionHeaderHeight=5;
theTableView.sectionFooterHeight=5;

[myView addSubview:theTableView];
Run Code Online (Sandbox Code Playgroud)

请帮我.

谢谢你,Madan Mohan

objective-c indicator uitableview

2
推荐指数
1
解决办法
1887
查看次数

如何创建音乐进度指示器/控件,如iPod应用程序?

我正在写一个iPod应用程序替代品,在我的"正在播放"视图中,我希望有一个进度指示器,如iPod应用程序,显示当前位置,并允许用户拖动以更改播放位置.

我怎么做?

我使用UISlider和UIProgressView吗?

progress indicator uiprogressview uislider

2
推荐指数
1
解决办法
1371
查看次数

C编程位表示

例如,我有3个计数器(我基本上想要表示为真值(counter> 0 true;否则为false).这导致我的真值的2 ^ 3 = 8个排列如下所示:

000 001 010 011 100 101 110 111

然后每个排列映射到一个状态.如何将这些计数器转换为位级别的二进制表示,然后如何在开关结构中使用二进制表示来映射到状态?(例如,001映射到"包含x",010映射到"包含y",011将映射到"包含x和y".这些都可以移植到其他操作系统吗?

c binary permutation bit indicator

2
推荐指数
1
解决办法
401
查看次数

Android:视图寻呼机中的标签页指示器

我正在制作一个应用程序,我必须实现"清除标签".我已阅读此内容但未找到任何相关内容.我也试过了ViewPagerIndicator.

下面给出了我的代码片段:

public class ViewPagerIndicatorActivity extends FragmentActivity {
PagerAdapter mPagerAdapter;
ViewPager  mViewPager;
ViewPagerIndicator mIndicator;
static ArrayList<String> readableDateFormat;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    // Create our custom adapter to supply pages to the viewpager.
    mPagerAdapter = new PagerAdapter(getSupportFragmentManager());
    mViewPager = (ViewPager)findViewById(R.id.pager);
    mViewPager.setAdapter(mPagerAdapter);

    // Start at a custom position
    mViewPager.setCurrentItem(3);

    // Find the indicator from the layout
    mIndicator = (ViewPagerIndicator)findViewById(R.id.indicator);

    // Set the indicator as the pageChangeListener
    mViewPager.setOnPageChangeListener(mIndicator);

    // Initialize the indicator. We need some …
Run Code Online (Sandbox Code Playgroud)

android tabpage indicator android-viewpager

2
推荐指数
1
解决办法
2万
查看次数

无法隐藏 QComboBox 的选择指示器

程序员

当我设置属于QComboBox(每个 QSS)的列表视图的背景颜色时,这个 QComboBox 将不再使用内置的光学外观。Instaed 我还必须为每个 QSS 样式表指定所有光学设置:

QComboBox QListView {
    background-color:white;
    border:1px solid black;
}
Run Code Online (Sandbox Code Playgroud)

显示可选项的列表视图现在在左侧显示一个复选框。为那些在上次使用时选择的项目选中此框。

如何隐藏带有复选框的列,以便它们不可见并且不会占用屏幕上的任何空间?

提前致谢...

checkbox stylesheet indicator qcombobox qtstylesheets

2
推荐指数
1
解决办法
2744
查看次数

创建指标变量矩阵

我想创建一个指标变量矩阵。我最初的想法是使用 model.matrix,这里也建议使用:Automatically expand an R factor into a collection of 1/0 indicator variables for each factor level

但是,如果一个因子只有一个级别,则 model.matrix 似乎不起作用。

这是一个示例数据集,其中包含三个级别的因子“区域”:

dat = read.table(text = "
    reg1    reg2    reg3   
      1       0       0
      1       0       0
      1       0       0
      1       0       0
      1       0       0
      1       0       0
      0       1       0
      0       1       0
      0       1       0
      0       0       1
      0       0       1
      0       0       1
      0       0       1
", sep = "", header = TRUE)

# model.matrix works if …
Run Code Online (Sandbox Code Playgroud)

r matrix indicator model.matrix

2
推荐指数
1
解决办法
4170
查看次数

如何在Xamarin.Droid中更改选项卡式页面指示器的颜色?

我正在使用Xamarin.Forms和一个可移植类库构建一个应用程序.我有一个标签页.我想更改选项卡式页面指示器的颜色.更改布局的其余部分是我已经管理的,我唯一需要的是更改浅蓝色选项卡页面指示器,如下所示:
在此输入图像描述

我找不到任何可以在Xamarin.Droid中工作的东西.这是创建带有内容的选项卡式页面的代码:

class TabbedPageTry : TabbedPage
{
    public TabbedPageTry()
    { 
        Title = "TabbedPage";

        var myPages = new CategoryDAO().GetCategories();
        foreach (var item in myPages)
        {
            Children.Add(new TabPage(item.CategoryID) { BindingContext = item });
        }
    }

    public class TabPage : ContentPage
    {
        public TabPage(int categoryID)
        {
            Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);

            var listView = new ListView
            {

                SeparatorColor = Color.FromHex("#101010"),
                ItemsSource = new CourseDAO().GetCourses(),
                IsPullToRefreshEnabled = false,
                BackgroundColor = Color.White,
            };

            this.SetBinding(Page.TitleProperty, "Name");
            Content = listView;
        } …
Run Code Online (Sandbox Code Playgroud)

c# indicator xamarin.android xamarin tabbedpage

2
推荐指数
1
解决办法
7691
查看次数

如何使用 Python pandas 构建阿隆指标

我正在尝试使用 pandas 在 python 中制作阿隆指示器。然而我得到了错误的价值观...任何人都可以帮助指出我错在哪里...

import pandas as pd
import Bitmex_OHLC
import numpy as np
import importlib

def aroon():
    importlib.reload(Bitmex_OHLC)
    df_aroon = Bitmex_OHLC.OHLC()
    df_aroon['14L_min'] = df_aroon['low'].rolling(window=14,min_periods=0).min()
    df_aroon['14H_max'] = df_aroon['high'].rolling(window=14,min_periods = 0).max()
    df_aroon['ind'] = range(0,len(df_aroon))
    # recent_high = df_aroon.iloc[-1]["25d High"]
    df_aroon['high_ind'] = df_aroon['ind'].where(df_aroon["14H_max"]==df_aroon['high']).fillna(method = 'ffill')
    df_aroon['low_ind'] = df_aroon['ind'].where(df_aroon["14L_min"] == df_aroon['low']).fillna(method = 'ffill')
    df_aroon['since_high'] = df_aroon['ind']-df_aroon['high_ind']
    df_aroon['since_low'] = df_aroon['ind'] - df_aroon['low_ind']
    df_aroon['up'] = (((14 - df_aroon['since_high'])/14) *100)
    df_aroon['down'] = (((14 - df_aroon['since_low']) / 14) * 100)
    return (df_aroon)

print(aroon().tail())
Run Code Online (Sandbox Code Playgroud)

(down) 列的值应始终为正,并且 (since_low) …

python finance indicator quantitative-finance pandas

1
推荐指数
1
解决办法
4264
查看次数

superTrend的Java实现

我已经通过这个公式实现了超级:

BASIC UPPERBAND  =  (HIGH + LOW) / 2 + Multiplier * ATR
BASIC LOWERBAND =  (HIGH + LOW) / 2 - Multiplier * ATR

FINAL UPPERBAND = IF( (Current BASICUPPERBAND  < Previous FINAL UPPERBAND) and (Previous Close > Previous FINAL UPPERBAND)) THEN (Current BASIC UPPERBAND) ELSE Previous FINALUPPERBAND)

FINAL LOWERBAND = IF( (Current BASIC LOWERBAND  > Previous FINAL LOWERBAND) and (Previous Close < Previous FINAL LOWERBAND)) THEN (Current BASIC LOWERBAND) ELSE Previous FINAL LOWERBAND)

SUPERTREND = IF(Current Close <= …
Run Code Online (Sandbox Code Playgroud)

java formula indicator

1
推荐指数
1
解决办法
1421
查看次数