我在带有变音符号的数据库中有阿拉伯语文本.当我输入阿拉伯语搜索某些字符串时,它没有变音符号,它肯定与数据库字符串不匹配.它在没有变音符号的情况下正常工作.有没有办法在文本上运行它与变音符号???
我想要这种格式 6 Dec 2012 12:10
String time = "2012-12-08 13:39:57 +0000 ";
DateFormat sdf = new SimpleDateFormat("hh:mm:ss");
Date date = sdf.parse(time);
System.out.println("Time: " + date);
Run Code Online (Sandbox Code Playgroud) 更改RadioButton的background属性时遇到一些问题
首先,我想在每个单选按钮下创建一个单选按钮组中的三个行
这是下面的代码
<RadioGroup
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="@android:color/black"
android:orientation="vertical" >
<RadioButton
android:id="@+id/radioBtnFirst"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/custom_radiogroup_divider"
android:text="Answer 1"/>
<RadioButton
android:id="@+id/radioBtnTwo"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/custom_radiogroup_divider"
android:text="Answer 2"/>
<RadioButton
android:id="@+id/radioBtnThree"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/custom_radiogroup_divider"
android:text="Answer 3"/>
</RadioGroup>
Run Code Online (Sandbox Code Playgroud)
现在在可绘制文件夹中,custom_radiogroup_divider.xml是
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@android:color/transparent" />
<stroke
android:width="0.3dp"
android:color="@android:color/black" />
</shape>
Run Code Online (Sandbox Code Playgroud)
但是现在的问题是当我使用背景属性时
单选按钮看起来像文本与单选按钮重叠
如何关闭来电的电话铃声?这可以通过编程方式完成吗?现在我使用下面的代码,但它不起作用:
AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
am.setRingerMode(AudioManager.RINGER_MODE_SILENT);
Run Code Online (Sandbox Code Playgroud)
我是android的初学者我试过请帮助我的代码是
<AutoCompleteTextView
android:id="@+id/autoCompleteTextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="top"
android:hint="@string/receipt_account_name" >
Run Code Online (Sandbox Code Playgroud)
我尝试使用android:dropDownVerticalOffset ="5dp",android:dropDownHeight ="5dp",android:height ="5dp",android:layout_height ="5dp"等.没有定义字体大小.
在java class adapter = new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,COUNTRIES);
请帮忙.