Can't have more than one marked region along edge
問題描述:
android開發中為了保證圖示縮放後不變形會採用.9.png格式圖片,今天開發專案時根據UI設計師給的.png的圖示自己做了個.9圖示如下(“搜尋”也是做在圖片中的):
這樣是為了保證中間內容區不被縮放,但是放到專案中後build是報錯:
Can’t have more than one marked region along edge
分析:
很明顯此錯誤是指被標記的區域不能分段,可是如果不能分段則左右或者上下空白會不對稱,嘗試後發現右側和底部擴充套件區域指定後並不起作用嗎,所以嘗試了兩種方案:
- 把底部和右側黑線連成一條,
- 去除右側及底部黑線
執行後,驗證可行。
解決:
修改方案有兩種:
- 將右側及底部擴充套件區域去除,只留上方和左方指定擴充套件區域即可:
- 把底部和右側黑線連成一條:
至於右側和底部指定的擴充套件區域的作用後續調研後再做補充。
補充來了:
.9.PNG是在最外面一圈額外增加1px的邊框,這個1px的邊框就是用來定義圖片中可擴充套件的和靜態不變的區域。 left和top邊框中交叉部分是可拉伸部分,未選中部分是靜態區域部分。right和bottom邊框中交叉部分則是內容部分。
所以,引起報錯的原因是內容區域只能指定一塊,也就是right和bottom邊框不能分段。
相關推薦
Can39;t have more than one marked region along edge
問題描述: android開發中為了保證圖示縮放後不變形會採用.9.png格式圖片,今天開發專案時根據UI設計師給的.png的圖示自己做了個.9圖示如下(“搜尋”也是做在圖片中的): 這樣是為了保證中間內容區不被縮放,但是放到專案中後build是報錯: Can’t have m
NodeJs Mysql Cant39;t create more than max_prepared_stmt_count statements
and nic javascrip nod stmt java 問號 全部 很多 這陣子碰到一個數據庫上的問題,一個剛上線不到一周的 NodeJs 接口服務裏所有的查詢全部都掛掉了,接口一直處於 pending 狀態,看了下 pm2 的日誌發現了報錯:Cant‘t crea
java SSM項目搭建-- The server time zone value 39;?й???????39; is unrecognized or represents more than one time zone
數據庫連接字符串 項目搭建 more jdbc utc 出現 PE bean col 出現 錯誤 The server time zone value ‘?й???????‘ is unrecognized or represents more than one
The server time zone value 39;EDT39; is unrecognized or represents more than one time zone.
概要:測試伺服器遷移到虛擬機器,所有服務重灌後部署專案及服務,在啟動服務時報錯: The server time zone value 'EDT' is unrecognized or represents more than one time zone. 首先想到的是看看連線資料庫的u
mysql異常之: The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one time zone
連線資料庫時顯示: java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must con
感謝榜 I can39;t thank you any more. 雷總說過:“去探索!”
由於我的精力和水平都有限,寫的文章中難免存在一些錯誤。所幸得到熱心網友的指正,才能不斷修改、完善。我無法像 其他博主 一樣為每個錯誤的第一個發現者支付獎金,故在此羅列各位網友的貢獻,讓他們收
解決The server time zone value 39;???ú±ê×??±??39; is unrecognized or represents more than one time zone.
因專案用到mysql資料庫,在開發過程中遇到了mysql時差問題,在網上查了查原因,在jdbc資料庫連線的url上加上 &serverTimezone=GMT即可!!如果需要使用gmt+8時區,需要寫成GMT%2B8,否則會被解析為空。再一個解決辦
Java新增構造方法異常異常——Could not autowire. there is more than one bean of 39;39; type
在寫一個Test類的時候,為這個Test天加一個帶參構造方法,但是對構造方法的入參提示: Could not autowire. there is more than one bean of '' type 開始有點摸不著頭腦,後面仔細一想, 難道是影響這個類在其他地方
mysql的時區錯誤問題: The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one
報錯日誌: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExcept
More than one file was found with OS independent path 39;lib/armeabi-v7a/libanw.14.so39;
這個錯的意思就是不止一次匯入了同一個path所在名稱的依賴,編輯器就不知道以哪一個為準了。解決的方法只需要在build.gradle(Module: app)裡面,加上一段: packagingOptions { //避免重複
More than one file was found with OS independent path 39;assets/ap1.data39;
在android studio中匯入一些依賴的時候出現的這個錯誤,網上搜到的和我的path的內容都不相同,但是這不重要,重要的是解決方案是相同的。 這個錯誤的意思是同樣的依賴路徑存在兩個,說人話就是兩次匯入了同一個名稱的依賴,然後系統就不知道要以哪一個為準了,這種問題的解決辦法也很簡單,在bui
No qualifying bean of type 39;javax.sql.DataSource39; available: more than one 39;primary39; bean found amon
多資料來源報錯:No qualifying bean of type 'javax.sql.DataSource' available: more than one 'primary' bean found among candidates: [test2DataSource, te
Error:Execution failed for task 39;:app:transformNativeLibsWithMergeJniLibsForDebug39;. > More than one
錯誤異常 Error:Execution failed for task ‘:app:transformNativeLibsWithMergeJniLibsForDebug’. More than one file was found with OS independent
Android Studio編譯失敗:More than one file was found with OS independent path 39;META-INF/proguard/androidx
報錯: Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’. More than one file was found with OS independent path ‘ME
JDBC連線MySql,配置url報錯 使用JDBC連線MySql時出現:The server time zone value 39;�й���ʱ��39; is unrecognized or represents more than one time zone. You must co
使用JDBC連線MySql時出現:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server
【JDBC】java.sql.SQLException: The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one time zone.
在使用阿里的druid 時,報了一個異常java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. 貌似是時區問題,
The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one time zone
場景 執行Mybatis的generator自動生成程式碼時提示: caused by : The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone....
Android Studio 報錯:More than one file was found with OS independent path 39;META-INF/xxxxxx39;的解決辦法
轉載:https://blog.csdn.net/realliuning/article/details/80010591 轉載:https://blog.csdn.net/wa172126691/article/details/84863171 今天在Android Studio中編譯工程
springboot報錯The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one ti
自己記錄一下一個小錯: mysql預設伺服器時區問題:修改jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8為 jdbc:mysql://localhost:3306/te
異常: The server time zone value 39;Öйú±ê׼ʱ¼ä39; is unrecognized or represents more than one time zone. You must configure either the server or J
異常: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver