1:shape总结
1):shape文件是放置在drawable文件下的。res/drawable/filename.xml.
2):shape类型:android:shape。一共有四种:rectangle,oval,line,ring。
3):corners标签:定义圆角。当且仅当控件类型位rectangle时才有作用。android:radiuse位圆角的半径。当然也...
分类:
移动开发 时间:
2014-10-06 18:07:10
阅读次数:
308
#pragma mark - Set thumbnailImage-(UIImage*)setThumbnailFromImage:(UIImage *)image{ CGSize origImageSize = image.size; // The rectangle of t...
分类:
其他好文 时间:
2014-10-04 05:25:55
阅读次数:
349
Leetcode 推荐经典好题Maximal Rectangle ,和Largest Rectangle in Histogram关联很大...
分类:
其他好文 时间:
2014-10-01 15:07:11
阅读次数:
306
1,利用combobox创建色带,首先draw private void comboBox1_DrawItem(object sender, DrawItemEventArgs e) { Rectangle rec= e.Bounds; rec.Width = rec.Width /array.Le...
分类:
其他好文 时间:
2014-09-30 22:51:30
阅读次数:
311
原题地址:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/题意:Givennnon-negative integers representing the histogram's bar height where the ...
分类:
编程语言 时间:
2014-09-30 12:39:02
阅读次数:
254
We can change the state of an object by making an assignment to one of its attributes. For example, to change the size of a rectangle without changing...
分类:
其他好文 时间:
2014-09-30 02:18:01
阅读次数:
190
第一种方法是利用DP,时间复杂度是 O(m * m * n)
dp(i,j):矩阵中同一行以(i,j)结尾的全部为1的最长子串长度
代码如下:
int maximalRectangle(vector > &matrix) {
int m = matrix.size();
if (m == 0) return 0;
int n = mat...
分类:
其他好文 时间:
2014-09-29 14:40:20
阅读次数:
215
QML弹出窗口组件,灯箱效果、动画效果,可拖拽核心思路:一个mask层,一个最顶层,都用rectangle,禁止事件穿透使用 Popup { id: popup width: 200; height: 300 x: 200; y:100 ...
分类:
其他好文 时间:
2014-09-28 18:40:53
阅读次数:
451
Largest Rectangle in a HistogramTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:150664-bit integer IO format:%I6...
分类:
其他好文 时间:
2014-09-27 00:56:38
阅读次数:
528
记录动态规划dpl,dpr,分辨记录i左面的比i大的,右面比i大的,然后(dpr[i]-dpl[i]+1)*h[i]得出长度动态转移方程while(temp>1 && h[temp-1]>=h[i]) temp=dpl[temp-1]/********************************...
分类:
其他好文 时间:
2014-09-26 19:01:08
阅读次数:
155