android使用Theme.AppCompat.Light时PopupWindow底部弹出的问题

在使用主题为Theme.AppCompat.Light.NoActionBar这个系列的主题时,PopupWindow底部弹出Popwindow.showAtLocation(v, Gravity.BOTTOM, 0, 0);如果底部有虚拟返回键的手机时候,会从屏幕最底下弹出,一部分被遮挡住了,求救,找了很就都没找到类似的问题!!!!!!!图片说明

2个回答

目前只能通过更换theme 解决,但是如果使用com.android.support:design Google的这个包的时候,貌似只能使用Theme.AppCompat.Light这个theme

我遇到的情况是,摩托罗拉手机。可以想到的解决方案。
1,更改主题,继承FragmentActivity,主题改为Theme.Holo.Light.NoActionBar
2,不写目标版本或者目标版本在20以下。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
自定义软键盘用popupwindow弹出,点击按钮报错Unable to add window

自定义的键盘用的android.inputmethodservice.KeyboardView系统的软键盘 然后点击其中一个按钮就会报错 报的错: android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:513) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) at android.view.Window$LocalWindowManager.addView(Window.java:537) at android.widget.PopupWindow.invokePopup(PopupWindow.java:988) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:845) at android.widget.PopupWindow.showAtLocation(PopupWindow.java:809) at android.inputmethodservice.KeyboardView.showKey(KeyboardView.java:960) at android.inputmethodservice.KeyboardView.access$100(KeyboardView.java:69) at android.inputmethodservice.KeyboardView$1.handleMessage(KeyboardView.java:260) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)

android popupwindow dismiss()关闭窗体前的处理事件

pop.setTouchable(true); pop.setBackgroundDrawable(new BitmapDrawable()); // 上面两句代码当点击窗体外部popupwindow自动消失 我想让popupwindow消失前执行一段代码,比如改变字体等,那么如何重写dismiss()方法啊? 贴出部分源码 public void popup() {// inflater = (LayoutInflater)popupTest.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View listLayout = inflater.inflate(R.layout.listview, null); listView= (ListView) listLayout.findViewById(android.R.id.list); lvButtonAdapter listItemAdapter = new lvButtonAdapter(this,list1, R.layout.item, new String[]{"text1","text2","ItemImage,RelativeLayout"}, new int[]{R.id.text1,R.id.text2,R.id.pup,R.id.re}); listView.setAdapter(listItemAdapter); listView.setFocusable(true); listView.setItemsCanFocus(true); listView.setOnItemClickListener(new OnItemClickListener(){public void onItemClick(AdapterView<?> arg0, View arg1,int arg2, long arg3) { edit1.getText().insert (edit1.getSelectionStart(),list1.get(arg2).get("text1").toString()); pop.dismiss(); }});//光标处插入文字 pop = new PopupWindow(listLayout, LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); pop.setTouchable(true); pop.setBackgroundDrawable(new BitmapDrawable()); // pop.setFocusable(true); }

android PopupMenu 不能弹出菜单

我每隔一行写了一个System.out,发现前面的代码都运行了,最后的show()没运行。 下面是代码及logcat内容: PopupMenu popupMenu = new PopupMenu(getBaseContext(), view, 10); popupMenu.getMenuInflater().inflate(R.menu.list_of_popup_menu, popupMenu.getMenu()); popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.hello: Toast.makeText(getBaseContext(), "hello", Toast.LENGTH_SHORT).show(); case R.id.world: Toast.makeText(getBaseContext(), "world", Toast.LENGTH_SHORT).show(); } return true; } }); popupMenu.show(); mypopupmenu W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView mypopupmenu I/ListPopupWindow: Could not find method setEpicenterBounds(Rect) on PopupWindow. Oh well. mypopupmenu D/AndroidRuntime: Shutting down VM mypopupmenu E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.zwm12.mypopupmenu, PID: 2926 java.lang.RuntimeException: Failed to resolve attribute at index 6 at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:603) at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6423) at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:6591) at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:735) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:679) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:62) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.support.v7.view.menu.MenuAdapter.getView(MenuAdapter.java:85) at android.support.v7.view.menu.MenuPopup.measureIndividualMenuWidth(MenuPopup.java:156) at android.support.v7.view.menu.StandardMenuPopup.tryShow(StandardMenuPopup.java:153) at android.support.v7.view.menu.StandardMenuPopup.show(StandardMenuPopup.java:187) at android.support.v7.view.menu.MenuPopupHelper.showPopup(MenuPopupHelper.java:286) at android.support.v7.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:171) at android.support.v7.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:137) at android.support.v7.widget.PopupMenu.show(PopupMenu.java:233) at com.example.zwm12.mypopupmenu.MainActivity$1.onClick(MainActivity.java:43) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19749) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Listview没有列出数据库中的数据,因为我遇到了异常

