原创 viewutils fragment invalid value for field

你看看是不是 你的注入文件弄錯了,比如我的ListView 的控件,注入了 LinerLayout 開發愛好者:745570899

原创 textView 文本與邊框的距離設置

轉載  http://www.eoeandroid.com/thread-565557-1-1.html?_dsign=4a303311

原创 Android Cannot perform this operation because the transaction has already been marked successful

我發現,我還沒百度到這個錯誤,出現這個錯誤的原因是你開啓了  事物,但是你沒有關閉事物

原创 ListView The application may be doing too much work on its main thread

如果出現The application may be doing too much work on its main thread 首先你看下是否在線程池裏面做耗時的操作 我犯的錯誤是: 在一個ListView顯示的時候,如果你要顯示的很

原创 android 設置自定義dialog大小無效果

public PicDialog create() { LayoutInflater inflater = (LayoutInflater) mActivity .getS

原创 Caused by: android.content.res.Resources$NotFoundException: String array resource

轉載  http://www.it610.com/article/3520950.htm 我用的是android studio,你看看你的資源文件是不是放在了values-w820dp裏面,如果是,你就拿出來,放在values裏面

原创 hibernate 沒有實體類 查詢

使用原聲的sql語句就可以,比如我這個,不過我這個沒有返回實體類,如果你要返回實體用.addEntity(xxxx.class);這個添加到末尾 List<Object> list = (List<Object>) this.getSes

原创 org.hibernate.QueryException: could not resolve property:xxxxxid 外鍵查詢 hibernate

轉載:http://zhidao.baidu.com/link?url=IqxAQMkf0qRbYNqKKmjLLZ_zSZOQf-RGJ5lmokc04VDLDQJWS1MP14lFnevGB2rCS0WtifXaAAcqRmEqNY8

原创 ListView 懸停 + 如何在每個Adapter獲取沒個View

轉載 :http://www.eoeandroid.com/thread-558736-2-1.html ListAdapter listAdapter = listView.getAdapter(); if(listAdapter==

原创 一般的hibernate查詢語句

    /*          * Com_emplo emplo = (Com_emplo) getSession().createQuery(

原创 Volley get請求上傳中文參數,後臺接收到的是亂碼的解決辦法

轉載:http://blog.csdn.net/miklon/article/details/45825653 Volley get請求上傳中文參數,後臺接收到的是亂碼的解決辦法   try {             keyword

原创 仿QQ側滑,如何一個關閉一個開啓

轉載:http://blog.csdn.net/liyuanjinglyj/article/details/48550489 這篇博客寫了防QQ側滑的效果,但是不是我想要的,比如你劃出2個Item,在作者原來的基礎上你是無法讓他自動的關閉

原创 android 自定義Dialog Style基本設置

<style name="xxxxDialog" parent="@android:style/Theme.Dialog"> <item name="android:windowFrame">@null</item>   邊框      

原创 android 從底部劃出Dialog

我是根據大神學習的,這個是大神的項目,這個項目裏面含有我標題所敘述的,我只是學習到這裏,感覺比較好,所以提煉出來,現在我給出大神的gitHub https://github.com/robotlife/TongBanJie 我先給出代碼i

原创 Eclipse包文件裏面的全部替換

點擊search----FileSearch---->Containing text(要替換的)----->選擇selected resources