我想裁剪图像我发现了一些相当有用的但是不知何故就像缺少了未选区域的变暗所以我想知道有谁知道怎么样?还是引导我走向正确的方向?我发现的在线教程显示会使所选区域变暗,但是当我使用它时,它不会.请帮助我多多感谢,抱歉我的英语不好.
我使用的教程的链接.
我希望它是这样的.

editButton.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent goEdit;
goEdit = new Intent(PreviewActivity.this, CropImage.class);
goEdit.putExtra("image-path", path);
goEdit.putExtra("scale", true);
goEdit.putExtra("fileName", nameFromPath);
//finish();
checkEdit = true;
startActivityForResult(goEdit,0);
}
});
Run Code Online (Sandbox Code Playgroud)
编辑 我使用此按钮侦听器通过调用类CropImage活动调用cropImage文件.这是一个自定义的意图,而不是Android内部的裁剪功能,但我认为是它的副本,以便它支持所有版本,但当我调用它时,所选区域不亮,我不知道问题可以在哪里引导我?谢谢这是我正在使用drioid4you裁剪图像的库
我正在寻找一种方法,当我更改屏幕大小时,它将按比例调整文本大小.目前我尝试将 Auto Scale TextView Text设置为Bounds但它似乎没有工作.但我不确定我是否以正确的方式做到了.我现在正打电话来
AutoResizeTextView test = new AutoResizeTextView(this);
test=(AutoResizeTextView)findViewById(R.id.test456);
test.resizeText(); // I call this to resize.. am I right?
Run Code Online (Sandbox Code Playgroud)
XML
<com.mypackage.AutoResizeTextView
android:id="@+id/test456"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
Run Code Online (Sandbox Code Playgroud)