<div class="post-text" itemprop="text"> <p>I'm trying to get a get data from a database in a listview but when I activate the activity I get back an empty screen .When I check the logcat it shows I see two exceptions :</p> <p><a href="https://i.stack.imgur.com/Dbnkf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dbnkf.jpg" alt="enter image description here"></a></p> <p>I don't know why I am getting this issue ,everything seems fine</p> <p>This is my ShowUsers activity:</p> <pre><code>package ie.example.artur.adminapp; import android.content.Intent; import android.os.Bundle; import android.os.StrictMode; import android.view.Menu; import android.view.MenuItem; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toolbar; import android.os.AsyncTask; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.view.View; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.json.JSONArray; import org.json.JSONObject; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; import static android.R.attr.name; /** * Created by family on 24/07/2017. */ public class ShowUsers extends AppCompatActivity { ListView lv; //String[] names = {"Amy","John","Joseph","Carl"}; InputStream is = null; String line= null; String result = null; String temp=""; String[] arr; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.showusers); lv = (ListView) findViewById(R.id.lv); //Inlfate the list view with the items //lv.setAdapter(new ArrayAdapter&lt;String&gt;(ShowUsers.this,android.R.layout.simple_list_item_1,arr)); android.widget.Toolbar toolbar = (android.widget.Toolbar) findViewById(R.id.toolbar); StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); //set up the code to fetch data from the database try { HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost("http://10.3.2.51/www/"); HttpResponse response = httpClient.execute(httpPost); HttpEntity entity = response.getEntity(); is = entity.getContent(); //SETUP THE INPUTSTREAM TO RECEIVE THE DATA (INITIAL) }catch (Exception e){ System.out.println("Exception 1 caught"); } try { BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8); // Create a String builder object to hold the data StringBuilder sb = new StringBuilder(); while((line = reader.readLine())!=null) sb.append(line+" "); //Use the toString() method to get the data in the result result = sb.toString(); is.close(); //check the data by printing the results in the logcat System.out.println("-----Here is my data -----"); System.out.println(result); }catch(Exception e){ System.out.print("Exception 2 caught"); } try{ JSONArray jsonArray = new JSONArray(result);//Create a json array int count = jsonArray.length(); for(int i=0; i&lt;count; i++){ //create a json object to extract the data JSONObject json_data = jsonArray.getJSONObject(i); temp +=json_data.getString("name")+":"; //where name is attribute of the getdata table //using ':' as the delimiter } //Afer receiving everything store the contents in a string array from temo separated using the delimiter arr = temp.split(":"); //set the list adapter with the array arr lv.setAdapter(new ArrayAdapter&lt;String&gt;(ShowUsers.this,android.R.layout.simple_list_item_1, arr)); }catch(Exception e){ System.out.println("I am really bored of writing all these exception blocks"); } } public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. { switch (item.getItemId()) { case R.id.action_settings : startActivity (new Intent(this, ShowUsers.class)); break; } return super.onOptionsItemSelected(item); }} } </code></pre> <p>This is tut.php that connects the database to the app:</p> <pre><code>&lt;?php $con=mysql_connect("localhost","root",""); mysql_select_db("socialmedia_website",$con); $r=mysqli_query("select name from users where 1)"; while($row=mysql_fetch_array($r)) { $out[]=$row; } print(json_encode($out)); mysql_close($con) </code></pre> <p>Full stack trace:</p> <pre><code>07-27 15:50:18.152 10602-10602/ie.example.artur.adminapp I/art: Late-enabling -Xcheck:jni 07-27 15:50:18.152 10602-10602/ie.example.artur.adminapp I/art: VMHOOK: rlim_cur : 0 pid:10602 07-27 15:50:18.233 10602-10602/ie.example.artur.adminapp W/System: ClassLoader referenced unknown path: /data/app/ie.example.artur.adminapp-1/lib/arm 07-27 15:50:18.324 10602-10602/ie.example.artur.adminapp W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 07-27 15:50:18.821 10602-10639/ie.example.artur.adminapp I/Adreno-EGL: &lt;qeglDrvAPI_eglInitialize:379&gt;: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8226_LA.BF.1.1.3_RB1__release_AU (I8c58819290) OpenGL ES Shader Compiler Version: E031.29.00.00 Build Date: 01/24/16 Sun Local Branch: Remote Branch: quic/LA.BF.1.1.3_rb1.9 Local Patches: NONE Reconstruct Branch: NOTHING 07-27 15:50:19.331 10602-10602/ie.example.artur.adminapp I/InputMethodManager: [startInputInner] EditorInfo { packageName=ie.example.artur.adminapp, inputType=0x20001, imeOptions=0x44000006, privateImeOptions=null }, windowGainingFocus=android.view.ViewRootImpl$W@3ad066e, mServedView=android.support.v7.widget.AppCompatEditText{a91c21f VFED..CL. .F....I. 32,318-232,406 #7f0c006f app:id/editTextPassword}, mServedInputConnectionWrapper=android.view.inputmethod.InputMethodManager$ControlledInputConnectionWrapper@fb5710f 07-27 15:50:26.856 10602-10602/ie.example.artur.adminapp I/ListPopupWindow: Could not find method setEpicenterBounds(Rect) on PopupWindow. Oh well. 07-27 15:50:26.886 10602-10602/ie.example.artur.adminapp W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 07-27 15:51:33.375 10602-10602/ie.example.artur.adminapp I/System.out: Exception 1 caught 07-27 15:51:33.394 10602-10602/ie.example.artur.adminapp I/System.out: Exception 2 caughtI am really bored of writing all these exception blocks 07-27 15:51:33.400 10602-10602/ie.example.artur.adminapp I/Choreographer: Skipped 3794 frames! The application may be doing too much work on its main thread. 07-27 15:54:58.497 10602-10609/ie.example.artur.adminapp W/art: Suspending all threads took: 11.806ms </code></pre> </div>

Popupwindow弹出时如何覆盖虚拟按键?

项目是横屏的 而且弹出popupwindow的位置比较靠边,所以默认每次弹出的位置都会被虚拟按键挤到旁边..如何在弹出PopupWIndow时不显示虚拟按键或者覆盖虚拟按键

PopupWindow中放入Viewpager+Fragment 哪位 大神来指点一下

Process: com.example.qianfan, PID: 32599 java.lang.IllegalArgumentException: No view found for id 0x7f0d00b4 (com.example.qianfan:id/vp) for fragment Fragment_A{76a164f #1 id=0x7f0d00b4 android:switcher:2131558580:0} at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1293) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595) at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:758) at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2363) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2149) at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2103) at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1984) at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:626) at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143) at android.support.v4.view.ViewPager.populate(ViewPager.java:1268) at android.support.v4.view.ViewPager.populate(ViewPager.java:1116) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1642) at android.view.View.measure(View.java:18811) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465) at android.widget.LinearLayout.measureVertical(LinearLayout.java:748) at android.widget.LinearLayout.onMeasure(LinearLayout.java:630) at android.view.View.measure(View.java:18811) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:18811) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:18811) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2127) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1243) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1479) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1134) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6050) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860) at android.view.Choreographer.doCallbacks(Choreographer.java:672) at android.view.Choreographer.doFrame(Choreographer.java:608) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846) at android.os.Handler.handleCallback(Handler.java:742) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:5524) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630)

android popwindow输入框与返回键焦点冲突问题

创建一个popwindow 弹出一个页面 里面有输入框 如果输入框没有获取焦点点击系统返回键能监听到点击了返回按钮 但是输入框获取焦点后 就监听不到系统返回键了 请大神指教 贴一点核心代码 View popupWindow_view = getLayoutInflater().inflate(R.layout.mydialog_myprice, null, false); popupWindow = new PopupWindow(popupWindow_view, LayoutParams.MATCH_PARENT,mScreenHight, true); popupWindow.setFocusable(true); popupWindow.setAnimationStyle(R.style.popupWindowAnimation); popupWindow.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); //设置动画 WindowManager.LayoutParams params=DetailsPurchaseActivity.this.getWindow().getAttributes(); params.alpha=0.3f; DetailsPurchaseActivity.this.getWindow().setAttributes(params); //设置窗口焦点 //设置返回键能够监听事件 popupWindow_view.setFocusable(true); popupWindow_view.setFocusableInTouchMode(true); popupWindow_view.setOnKeyListener(new OnKeyListener() {

求大神帮忙啊,看看这是咋回事

07-30 11:19:09.510: E/MessageQueue-JNI(10893): Exception in MessageQueue callback: handleReceiveCallback 07-30 11:19:09.517: E/MessageQueue-JNI(10893): java.lang.RuntimeException: Could not read input channel file descriptors from parcel. 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.InputChannel.nativeReadFromParcel(Native Method) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.InputChannel.readFromParcel(InputChannel.java:148) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:690) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl.setView(ViewRootImpl.java:637) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:261) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:71) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.widget.PopupWindow.invokePopup(PopupWindow.java:1030) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.widget.PopupWindow.showAtLocation(PopupWindow.java:856) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.widget.PopupWindow.showAtLocation(PopupWindow.java:820) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at io.vov.vitamio.widget.MediaController.show(MediaController.java:354) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at io.vov.vitamio.widget.MediaController.show(MediaController.java:281) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at io.vov.vitamio.widget.VideoView.toggleMediaControlsVisiblity(VideoView.java:532) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at io.vov.vitamio.widget.VideoView.onTouchEvent(VideoView.java:491) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.View.dispatchTouchEvent(View.java:7793) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2356) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2019) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2164) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1594) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.app.Activity.dispatchTouchEvent(Activity.java:2514) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2112) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.View.dispatchPointerEvent(View.java:7984) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4433) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4304) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3845) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3895) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3864) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3971) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3872) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4028) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3845) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3895) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3864) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3872) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3845) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6165) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6145) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6099) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6295) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.os.MessageQueue.nativePollOnce(Native Method) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.os.MessageQueue.next(MessageQueue.java:138) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.os.Looper.loop(Looper.java:150) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at android.app.ActivityThread.main(ActivityThread.java:5332) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at java.lang.reflect.Method.invokeNative(Native Method) 07-30 11:19:09.517: E/MessageQueue-JNI(10893): at java.lang.ref 07-30 11:19:09.528: E/Surface(10893): dequeueBuffer failed (Invalid argument)

Popupwindow的dismiss问题

在**API23**中: if(mpopupwindow!=null&&mpopupwindow.isShowing()) { mpopupwindow.dismiss(); } 会退出popupwindow,在**API22**中,运行却没有任何反应,这是怎么回事?

Android popwindow 设置位置为bottom 被底部导航栏挡住怎么解决啊

popupWindow.showAtLocation(linearLayout,Gravity.BOTTOM,0,0); 设置位置为bottom 被底部导航栏挡住怎么解决啊,求解答啊???![图片说明](https://img-ask.csdn.net/upload/201512/02/1449050820_211152.jpg)![图片说明](https://img-ask.csdn.net/upload/201512/02/1449050892_689110.jpg) 一张被挡住的 一张没被挡住的 怎么才能在不隐藏底部导航栏的情况下 让被挡住的完全显示出来啊

AlertDialog第一次显示没问题,退出该界面再进来显示会报错,下面是代码,求大神指教

这是显示方法 public static AlertDialog showDialog(Context context){ if(builder==null){ builder = new AlertDialog.Builder(context); // builder.setView(view); builder.setIcon(R.drawable.ic_launcher); builder.setTitle("呼吸灯控制按钮"); } AlertDialog dialog = builder.create(); dialog.show(); return dialog; } 这是调用的地方 case R.id.tv_back_main2log: if(dialog==null){ dialog = Dialog_PopupWindow.showDialog(this); }else{ dialog.show(); } break; 第一次进来随便点都没有错,退出该界面再进来就会报错,就这样一次好一次报错,求大神指教以下是报错信息 android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@419e7e90 is not valid; is your activity running? at android.app.Dialog.show(Dialog.java:286)

popupWindow里面有一个EditText,获取焦点问题

我在popupWindow里面有一个EditText,然后不想popupWindow点击空白区域消失,又需要点击edittext可以输入东西,代码如下 ``` popupWindow.setOutsideTouchable(false); popupWindow.setTouchable(true); popupWindow.setFocusable(false); ``` 如果这样设置 点击空白区域确实不会取消popupWindow,但是同时edittext无法编辑,有没有大神知道两全其美的方法

为什么执行popupwindow.update()时会有动画效果

 部分手机(例如nexus5),执行popupwindow.update()时存在动画,如何屏蔽掉?

Android中PopupWindow点击窗口之外和返回键不消失,界面锁定的实现

PopupWindow 中含有EditText控件,当弹出PopupWindow对话框后,点击固定的按钮可以让PopupWindow消失,PopupWindow本身是可聚焦,只要PopupWindow是弹出状态,EditText都是可编辑的,这个要怎么实现,popupWindow.setFocusable(true);popupWindow.setOutsideTouchable()是失效的

启动Activity出现NullPointerException异常

package com.charming.sensor; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends Activity implements SensorEventListener { private TextView valueView; private View top, left, right, bottom; private SensorManager sensorManager; private Sensor accelerometer; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); init(); } private void init() { valueView = (TextView) findViewById(R.id.values); top = findViewById(R.id.top); bottom = findViewById(R.id.bottom); left = findViewById(R.id.left); right = findViewById(R.id.right); sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); accelerometer = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); } @Override protected void onResume() { super.onResume(); sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_UI); } @Override protected void onPause() { super.onPause(); sensorManager.unregisterListener(this); } @Override public void onSensorChanged(SensorEvent event) { float[] values = event.values; float x = values[0] / 10; float y = values[1] / 10; int scaleFactor; if (x > 0) { scaleFactor = (int) Math.min(x * 255, 255); right.setBackgroundColor(Color.argb(scaleFactor, 255, 0, 0)); left.setBackgroundColor(Color.TRANSPARENT); } else { scaleFactor = (int) Math.min(x * 255, 255); left.setBackgroundColor(Color.argb(scaleFactor, 255, 0, 0)); right.setBackgroundColor(Color.TRANSPARENT); } if (y > 0) { scaleFactor = (int) Math.min(x * 255, 255); top.setBackgroundColor(Color.argb(scaleFactor, 255, 0, 0)); bottom.setBackgroundColor(Color.TRANSPARENT); } else { scaleFactor = (int) Math.min(x * 255, 255); bottom.setBackgroundColor(Color.argb(scaleFactor, 255, 0, 0)); top.setBackgroundColor(Color.TRANSPARENT); } valueView.setText("x:" + x + " " + "y:" + y); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { } } 布局文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.charming.sensor.MainActivity"> <TableLayout android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="0, 1, 2"> <TableRow android:layout_weight="1"> <view android:id="@+id/top" android:layout_column="1" /> </TableRow> <TableRow android:layout_weight="1"> <view android:id="@+id/left" android:layout_column="0" /> <view android:id="@+id/right" android:layout_column="2" /> </TableRow> <TableRow android:layout_weight="1"> <view android:id="@+id/bottom" android:layout_column="1" /> </TableRow> </TableLayout> <TextView android:id="@+id/values" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" /> </RelativeLayout> log E/AndroidRuntime: FATAL EXCEPTION: main Process: com.charming.myapplication, PID: 7837 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.charming.myapplication/com.charming.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #16: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: android.view.InflateException: Binary XML file line #16: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.view.LayoutInflater.inflate(LayoutInflater.java:539) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at android.view.LayoutInflater.inflate(LayoutInflater.java:374) at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393) at android.app.Activity.setContentView(Activity.java:2166) at com.charming.myapplication.MainActivity.onCreate(MainActivity.java:24) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate(LayoutInflater.java:838) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate(LayoutInflater.java:838) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423)  at android.view.LayoutInflater.inflate(LayoutInflater.java:374)  at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)  at android.app.Activity.setContentView(Activity.java:2166)  at com.charming.myapplication.MainActivity.onCreate(MainActivity.java:24)  at android.app.Activity.performCreate(Activity.java:6237)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 

