我想创建一个矩形的形状,将通过用户的触摸调整大小.下面的图片是我想要做的一个很好的例子:

有这样的例子吗?我需要学习什么才能实现这个目标?
提前致谢,
我正在开发一个应用程序,通过使用操作栏上的微调器来完成导航.微调器项目也需要包含图标,所以我为此创建了自定义布局.问题是微调器的项目太宽.我正在使用ActionBarSherlock.我到目前为止写的代码:
navigation_list_item.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:padding="4dip"/>
<TextView
android:id="@+id/title"
style="?attr/spinnerItemStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:layout_gravity="center_vertical"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
navigation_list_dropdown_item.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="?attr/dropdownListPreferredItemHeight"
android:adjustViewBounds="true"
android:padding="4dip"/>
<TextView
android:id="@+id/title"
style="?attr/spinnerDropDownItemStyle"
android:layout_width="match_parent"
android:layout_height="?attr/dropdownListPreferredItemHeight"
android:ellipsize="marquee"
android:singleLine="true" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
NavigationListAdapter.java:
public class NavigationListAdapter extends BaseAdapter{
private Drawable[] mIcons;
private String[] mTitles;
private Context mContext;
private LayoutInflater mInflator;
public NavigationListAdapter(Context context, Drawable[] icons, String[] titles){
mContext = context; …Run Code Online (Sandbox Code Playgroud) 我正在尝试子类化ImageView并绘制一些东西Bitmap.不过,我不能找到一个办法让Rect这Bitmap绘制.我只能得到Rect这ImageView是绘制getDrawingRect(Rect)的方法ImageView.下面是我想要的例子:

我想要的Rect是蓝色的.提前致谢.
我想获得将包装ImageView的Drawable而不是包装ImageView的矩形的矩形对象.我将使用该矩形在Drawable周围绘制一些花哨的矩形.我怎么能得到那个矩形?
我有一个只包含一个HTML页面<p>,<strong>,<br />和<a>标签.我想TextBlock在Windows 8 的XAML 中显示此内容.有没有办法在TextBlock不丢失结构的情况下显示内容(例如段落)?我不想使用WebView因为WebView不能透明.
我有很长的单词列表,我想显示以用户输入的文本开头的单词.当用户输入字符时,应用程序应更新显示给用户的列表.它应该像Android上的AutoCompleteTextView.我只是想知道存储单词的最佳数据结构,以便搜索速度非常快.
我需要找到伽马累积分布的倒数.我知道GAMMA.INV(probability,alpha,beta)在excel中有这样的功能.如何用R语言实现这一目标?
我在Java中有一个排序的String数组.我试图找到第一个以该数组中用户指定的String开头的元素.我首先考虑二进制搜索,但它找到相等的String而不是以用户指定的String开头的String.我应该如何修改二进制搜索,以便实现我想要做的?
我使用Visual Studio Express 2012 RC开发了一个Windows 8 C#应用程序.我可以在我的电脑上运行它.但是,我想创建一个可执行文件,以便我的朋友也可以尝试该应用程序.当我单击bin/Release文件夹下的.exe文件时,它说:
此应用程序只能在app容器的上下文中运行.
如何手动或使用Visual Studio 2012创建应用程序容器?
我试图绘制类似于下面的内容:

我正在使用Matlab.我实现了绘制等高线图.但是我无法得出判别力.任何人都可以显示样本Matlab代码或给出一些想法来绘制判别式吗?
matlab pattern-recognition normal-distribution machine-learning
我想在Android上为GridView创建一个圆角矩形边框,如下图所示:

我怎样才能实现这一目标?提前致谢.
android ×5
algorithm ×2
windows-8 ×2
bitmap ×1
c# ×1
deployment ×1
drawable ×1
imageview ×1
java ×1
matlab ×1
performance ×1
r ×1
search ×1
shape ×1
statistics ×1
winrt-xaml ×1
xaml ×1