English 中文(简体)
我和roid的pin子为什么看着可怕吗?
原标题:Why do my android spinners look horrible?

我正在使用缺省主题(dark)和2.2级/第8级目标。 当我给我的布局增添一个基本支柱时,他们看着可怕的。 案文难以读(gray-on-gray)和arrow看:

“My

如果我使用这个轻主题的话,他们会看重。 如果我看一看APICA的样本,他们的先辈们就会在 default黑暗的主题中看到罚款:

Normal Spinners

Why are all my spinners ugly and unreadable? What am I doing wrong?

最简单的法典将显示这种方式:

  final Spinner mySpinner = (Spinner) findViewById(R.id.mySpinner);
  List<String> list = new ArrayList<String>();
  list.add("foo");
  list.add("bar");
  mySpinner.setAdapter(new ArrayAdapter<String>(MyActivity.this, R.layout.list_item, list));

排外:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <Spinner
        android:id="@+id/mySpinner"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"></Spinner>
</LinearLayout> 
最佳回答

我将安排缝.,以包 wrap——不配对。 我看不出与制定适应者等其他一些选择相关的任何法典,因此我猜测有些法典缺失。 我不禁要问,pin子是否残疾,为什么会照此。

你们的背景是控制。 改变你线索的背景颜色,看看看它是否穿过。

问题回答
mySpinner.setAdapter(new ArrayAdapter<String>(
        MyActivity.this,
        android.R.layout.simple_spinner_item, list));

你们需要把pin子的哥伦特写成0xFF000英寸铁的黑色。

阁下可以延长ArrayAdapter的班级,以便获得0xFF000 文本Color属地位的观察。

我面临一个类似的问题,并认识到错误是在创建适应者时选定的“内容”。 我使用了“植被图”,这造成了灰尘。 一经修改后,这个问题就被固定下来。 由于Nz_karl指出了这一点。





相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签