我無法理解,爲什麼這9patch圖像沒有被設置爲我的android應用程序中的ninepatch。 出於某種原因,它將它顯示爲一個普通的png文件。這張九張圖片有什麼問題?
奇怪的是,無論是draw9patch工具和Eclipse構建在UI設計師,正確顯示圖像(它被正確地擴張),但不是在的Nexus 7
我附着圖像。
這不是文件名,作爲9patch是與draw9patch工具創建的文件名是 「google_button.9.png」
這是XML代碼
<Button
android:id="@+id/btn_googleplus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@drawable/google_button"
android:minWidth="300dp"
android:text="@string/login_login_with_google"
android:textColor="#ffffffff"
android:textStyle="bold"
android:textSize="19sp"
android:layout_marginTop="15dp"/>
它的文件名是什麼? – Ahmad