我遇到了一些奇怪的问题..我用自定义拇指实现了一个搜索栏.当我在HTC Desire上运行我的应用程序时,一切正常.但是,当我在三星Galaxy上运行它时,拇指会被剪掉!
这是截图..
欲望:

三星Galaxy:

如果有任何想法,我将不胜感激.tnx
myprogress.xml:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners
android:radius="10dp" />
<gradient
android:startColor="@color/gray"
android:centerColor="@color/gray"
android:centerY="0.75"
android:endColor="@color/gray"
android:angle="270"
/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners
android:radius="10dp" />
<gradient
android:startColor="@color/white"
android:centerColor="@color/white"
android:centerY="0.75"
android:endColor="@color/white"
android:angle="270"
/>
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners
android:radius="10dp" />
<gradient
android:startColor="#FFA500"
android:centerColor="@color/yellow"
android:centerY="0.75"
android:endColor="@color/yellow"
android:angle="270"
/>
</shape>
</clip>
</item>
Run Code Online (Sandbox Code Playgroud)
样式:
<style name="mySeekBar">
<item name="android:indeterminateOnly">false</item>
<item name="android:progressDrawable">@drawable/myprogress</item>
<item name="android:indeterminateDrawable">@android:drawable/progress_horizontal</item>
<item name="android:minHeight">10dip</item>
<item name="android:maxHeight">10dip</item>
<item name="android:thumb">@drawable/thumb</item>
<item name="android:thumbOffset">4dp</item>
<item name="android:focusable">true</item>
Run Code Online (Sandbox Code Playgroud)
seekbar xml:
<SeekBar …Run Code Online (Sandbox Code Playgroud) 我很好奇Android是否NFC service允许开发人员在扫描标签时启动Service(或IntentService就此而言)NFC?
来自Android开发者:
当设备扫描其上有
NDEF数据但无法映射到MIME或URI的标记时,标记调度系统会尝试使用intent 启动 活动ACTION_TECH_DISCOVERED.
虽然它可以接收相同的Intent过滤器,但似乎只能启动一个新的Activity而不是Service.