Android Open Source - FragmentWeixinDemo Wall_ Fragment






From Project

Back to project page FragmentWeixinDemo.

License

The source code is released under:

MIT License

If you think the Android project FragmentWeixinDemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mostmood.fragment;
//w  w  w.j a va  2 s.c  o  m
import com.example.tabhostweixintest.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.EditText;

public class Wall_Fragment extends Fragment {
  private EditText editText1 = null;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    View mView = inflater.inflate(R.layout.wall, container, false);
    editText1 = (EditText) mView.findViewById(R.id.editText1);
    return mView;
  }

  @Override
  public void onResume() {
    Log.e("Wall", "onResume");
    editText1.clearFocus();
    editText1.setFocusableInTouchMode(true);
    super.onResume();
  }

}




Java Source Code List

com.example.tabhostweixintest.MainActivity.java
com.example.tabhostweixintest.Main.java
com.mostmood.fragment.CopyOfMe_Fragment.java
com.mostmood.fragment.Home_Fragment.java
com.mostmood.fragment.Me_Fragment.java
com.mostmood.fragment.Message_Fragment.java
com.mostmood.fragment.Wall_Fragment.java
com.mostmood.util.DrawImageView.java
com.mostmood.util.DummyTabContent.java
com.mostmood.util.RotateUpdatedViewEx.java