Java Code Examples for android.widget.RelativeLayout.bringToFront()

The following are Jave code examples for showing how to use bringToFront() of the android.widget.RelativeLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Pocket-Plays-for-Twitch   File: ChatFragment.java   Source Code and License Vote up 4 votes
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
						 Bundle savedInstanceState) {
	final View mRootView = inflater.inflate(R.layout.fragment_chat, container, false);
	LinearLayoutManager llm = new LinearLayoutManager(getContext());
	llm.setStackFromEnd(true);
	settings = new Settings(getContext());

	mSendText = (EditTextBackEvent) mRootView.findViewById(R.id.send_message_textview);
	mSendButton = (ImageView) mRootView.findViewById(R.id.chat_send_ic);
	mSlowmodeIcon = (ImageView) mRootView.findViewById(R.id.slowmode_ic);
	mSubonlyIcon = (ImageView) mRootView.findViewById(R.id.subsonly_ic);
	mR9KIcon = (ImageView) mRootView.findViewById(R.id.r9k_ic);
	mRecyclerView = (ChatRecyclerView) mRootView.findViewById(R.id.ChatRecyclerView);
	chatInputDivider = mRootView.findViewById(R.id.chat_input_divider);
	mChatInputLayout = (RelativeLayout) mRootView.findViewById(R.id.chat_input); mChatInputLayout.bringToFront();
	mChatStatus = (TextView) mRootView.findViewById(R.id.chat_status_text);
	mChatAdapter = new ChatAdapter(mRecyclerView, getActivity(), this);
	mChatStatusBar = (FrameLayout) mRootView.findViewById(R.id.chat_status_bar);

	mEmoteKeyboardButton = (ImageView) mRootView.findViewById(R.id.chat_emote_keyboard_ic);
	mEmoteChatBackspace = (ImageView) mRootView.findViewById(R.id.emote_backspace);
	emoteKeyboardContainer = (ViewGroup) mRootView.findViewById(R.id.emote_keyboard_container);
	mEmoteTabs = (TabLayout) mRootView.findViewById(R.id.tabs);
	mEmoteViewPager = (ViewPager) mRootView.findViewById(R.id.tabs_viewpager);
	selectedTabColorRes = Service.getColorAttribute(R.attr.textColor, R.color.black_text, getContext());
	unselectedTabColorRes = Service.getColorAttribute(R.attr.disabledTextColor, R.color.black_text_disabled, getContext());
	vibe = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE);

	defaultBackgroundColor = mSendButton.getColorFilter();
	mRecyclerView.setAdapter(mChatAdapter);
	mRecyclerView.setLayoutManager(llm);
	mRecyclerView.setItemAnimator(null);

	mChannelInfo = getArguments().getParcelable(getString(R.string.stream_fragment_streamerInfo));// intent.getParcelableExtra(getResources().getString(R.string.intent_key_streamer_info));

	if (!settings.isLoggedIn()) {
		userNotLoggedIn();
	} else {
		setupChatInput();
		loadRecentEmotes();
		setupEmoteViews();
	}

	setupKeyboardShowListener();

	setupTransition();
	return mRootView;
}