android 当弹出popupwindow的时候要让外部不可以点击,就是底部的控件没法点击.

我在页面中间弹出了一个popupwindow,怎么让整个外部都没法点击,不会产生点击事件

android 如何自定义 popupwindow 效果类似 58同城 的筛选功能

效果类似 58同城 的筛选功能 ![图片说明](https://img-ask.csdn.net/upload/201604/22/1461285065_777419.png) ![图片说明](https://img-ask.csdn.net/upload/201604/22/1461285075_820018.png) 我在网上找过带有类似筛选效果的源码,发现个问题。其中一个popupwindow处于打开状态时当我想点击另一个按钮打开其他的popupwindow时,会先关闭之前打开的popupwindow,然后我再次点击按钮才会打开其他的popupwindow。而58同城是直接就关闭旧的popupwindow并打开其他的popupwindow。

如何从 PopUpWindow 中获取 editText input?

在一个popupwindow中如何从一个editText box中获取input。我用了2种方法,一种是使用layout inflator。 另一种方法没有使用layout inflator,尽管我在box中输入信息,但是获得""或者null。 返回""的方法: View inflatedView = getLayoutInflater().inflate(R.layout.login_popup, null); EditText usernameInput = (EditText) inflatedView.findViewById(R.id.username_login_input); EditText passwordInput = (EditText) inflatedView.findViewById(R.id.password_login_input); final String usernameString = usernameInput.getText().toString(); final String passwordString = passwordInput.getText().toString(); 返回 null 的方法: EditText usernameInput = (EditText) findViewById(R.id.username_login_input); EditText passwordInput = (EditText) findViewById(R.id.password_login_input); final String usernameString = usernameInput.getText().toString(); final String passwordString = passwordInput.getText().toString(); 我想从 login_popup.xml 中获取,这不是从一个 activity 中生成的。 代码是: LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE); View popupView = layoutInflater.inflate(R.layout.login_popup, null); ppw = new PopupWindow(popupView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true); ViewGroup parentLayout = (ViewGroup) findViewById(R.id.title_page_layout); // set the position and size of popup ppw.showAtLocation(parentLayout, Gravity.CENTER, 10, 20);

Android 获取listview数据 然后赋值给popupwindow用于显示报空指针

能得到数据但是给Textview赋值却报空指针! 下边贴代码。 gv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) { // WindowManager.LayoutParams lp=getWindow().getAttributes(); // lp.alpha = 0.4f; // getWindow().setAttributes(lp); food= (FoodInfo)data.get(position); // 数据类获取数据 Toast.makeText(getApplicationContext(), food.getFoodName(), Toast.LENGTH_SHORT).show(); //这里可以正常显示,说明得到了数据 TextView name=(TextView) findViewById(R.id.popup_tv1);//popupwindow name.setText(food.getFoodName()); // setText 报空指针 initPopuWindow1(arg0); // 加载弹出框 }

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