本文的目的是介绍android–GalaxyS和GalaxyS2的最小宽度的详细情况,特别关注三星s20+最小宽度的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解an
本文的目的是介绍android – Galaxy S和Galaxy S2的最小宽度的详细情况,特别关注三星s20+最小宽度的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解android – Galaxy S和Galaxy S2的最小宽度的机会,同时也不会遗漏关于Android ::需要Galaxy note3,4,5,6 AVD、Android – Galaxy Tab在设备上调试?、android – 三星Galaxy S adb驱动程序详情?、android – 三星Galaxy S2 2.3.5没有调用overScrollBy()的知识。
本文目录一览:- android – Galaxy S和Galaxy S2的最小宽度(三星s20+最小宽度)
- Android ::需要Galaxy note3,4,5,6 AVD
- Android – Galaxy Tab在设备上调试?
- android – 三星Galaxy S adb驱动程序详情?
- android – 三星Galaxy S2 2.3.5没有调用overScrollBy()
android – Galaxy S和Galaxy S2的最小宽度(三星s20+最小宽度)
我几乎阅读了有关屏幕尺寸和密度文章的所有内容.
当然,我需要使用新的限定符和新的限定符Smallest Width.
我的问题是,sw320dp限定符匹配galaxy S和galaxy S2.
但是我需要galaxy S2的另一种布局,但是找不到合适的限定符.
银河S的定义,密度233
屏幕尺寸(像素):480像素x 800像素
屏幕尺寸以dp为单位:329dp x 549dp(原因1dp = 1pixel /(密度/ 160)
-> so the qualifier sw320dp must match here. and yes it does
galaxy S II的定义,密度218
屏幕尺寸(像素):480像素x 800像素
屏幕尺寸以dp为单位:352dp x 587dp(原因1dp = 1pixel /(密度/ 160)
-> so the qualifier sw340dp must match here,but NO it doesnt
(Tested in emulator and on real device)
drawables不是问题,但我的布局,特别是高度和文本大小在这些设备上是不同的,所以我真的需要一个特定的布局.
任何人都有想法或更多的经验吗?
解决方法
The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots per inch). For example,a “low” density screen has fewer pixels within a given physical area,compared to a “normal” or “high” density screen.
For simplicity,Android groups all actual screen densities into four generalized densities: low,medium,high,and extra high.
低= 120dpi
med = 160dpi
高= 240dpi
xhi = 320dpi
因此,实际密度为218的galaxy SII在dp计算中被分配了240的“高”密度.因此,屏幕的宽度为dp为480/240 * 160 = 320.
这很糟糕,我同意.但它是如何运作的.
http://developer.android.com/guide/practices/screens_support.html
Android ::需要Galaxy note3,4,5,6 AVD
请告诉我相同的配置或告诉我这些创建AVD的规范.这些在genymotion中不可用.
解决方法
http://developer.samsung.com/technical-doc/view.do?v=T000000095
Android – Galaxy Tab在设备上调试?
想法?
更新:解决方案是将清单中的应用程序显式设置为可调试.如果设备(galaxy Tab)在引导映像中未设置为默认设置,则它不会隐式地允许调试.
解决方法
android – 三星Galaxy S adb驱动程序详情?
解决方法
android – 三星Galaxy S2 2.3.5没有调用overScrollBy()
我有一个扩展ScrollView和覆盖的视图的实现
protected boolean overScrollBy(int deltaX,int deltaY,int scrollX,int scrollY,int scrollRangeX,int scrollRangeY,int maxOverScrollX,int maxOverScrollY,boolean isTouchEvent) { ... return super.overScrollBy(deltaX,deltaY,scrollX,scrollY,scrollRangeX,scrollRangeY,metrics.widthPixels,isTouchEvent); }
在每个其他设备上(姜饼和当然),当滚动器到达它结束时调用overScrollBy,并且用户实际上可以过度滚动视图).
在Android 2.3.5上,三星实施了一种完全禁用过度滚动的机制(不仅仅是他们的过度滚动实现,还包括Android的实现),每次用户尝试过度滚动时,都会打印以下LogCat事件:
02-13 16:02:34.230: D/BounceScrollRunnableDefault(15783): run(),TimeFraction=0.5225,mBounceExtent=7.273352
有没有办法解锁三星在那里做的事情?或者也许是另一种创建过度滚动的方法?
解决方法
listView.setonTouchListener(new OnTouchListener() { private static final float OVERSCROLL_THRESHOLD_IN_PIXELS = 70; private float downY; @Override public boolean onTouch(View v,MotionEvent event) { int firstVisibleItem = listView.getFirstVisiblePosition(); int totalItemCount = listView.getCount(); int visibleItemCount = listView.getChildCount(); boolean onTop = firstVisibleItem == 0 && listView.getChildAt(0) != null && listView.getChildAt(0).getTop() == 0; boolean onBottom = firstVisibleItem + visibleItemCount == totalItemCount && listView.getChildAt(visibleItemCount-1).getBottom() == listView.getHeight(); if(onTop || onBottom) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: downY = event.getY(); break; case MotionEvent.ACTION_MOVE: float deltaY = event.getY() - downY; if(onTop && deltaY > OVERSCROLL_THRESHOLD_IN_PIXELS) { // Top overscroll } if(onBottom && -deltaY > OVERSCROLL_THRESHOLD_IN_PIXELS) { // Bottom overscroll } break; } } return false; } });
关于android – Galaxy S和Galaxy S2的最小宽度和三星s20+最小宽度的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于Android ::需要Galaxy note3,4,5,6 AVD、Android – Galaxy Tab在设备上调试?、android – 三星Galaxy S adb驱动程序详情?、android – 三星Galaxy S2 2.3.5没有调用overScrollBy()的相关信息,请在本站寻找。
本文标签: