我正在尝试创建一个ExpandableListView.群组的初始视图显示正常.但是,当我单击列表项时,我的箭头不会更改.见下图.
如何更改箭头的方向?
我有布局XML:
<ExpandableListView
android:id="@+id/expandable_list"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:divider="@null"
android:background="#ffffff"
android:groupIndicator="@drawable/settings_selector"
android:transcriptMode="alwaysScroll" />
Run Code Online (Sandbox Code Playgroud)
settings_selector.xml:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/arrow_down"
android:state_empty="true"/>
<item
android:drawable="@drawable/arrow_right"
android:state_expanded="true"/>
</selector>
</animation-list>
Run Code Online (Sandbox Code Playgroud) 找不到活动来处理Intent错误?它将如何解决.
Preference customPref = (Preference) findPreference("DataEntryScreen");
customPref
.setOnPreferenceClickListener(new OnPreferenceClickListener() {
public boolean onPreferenceClick(Preference preference) {
Intent i = new Intent("com.scytec.datamobile.vd.gui.android.AppPreferenceActivity");
startActivity(i);
return true;
}
});
Run Code Online (Sandbox Code Playgroud) android preferences android-intent onitemclicklistener android-activity
我偶尔会OutOfMemoryError: (Heap Size=49187KB, Allocated=41957KB)在我的一个应用程序中获得一个.我该怎么做才能诊断出来?
01-09 10:32:02.079: E/dalvikvm(8077): Out of memory: Heap Size=49187KB, Allocated=41957KB, Limit=49152KB
01-09 10:32:02.079: E/dalvikvm(8077): Extra info: Footprint=48611KB, Allowed Footprint=49187KB, Trimmed=7852KB
01-09 10:32:02.079: D/skia(8077): --- decoder->decode returned false
01-09 10:32:02.079: D/AndroidRuntime(8077): Shutting down VM
01-09 10:32:02.079: W/dalvikvm(8077): threadid=1: thread exiting with uncaught exception (group=0x40a97228)
01-09 10:32:02.079: E/AndroidRuntime(8077): FATAL EXCEPTION: main
01-09 10:32:02.079: E/AndroidRuntime(8077): java.lang.OutOfMemoryError: (Heap Size=49187KB, Allocated=41957KB)
01-09 10:32:02.079: E/AndroidRuntime(8077): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
01-09 10:32:02.079: E/AndroidRuntime(8077): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:486)
01-09 10:32:02.079: E/AndroidRuntime(8077): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
01-09 10:32:02.079: E/AndroidRuntime(8077): …Run Code Online (Sandbox Code Playgroud) 一般来说,一切都在Google Chrome上运行.单击新选项卡按钮时,将生成一个新选项卡.同样,我想在Android浏览器中添加一个新标签.怎么做 - 有没有人有任何想法?
首先,它可以在Android?
如果可能的话,怎么做?

当我单击+按钮时,应生成一个新选项卡.这该怎么做?
我正在维基百科 - 文章搜索尝试维基百科API沙箱和geting网址,如http://en.wikipedia.org/wiki/Special:ApiSandbox.使用这个geting url解析url获取数据显示在我的webview中但数据不能正确显示在我的webview中.
我想在我的webview中显示json数据.所有webview数据都没有在我的webview中修复,有时我的数据显示在屏幕外,那时我的webview滚动到水平.
编辑:删除我的webview中的水平滚动,屏幕外的数据.
编辑:这是我的屏幕截图; 我希望我的webview数据显示如下

但我的数据只显示如何在不更改HTML数据的情况下解决此问题,因为我的html数据是动态的.
任何人都有任何图书馆维基百科搜索文章给我一些想法.

ANOTHER QUESTION:如何删除特定的<div>,<table>,Data在我的动态HTML数据,以及如何得到specific word in webview点击(如列表视图点击).给我任何维基百科图书馆,这对我来说非常有用.
有人可以就如何做到这一点给出一些提示/建议.
当我使用Android的虚线其做工精细的小屏幕,但在三星S3设备和更高版本无法正常工作.
截图
和

绘制/ dashline.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line" >
<stroke
android:dashWidth="20sp"
android:dashGap="20sp"
android:width="2dp"
android:color="#FF0000" />
</shape>
Run Code Online (Sandbox Code Playgroud)
XML
<ImageView
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="6dp"
android:background="@drawable/dash_line" />
Run Code Online (Sandbox Code Playgroud)
如果有人可以帮我解决这个问题,那么任何想法都是值得的.
在我的应用程序中,一些联系人被附加到单个.vcf文件并且该文件发送到邮件,尝试在log cat中显示所有联系人数据,但是无法发送附加到单个.vcf文件的所有数据?
任何人都有这个帮助我的想法,请.
这是我的代码
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
vCard = new ArrayList<String>();
Log.i("TAG one", "vfile" +vfile);
vfile = "Contacts" + "_" + System.currentTimeMillis() + ".vcf";
/**
* This Function For Vcard And here i take one Array List in Which i
* store every Vcard String of Every Contact Here i take one Cursor and
* this cursor is not null and its count>0 than i repeat one loop up to
* cursor.getcount() means Up …Run Code Online (Sandbox Code Playgroud) 我是这个Android开发的新手.我刚刚开始创建一个hello world应用程序.
我试图设置一个背景图像,它工作正常.当我试图在图像上添加文本时,它无法正常工作.
我尝试了下面的方式.任何人都可以帮助我,我出错了.
在
main.xml中
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/andriod"
android:layout_gravity="center_vertical"
android:gravity="center_vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
HelloActivity.java
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
//import android.widget.ImageView;
public class HelloActivity extends Activity {
// /** Called when the activity is first created. */
// @Override
// public void onCreate(Bundle savedInstanceState) {
// super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
// }
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv …Run Code Online (Sandbox Code Playgroud) 我已经写了一个应用程序,我有一个speedometer带有a needle,我试图center用速度变化旋转针.
我从互联网上计算下载速度的速度值,该角度也是测量的,
我的问题是如何将针头一端固定在车速表的中心?
如何通过改变角度值来旋转针?
我期待这样

这里针不固定中心位置如何像第一个图像中心一样固定图像的针中心
有没有人知道如何在webview中显示这样的URL

但在这里我正在考虑这里没有焦点,没有点击选项不工作任何事情给我一些sugesssions请..
此代码使用webview中的显示数据
webview.getSettings().setJavaScriptEnabled(true);
webview.loadDataWithBaseURL(null, string, "text/html", "utf-8", null);
Run Code Online (Sandbox Code Playgroud)