我正在使用Jake的ViewPageIndicator,并希望像滑动图库一样显示图像.我可以开始的任何推荐链接.我已经实现了基本的viewpager,现在想要实现图像视图,如下所示

是否可以使用ViewPageIndicator实现?
我试图将ListView textColor设置为黑色,因为我使用的是白色背景.
这是我的MailActivity
public class MailActivity extends ListActivity {
String[] listItems = { "Compose", "Inbox", "Drafts", "Sent" };
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mails);
setListAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_1, listItems));
}
}
Run Code Online (Sandbox Code Playgroud)
和我的XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF">
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@android:id/empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Empty set"
android:textColor="#000000" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我将背景设为白色,但不确定将前景设置为黑色.我试过xml,看起来没有帮助.
我正在尝试创建列表活动项目布局,如下所示
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:contentDescription="ss"
android:id="@+id/place_category_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="15dp"
android:paddingTop="10dp" android:src="@drawable/marker"/>
<TextView
android:id="@+id/place_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="320" />
<TextView
android:id="@+id/place_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/place_category_icon"
android:text="Place Name"
android:textColor="#FFFF00"
android:textSize="14sp"
android:textStyle="bold" />
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
我希望布局显示如下.

我想将它对齐居中水平

我想了解有没有办法在Android手机2.2及以上版本上记录来电和外拨电话?
客户希望记录他们对客户进行的代理的调用,以便以后可以用它来填写一些材料.而不是让客户端在通话时等待他们想要稍后再做.
这是可能的,我需要使用哪些API?
我在Action Bar中使用了SearchView.我想在搜索视图上使用自动完成功能来从数据库中获取结果.
这可能吗?或者我是否需要使用自定义文本框然后添加自动完成功能?
我正在尝试使用Toast内部OnCLickListener.我的代码触发以下错误:
The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (new View.OnClickListener(){}, String, int)
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
Button register = (Button) findViewById(R.id.register);
register.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
EditText name = (EditText)findViewById(R.id.name);
String Lname = name.getText().toString();
Toast.makeText(this, Lname, Toast.LENGTH_SHORT).show();
}
});
Run Code Online (Sandbox Code Playgroud) 我正在寻找一个颜色选择器框架,可以选择返回颜色HEX.
我已经看过这个想知道是否有其他我可以使用的库.
当我尝试在我的Android应用程序中实现Facebook Connect时,出现以下错误.
11-02 16:41:31.660:D/Facebook-authorize(13194):登录失败:invalid_key:Android密钥不匹配.您的密钥"8Ioc4p/jMXoU9Lezug4nzmZfFUg"与应用程序设置中指定的允许密钥不匹配.在http://www.facebook.com/developers上查看您的应用程序设置
我重置Facebook应用程序中的密钥仍然显示相同的错误.我该如何解决?