d
This commit is contained in:
@@ -8,8 +8,10 @@ import android.os.Bundle;
|
|||||||
import android.os.Environment;
|
import android.os.Environment;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
import android.provider.MediaStore;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
@@ -84,6 +86,7 @@ public class Main4Fragment extends BaseFragment<FragmentMain4Binding> implements
|
|||||||
private BaseRecycleViewAdapter baseRecycleViewAdapter;
|
private BaseRecycleViewAdapter baseRecycleViewAdapter;
|
||||||
private ImageView userImageView;
|
private ImageView userImageView;
|
||||||
BaseActivity baseActivity;
|
BaseActivity baseActivity;
|
||||||
|
private String fileolod = "";
|
||||||
|
|
||||||
public Main4Fragment() {
|
public Main4Fragment() {
|
||||||
// Required empty public constructor
|
// Required empty public constructor
|
||||||
@@ -213,6 +216,28 @@ public class Main4Fragment extends BaseFragment<FragmentMain4Binding> implements
|
|||||||
@Override
|
@Override
|
||||||
public void confirm() {
|
public void confirm() {
|
||||||
takeMyPhoto(1000);
|
takeMyPhoto(1000);
|
||||||
|
// try {
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
// intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
// intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri
|
||||||
|
// .fromFile(new File(fileolod)));
|
||||||
|
// startActivityForResult(intent, 1);
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// //拍照我们用Action为MediaStore.ACTION_IMAGE_CAPTURE,
|
||||||
|
// //有些人使用其他的Action但我发现在有些机子中会出问题,所以优先选择这个
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// /* Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
// intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(
|
||||||
|
// Environment.getExternalStorageDirectory(), "temp.jpg")));
|
||||||
|
// System.out.println("=============" + Environment.getExternalStorageDirectory());*/
|
||||||
|
//
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// e.printStackTrace();
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -571,7 +596,7 @@ public class Main4Fragment extends BaseFragment<FragmentMain4Binding> implements
|
|||||||
@Override
|
@Override
|
||||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
Log.e("测试","测试");
|
||||||
try {
|
try {
|
||||||
if (!(data == null)) {
|
if (!(data == null)) {
|
||||||
setIconDataFromIntent(data, requestCode,resultCode);
|
setIconDataFromIntent(data, requestCode,resultCode);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import android.net.Uri;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -328,6 +329,7 @@ public class MainTabActivity extends BaseActivity<ActivityMainTabBinding>
|
|||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
||||||
|
Log.e("测试","测试");
|
||||||
if (resultCode == RESUlT_CODE_4) {
|
if (resultCode == RESUlT_CODE_4) {
|
||||||
if (currentFragment == fragment4) {
|
if (currentFragment == fragment4) {
|
||||||
// if(fragment0!=null){
|
// if(fragment0!=null){
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ public class MyPropertyActivity extends BaseActivity<ActivityMyPropertyBinding>
|
|||||||
homeGridAdapterItemBinding.tvFamily.setOnClickListener(new View.OnClickListener() {
|
homeGridAdapterItemBinding.tvFamily.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
if (homegridentityvArrayList.get(position).getString13().equals("1")) {
|
//此处接口返回的is_host是1,但是解析后是double类型的1.0,所以做了特别处理,如果日后有问题,看看后台返回的is_host值
|
||||||
|
if (homegridentityvArrayList.get(position).getString13().equals("1.0")) {
|
||||||
AddFamilyDialog addFamilyDialog = new AddFamilyDialog(MyPropertyActivity.this, new AddFamilyDialog.OnAddFamilyListener() {
|
AddFamilyDialog addFamilyDialog = new AddFamilyDialog(MyPropertyActivity.this, new AddFamilyDialog.OnAddFamilyListener() {
|
||||||
@Override
|
@Override
|
||||||
public void click(String phone,String username) {
|
public void click(String phone,String username) {
|
||||||
|
|||||||
@@ -105,6 +105,28 @@ public class SelectPicDanimicActivity extends Activity implements OnClickListene
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri
|
||||||
|
.fromFile(new File(fileolod)));
|
||||||
|
startActivityForResult(intent, 1);
|
||||||
|
|
||||||
|
|
||||||
|
//拍照我们用Action为MediaStore.ACTION_IMAGE_CAPTURE,
|
||||||
|
//有些人使用其他的Action但我发现在有些机子中会出问题,所以优先选择这个
|
||||||
|
|
||||||
|
|
||||||
|
/* Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||||
|
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(
|
||||||
|
Environment.getExternalStorageDirectory(), "temp.jpg")));
|
||||||
|
System.out.println("=============" + Environment.getExternalStorageDirectory());*/
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,15 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="276dp"
|
android:layout_width="286dp"
|
||||||
android:layout_height="208dp"
|
android:layout_height="408dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:background="@drawable/dialogwhite"
|
android:background="@drawable/dialogwhite"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="159dp"
|
android:layout_height="359dp"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -30,9 +30,9 @@
|
|||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="50dp"
|
android:layout_width="200dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="260dp"
|
||||||
android:background="@mipmap/icon_default_head"
|
android:background="@mipmap/icon_renlian"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
/>
|
/>
|
||||||
|
|||||||
BIN
app/src/main/res/mipmap-xxhdpi/icon_renlian.jpg
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/icon_renlian.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
Reference in New Issue
Block a user